-
Notifications
You must be signed in to change notification settings - Fork 5
Description
First, thank you for your work on this library! I tried a couple of different datePicker libraries for my Svelte app and with this one the result is beautiful.
My question:
I need to use two different languages in my application: english and french. I also need to tweak the default "en" and "fr" Locales provided by Flatpickr because I need to configure firstDayOfWeek on each of them.
So, something like:
import svlatepickr, { l10n } from 'svelte-flatpickr-plus';
const localeToUse = {
...l10n.en, // or l10n.fr
firstDayOfWeek: 3 // configurable
};
But by importing { l10n } I guess I'm importing all the Locales, even those I don't need. Is that correct? Is there a way to prevent that?
It would be nice if firstDayOfWeek were an option, the same way time_24hr is. That way, I could only specify "en" or "fr" as the Locale, without importing "l10n" at all... Maybe then the Locales I don't use would not be loaded?