You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to get the settings in app-routing.module.ts file from locales.json file. I can pull the locales.json file in development mode, but when I use angular universal ssr and define it as LocalizeRouterHttpLoader, it gives 500 error. After setting ManualParserLoader to app-routing.module.ts file, it does not give 500 error.
Note : This method working on angular universal ssr.
export function createTranslateLoader(translate: TranslateService, location: Location, settings: LocalizeRouterSettings) {
return new ManualParserLoader(translate, location, settings, ['en','fr'], 'ROUTES.');
}
Note : This method not working on angular universal ssr.
export function HttpLoaderFactory(translate: TranslateService, location: Location, settings: LocalizeRouterSettings, http: HttpClient) {
return new LocalizeRouterHttpLoader(translate, location, settings, http);
}
The text was updated successfully, but these errors were encountered:
Hi,
I want to get the settings in app-routing.module.ts file from locales.json file. I can pull the locales.json file in development mode, but when I use angular universal ssr and define it as LocalizeRouterHttpLoader, it gives 500 error. After setting ManualParserLoader to app-routing.module.ts file, it does not give 500 error.
Note : This method working on angular universal ssr.
export function createTranslateLoader(translate: TranslateService, location: Location, settings: LocalizeRouterSettings) {
return new ManualParserLoader(translate, location, settings, ['en','fr'], 'ROUTES.');
}
Note : This method not working on angular universal ssr.
export function HttpLoaderFactory(translate: TranslateService, location: Location, settings: LocalizeRouterSettings, http: HttpClient) {
return new LocalizeRouterHttpLoader(translate, location, settings, http);
}
The text was updated successfully, but these errors were encountered: