gilsdav / ngx-translate-router

Translate routes using ngx-translate
131 stars 43 forks source link

skipRouteLocalization doesn't work. #124

Open jsanz1209 opened 2 years ago

jsanz1209 commented 2 years ago

Hi everyone! I'm trying to skip a route location with the parameter skipRouteLocalization inside data object in a specific route, but I'm not getting any result.

This is my routes object definition:

export const routes: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: 'home', loadChildren: () => import('./home/home.module').then(m => m.HomeModule) }, { path: 'feature', loadChildren: () => import('./feature/feature.module').then(m => m.FeatureModule), data: { skipRouteLocalization: true } } ];

May somebody help me about it?

Thanks in advance.