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

Implement starting day and locale support #150

Closed
zuffik opened this issue Sep 17, 2017 · 2 comments
Closed

Implement starting day and locale support #150

zuffik opened this issue Sep 17, 2017 · 2 comments

Comments

@zuffik
Copy link

zuffik commented Sep 17, 2017

I would like to have an option to set my own locale or at least day labels above the calendar.
Next it would be good to choose what day is the starting day of week (monday instead of sunday).
I have tried this:

let mom = moment();
mom.locale(this.config.locale.short);
mom.isoWeekday(1);
mom.startOf('isoweek');
let picker = new MaterialDatetimePicker({
    'default': mom
});

The starting day stays untouched.
Header is translated but day labels, OK and Cancel buttons are still in english.

Thanks

@schaermu
Copy link

The start of the week can be set as soon as #152 is merged. As for localization options, i'm not quite sure what rome provides, didn't find anything on a first glimpse (https://github.com/bevacqua/rome#romeelem-options)

@zuffik
Copy link
Author

zuffik commented Nov 28, 2017

Thank you, I did not notice that merge.

In rome package they recommended to set up localization with moment.js.

@zuffik zuffik closed this as completed Nov 28, 2017
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