RobbieTheWagner / ember-flatpickr

An Ember addon that wraps the Flatpickr date picker
https://RobbieTheWagner.github.io/ember-flatpickr/
MIT License
109 stars 55 forks source link

fix(locale): don't try dynamically importing the default locale #2098

Closed anehx closed 6 months ago

anehx commented 6 months ago

If "en" is passed as locale to the <EmberFlatpickr /> component, the addon will try importing a file flatpickr/dist/l10n/en.js which does not exist as English is the default language that is included in the core and doesn't need to be imported additionally.

RobbieTheWagner commented 6 months ago

Ah, good catch, thank you @anehx!

anehx commented 6 months ago

@RobbieTheWagner Can we get this merged and released? I have a few projects that currently need a workaround that can be removed with this released.