-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Language: Days get settled language but months don't #480
Comments
(unrelated to your problem; i'd put the I believe to fix this we'd need to save the moment locale in the state of |
Thank you @ljharb for your quick answer. I took your advice but the problem is still there (I understand it wasn't a solution but an advice, thanks again about that). What can I do to resolve this ? Sorry for my poor javascript skill, just started to learn last year :) |
@ljharb that seems like a reasonable solution. Someone else was having the same problem as well... why does it work in the storybook is my Q I guess? |
We need to submit a PR to make this happen! 🎉 |
I also encounter this problem and solved by changing the locale in the constructor. example: class DatePicker extends Component {
constructor (props) {
super(props);
moment.locale('zh-tw');
}
} |
Hi,
thanks you for your answer, I already tried this and it didn’t work at this time, but I don’t know why, the problem has been solved now by itself. Magic 😉
… Le 14 juin 2017 à 11:14, Huli ***@***.***> a écrit :
I also encounter this problem and solved by changing the locale in the constructor.
example:
class DatePicker extends Component {
constructor (props) {
super(props);
moment.locale('zh-tw');
}
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#480 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ARDH0fIXImwkFshtEi4z_s5WhGGbAEXpks5sD6RbgaJpZM4NLw-p>.
|
I've a similar problem, solved adding a |
Hi guys, I have an issue I hope you can help. The question is in the title, the settled language is in French, so days are in French but months stay in English. I tried everything I could, I think you guys would be better than me. I'm sure the problem is very simple, but I don't see it !
The baby coder that I am thanks you a lot !
The text was updated successfully, but these errors were encountered: