Skip to content
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

Set Locale is not working #8

Open
bryannbarbosa opened this issue Aug 26, 2019 · 2 comments
Open

Set Locale is not working #8

bryannbarbosa opened this issue Aug 26, 2019 · 2 comments

Comments

@bryannbarbosa
Copy link

bryannbarbosa commented Aug 26, 2019

Set the locale property in the component is not changing the texts in datePicker, how to fix this?
Thanks in advance!

My code:

<DatePicker
     date={this.state.date}
     locale="pt"
     onSelect={date => {
        this.setState(state => ({ date: date }));
    }} />
@bryannbarbosa bryannbarbosa changed the title Setting Locale is not working Set Locale is not working Aug 26, 2019
@cheton
Copy link
Member

cheton commented Sep 6, 2019

This component uses moment.js under the hood. Have you properly configured moment.js with "pt" language enabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants