Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Add support for i18n#84

Open
quantumman wants to merge 6 commits into
quri:masterfrom
quantumman:support-i18n
Open

Add support for i18n#84
quantumman wants to merge 6 commits into
quri:masterfrom
quantumman:support-i18n

Conversation

@quantumman

Copy link
Copy Markdown

Weekdays are hardcoded.
In addition, even Moment.js supports i18n, this lib does not allow to change locale of Moment.js.
I modified code and added props to support other languages.

calendarFormat is a format for switch button in the top of calendar.
This props is also needed, because every countries do not use default format like 'August 2015'.

<DateTimeField locale="ja"  calendarFormat="YYYY年 MM" />

@chollier

Copy link
Copy Markdown
Member

wow love that ! Thanks quantumman I'll review that today and merge it asap

@bekerov

bekerov commented Sep 16, 2015

Copy link
Copy Markdown

@chollier how about merge ?

@iam4x

iam4x commented Oct 7, 2015

Copy link
Copy Markdown

bump! :)

@iam4x

iam4x commented Oct 8, 2015

Copy link
Copy Markdown

until it gets merged: $ npm i -S iam4x/react-bootstrap-datetimepicker#master

@ingro

ingro commented Nov 5, 2015

Copy link
Copy Markdown

Would love to see this merged!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants