js-joda-locale icon indicating copy to clipboard operation
js-joda-locale copied to clipboard

Add possibility to load multiple locales

Open phueper opened this issue 7 years ago • 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

phueper avatar Oct 29 '18 14:10 phueper

Is this limitation also present when importing directly from @js-joda/locale or does this only occur with the prebuilt single locale packages?

kuhnroyal avatar Jan 09 '19 11:01 kuhnroyal

it is also when importing from js-joda/locale sadly

phueper avatar Jan 11 '19 20:01 phueper

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.

cipacda avatar Oct 28 '20 16:10 cipacda

I just added a solution to this problem: https://github.com/js-joda/js-joda/issues/421

It is hacky, but work for now.

smil2k avatar May 03 '24 10:05 smil2k