Zaid-Ajaj / Fable.React.Flatpickr

Fable binding for react-flatpickr that is ready to use within Elmish applications
https://zaid-ajaj.github.io/Fable.React.Flatpickr/
MIT License
14 stars 6 forks source link

Support Localization #2

Closed SCullman closed 6 years ago

Zaid-Ajaj commented 6 years ago

Thanks a lot! Will be published soon :smile:

Zaid-Ajaj commented 6 years ago

@SCullman Published v1.4.0 with the locales predefined. You example becomes:

Flatpickr.flatpickr [Flatpickr.Locale Flatpickr.Locales.german]

where the Flatpickr.Locales module contains 30+ locales

SCullman commented 6 years ago

Perfect. I thought also about including all locales, but decided against to reduce the size of the lib. Thank you for your quick merge!

Zaid-Ajaj commented 6 years ago

I think Webpack should be able to remove unused import, not sure if there is extra configuration needed to do so but nonetheless, these locale files are very small containing object literals for local data so I don't think it is a big difference