You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: This is the actual algorithm that should be used to determine the right locale data:
Valid Locale
A populated locale is one for which ICU has data, or one in which client code has registered a service. If the requested locale is not populated, then ICU will fallback until it reaches a populated locale. The first populated locale it reaches is the valid locale. The
valid locale is reachable from the requested locale via zero or more fallback steps.
Fallback
Locale fallback proceeds as follows:
The variant is removed, if there is one.
The country is removed, if there is one.
The script is removed, if there is one.
The ICU default locale is examined. The same set of steps is performed for the default locale.
At any point, if the desired data is found, then the fallback procedure stops. Keywords are not altered during fallback until the default locale is reached, at which point all keywords are replaced by those assigned to the default locale.
The text was updated successfully, but these errors were encountered:
I'm trying to upgrade webpack and I saw this posted by Sylvanaar, another reminder of everything he taught me.
We ended up doing a pretty complex workaround on this, it's similar to what you wrote. The library I wrote both adds and overrides the cldr library as a node script fired off in the build step.
The CLDR data does not have data for locales in the form xx-XX where XX are the same 2 characters. e.g. it-IT.
I assume the expectation is to use just xx (e.g. it) in that case.
This plugin doesn't seem to work under those circumstances. Doesn't build correctly
Example error:
With
it-IT
in the supported locales we get:Module parse failed: Cannot find module './main/it-IT/ca-gregorian'
Is there a workaround?
Edit: This is the actual algorithm that should be used to determine the right locale data:
The text was updated successfully, but these errors were encountered: