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
The issue with this solution is that Transloco is initialized after my routes, even with this code:
exportconstappConfig: ApplicationConfig={providers: [provideHttpClient(),provideTransloco({config: {availableLangs: ['en'],defaultLang: 'en',// Remove this option if your application doesn't support changing language in runtime.reRenderOnLangChange: true,prodMode: !isDevMode(),},loader: TranslocoHttpLoader}),provideRouter(routes),]};
Describe the solution you'd like
Maybe I did something wrong, but here are two potential solutions:
Use a native Transloco resolver for translating tabs.
Allow the TranslocoHttpLoader to initialize before the router.
Describe alternatives you've considered
For now I translate in every component "page" in the ngOnInit method
Additional context
No response
I would like to make a pull request for this feature
No
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Which Transloco package(s) will this feature affect?
Don't know / other
Is your feature request related to a problem? Please describe
Hi everyone,
I'm looking for a way to translate every tab title without duplicating the code. To solve this, I would like to create a resolver such as:
and use it in my router:
The issue with this solution is that Transloco is initialized after my routes, even with this code:
Describe the solution you'd like
Maybe I did something wrong, but here are two potential solutions:
Describe alternatives you've considered
Additional context
No response
I would like to make a pull request for this feature
No
The text was updated successfully, but these errors were encountered: