This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
Fix locale data and improve locale resolving #28
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This upgrades to
[email protected]
and[email protected]
which vastly improves the locale data in the following ways:zh-Hant-HK
is not the same aszh-Hant
which is not the same aszh
.aa, agq, bas, bh, ckb, dav, dje, dsb, dua, dv, dyo, ebu, ewo, guw, guz, hsb, ia, in, iu, iw, jbo, ji, jv, jw, kaj, kam, kcg, khq, ki, kln, kok, ksf, ku, lb, lu, luo, luy, mer, mfe, mgh, mo, mua, nah, nmg, no, nqo, nus, ny, pap, prg, qu, rn, rw, sbp, sh, sma, smi, smj, smn, sms, swc, syr, tk, tl, twq, vai, wa, wo, yav, yi, zgh
These changes also include improvements for how locales are resolved. Here are some details of these changes:
If no extra locale data is loaded, the locale will always resolved to
en
.If locale data is missing for a leaf locale like
fr-FR
, but there is data for the root,fr
in this case, then its root will be used.If there's data for the specified locale, then that locale will be resolved; i.e.,
The resolved locales are now normalized; e.g.,
en-us
will resolve to:en-US
.Fixes #25