We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be useful to be able to load the locale data at bootstrap at the same time of translations.
locale
The solution documented here could be integrated/supported by locl? A better solution is now available with Angular 9 and $localize?
locl
$localize
The text was updated successfully, but these errors were encountered:
Does this code snippet help you?
import { registerLocaleData } from '@angular/common'; /** * Load the appropriate locale */ async function initializeLocale(localeId: string): Promise<void> { return import( /* webpackMode: "lazy-once" */ `@angular/common/locales/${localeId}.js` ).then((localeModule) => registerLocaleData(localeModule.default)); }
Then you can call it where you load the translations with locl:
await initializeLocale(translations.locale);
Sorry, something went wrong.
No branches or pull requests
It would be useful to be able to load the
locale
data at bootstrap at the same time of translations.The solution documented here could be integrated/supported by
locl
? A better solution is now available with Angular 9 and$localize
?The text was updated successfully, but these errors were encountered: