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

moment-picker localization #275

Open
Coul92 opened this issue Oct 12, 2018 · 0 comments
Open

moment-picker localization #275

Coul92 opened this issue Oct 12, 2018 · 0 comments

Comments

@Coul92
Copy link

Coul92 commented Oct 12, 2018

moment-picker cannot locale if
$scope.from = moment(new Date().toISOString());
passed as attribute value
moment-picker="from"
It sets an English as localization and ignoring locale attribute:
moment-picker="from" locale="uk"
Only if I set
$scope.from = moment(new Date().toISOString()).locale("ru");
it helps, but I cannot do this, because I set already locale to all of my moment-pickers via momentPickerProvider:
app.config(['momentPickerProvider', function (momentPickerProvider) { momentPickerProvider.options({ locale: 'uk' }); }]);

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

1 participant