shubhadip / vuejs3-datepicker

vue 3 datepicker. supports disabling, highlighting of dates and programmatic access of date.
https://vuejs3-datepicker.netlify.app/
MIT License
69 stars 41 forks source link

how to add new locale? #25

Closed linhdoan24 closed 2 years ago

linhdoan24 commented 2 years ago

how can i add new locale if not exits

shubhadip commented 2 years ago

create a function within src/components/datepicker/locale/index.ts && export it

ahoiroman commented 2 years ago

Could you add an example to do this in the docs? This would help a lot of people, I suppose :-)

shubhadip commented 2 years ago

updated readme with the steps to add new Locale, i hope this will be helpful.

ahoiroman commented 2 years ago

Hi. Thank you. As stated here (https://github.com/shubhadip/vuejs3-datepicker/pull/32), I think most people (including me) do not know how to actually use the new locale :-)

Tofandel commented 1 year ago

Also adding all the locales like this will prevent locales from being treeshaked, so all locales will always be loaded on one's page