-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Provide an example usage of registerLocaleData() #2182
Comments
I tried to add locales similar to the other packages, but didn't succeeded.
Which results in an error
As it they are not recognized it seems. |
In the AppModule
for JIT i also added And then you also need to add the npm dependency to your project.config With this configuration the aot build works for me, im happy to provide further details if needed. |
Hey @tobiaseisenschenk, thanks for your input. But when I do that and run
|
i can't figure it out either, only solution that works for me is to copy locale.js to base app folder, change it to .ts and then import - but it's far from optimal :) |
@mgechev Do you have any idea about this one? |
Solution by @tobiaseisenschenk worked for me for AOT. For CLI this is the behavior:
Can we add --locale parameter and mimic this behavor? |
install dependencies add following line in |
I'm submitting a ... (check one with "x")
According to the documentation,
registerLocaleData()
method is needed to change the pipe formats.Current i18n mechanism of angular-seed doesn't use
registerLocaleData()
method at all.The text was updated successfully, but these errors were encountered: