is it posibble to translate the calendar?
Opened this issue · 4 comments
I would like to use this calendar in a different language. Are there any options?
couldn't find it yet...
Thx, Micha.
Hey Micha,
Sorry, that functionality doesn't exist yet.
In the next version i'm about to release you can pass in a function can handle setting the input text, which should allow the input to be very customizable. As per the rest of the component, what would you want translated? I'm assuming months. Numbers as well?
Month and Numbers.
What are with the validations?
year must be a number >= 1970
month must be a number (Jan is 0)
there is also a
const months = "JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC".split(" ");
Not sure if it is used just internaly...
The library that I use for generating the calendar days starts at 1970. I should have been pushing that code to a develop branch, since it's not released yet. sorry about that. I am going to be changing those validators around, so if you're planning on forking or submitting a pr I would hold off for a few days.
Since there is no easy way to select a month or year without hitting the arrow a million times, i'm adding a text input field for the year. To avoid any user error, i'm validating that they enter a valid year.
Yup that code is just used internally within the calendar service. I don't expose that variable.
you can go on, for the moment it's okay for me. thx. Will fork it later and do the changes...
I'm a little bit new to the ng2 stuff, and have to do some other things at the moment.
Btw: i like your version of datepicker because if it's simplicity. And it works;) Thx, for that.