Locale change not working since upgrade to Module
See original GitHub issueI’ve recently upgraded a project to angular 2 final and found that a locale change on moment doesn’t change the displayed lang using am pipes.
I’ve used the suggestions from #26 but still have the issue.
import * as moment from 'moment';
import 'moment/min/locales';
I’ve created an example here: plunkr
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
android - changes in locale does work when add many modules
We use Crowdin (this lib apply a wrapper above context). The app works perfectly when only is a single module. Use Appcompat:1.2. When...
Read more >Localization update does not update configuration translations
Add a language. Enable Locale module. Go to report > Translation updates and run a translation update. Observe: Configuration translations are ...
Read more >How do I fix my locale issue? - Ask Ubuntu
First run locale to list what locales currently defined for the current user account: $ locale LANG=C LANGUAGE= LC_CTYPE=fi_FI.
Read more >Not work import modules in locales files after add hooks to ...
Not work import modules in locales files after add hooks to core after latest package upgrade · Issue #835 · nuxt-modules/i18n · GitHub....
Read more >Your current server locale setting does not work - ProcessWire
Note: Your current server locale setting does not work as expected with the UTF-8 character set and may cause minor problems.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi
I’m using current version with angular2 NgModule and for me everything is working. If you want to use different locale you should import in your class eg. app.component.ts
Please look at closed issue #20
@kghaghada my bad, for some reason I omitted this from the changelog. Added now: https://github.com/urish/angular2-moment/commit/eb60960509ec77e3221d1f36ae4ceb8641aa006e
and this is the relevant issue: #73