ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

Is it supported internationalization and localization? #146

Closed gandra closed 7 years ago

gandra commented 7 years ago

Hi! Congrats for great job! I do not know where to ask question so I will throw it here. Does it have support for localization?

allenhwkim commented 7 years ago

Yes. It uses MomentJS for localization, and you can find French Example from README.md

https://plnkr.co/edit/J6hXyB?p=preview

gandra commented 7 years ago

Thanks! I have seen french example but there are all english words?

allenhwkim commented 7 years ago

image

This is not english

image

This is not english either.

gandra commented 7 years ago

Perfecto. Thanks. Than only thi link in the readme is not valid. French example points to https://plnkr.co/edit/J6hXyB?p=preview which not exists. If you replacer https with http you get http://plnkr.co/edit/J6hXyB?p=preview and in this example there is no locale import.

But your screenshot is best answer! So I have to add moment.locale('fr-ca'). Thanks!