-
Notifications
You must be signed in to change notification settings - Fork 154
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
local for another lang #149
Comments
plz help me |
I success to change language (ionic 3).
|
I use this to change the language in angular 4 application:
|
I'm using it, but amDateFormat doesn't respect locale.... |
Agree, it doesn't respect that... |
any plans to implement this functionality ? |
When I used the amLocale pipe, I was struggeling with getting the locale loaded. When I did something like ``` {{ myMoment | amLocale:'de' | amDateFormat:'MMMM' }} ``` to thow the month of a date, I always got the english name of the month. After searching the issues, I found this comment urish#149 (comment), what finally helped me. I checked my node_modules that moment was installed and just did the import. I didn't test in my project, if the manual installation of moment.js is necesssary on a clean project. I think, it would improve the documentation, if this note is added.
@urish I sent the PR #187 a while ago. Now with the change of the build process the same problem occurs and it could probably solved in a similar way. Tested only locally, but if you move import * as moment from 'moment';
moment.locale('de'); We fixed it temporarily with with the
Then import * as moment from 'moment';
moment.locale('de'); works again |
I think the best solution would be to have moment as a peerDependency, WDYT @wachri ? |
With the previous version this hasn't worked, but now this should be the solution :). |
released as 3.0.0 |
@urish Locale still not working properly in 3.1.0. Doesn't seem to change until the next change detection. |
In 3.3.0 still not working for me. With Edit: |
hi, im use ionic 2 and angular2
how use angular2-moment for persian lnaguage in app.module
The text was updated successfully, but these errors were encountered: