import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { HomeComponent } from './home/home.component' ; import { LocalizeRouterModule } from 'localize-router' ; const homeRoutes = [ { path : '' , component : HomeComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( homeRoutes ) , LocalizeRouterModule . forChild ( < any > homeRoutes ) ] , exports : [ RouterModule , LocalizeRouterModule ] } ) export class HomeRoutingModule { }