Add possibility to load multiple locales
phueper opened this issue · 4 comments
Right now it is only possible to load one locale package at a time.
Now that we have prebuilt locale packages, it may be possible, that a user wants to load several locale pacakges and expects them all to work, e.g. load @js-joda/locale_en
and @js-joda/locale_de
... expect both en and de locales to be available.. right now only the locale that was required later is will be available, so we force users to do something like dynamic requires
Is this limitation also present when importing directly from @js-joda/locale
or does this only occur with the prebuilt single locale packages?
it is also when importing from js-joda/locale sadly
Do we know how difficult would it be to implement this? I think we should at least add some examples on how to work around this, but ideally implement it.
I just added a solution to this problem:
js-joda/js-joda#421
It is hacky, but work for now.