elixir-cldr / cldr

Elixir implementation of CLDR/ICU
Other
440 stars 33 forks source link

Fallback chain with locale has a variant #197

Closed kipcole9 closed 1 year ago

kipcole9 commented 1 year ago

Based upon this discussion document it would seem there is one bug and one poor design choice in the implementation of the fallback locales.

Document Examples:

"es-AR" → "es-419" → "es" → "und" "sr-ME" → "sr-Latn-ME" → "sr-Latn" → "und" "ca-ES-valencia" → "ca-ES" → "ca" → "und" "hi-Latn-IN" → "hi-Latn" → "en-IN" → "en-001" → "en" → "und" "en-US-u-sd-usca" → "en-US" → "en" → "und"

ex_cldr implementation