greatCodeIdeas / md-date-range-picker

Angular Material Date Range Picker Service/Directive
MIT License
62 stars 40 forks source link

Add the possibility to use different languages #58

Closed tobiasAuzmendi closed 6 years ago

tobiasAuzmendi commented 6 years ago

Hi how that's going? I'm using the md-date-range-picker component. I'm wondering if is possible to use different languages. Is there a workaround to do this? I think that set the lang as some param is not the unique way, could be great, at least, set the month names, week day names and filtering options (such as "last month", "this year", etc..) verbiages settable. I'll appreciate an answer. Kind regards.

roelbarreto commented 6 years ago

Duplicate issue and feature already added by @yoni12ab , please refer to #6

tobiasAuzmendi commented 6 years ago

Great @ipiz! I'm playing with this. But as far as I understud the added functionality is related to custom templates (such as "last month", "this year", etc..). I can't find a way to translate week day names and month names. It would be very helpful for me to know your opinion about this. Thanks!

roelbarreto commented 6 years ago

Yes the Month and Days can be set on there too. https://jsfiddle.net/xvc93tgs/3/

tobiasAuzmendi commented 6 years ago

Very complete and usable. Great job man!