diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-11-09 13:32:23 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-09 20:44:52 +0100 |
commit | 357c97dfa864dbd779d517bac502858aa2618b96 (patch) | |
tree | 881a6ec55dd029da9b755455eda09ccfb8ab3611 /Meta/CMake | |
parent | 91881be4b0f88b964f33ca77d4b57a9ef21ddb79 (diff) | |
download | serenity-357c97dfa864dbd779d517bac502858aa2618b96.zip |
LibUnicode: Parse the CLDR's defaultContent.json locale list
This file contains the list of locales which default to their parent
locale's values. In the core CLDR dataset, these locales have their own
files, but they are empty (except for identity data). For example:
https://github.com/unicode-org/cldr/blob/main/common/main/en_US.xml
In the JSON export, these files are excluded, so we currently are not
recognizing these locales just by iterating the locale files.
This is a prerequisite for upgrading to CLDR version 40. One of these
default-content locales is the popular "en-US" locale, which defaults to
"en" values. We were previously inferring the existence of this locale
from the "en-US-POSIX" locale (many implementations, including ours,
strip variants such as POSIX). However, v40 removes the "en-US-POSIX"
locale entirely, meaning that without this change, we wouldn't know that
"en-US" exists (we would default to "en").
For more detail on this and other v40 changes, see:
https://cldr.unicode.org/index/downloads/cldr-40#h.nssoo2lq3cba
Diffstat (limited to 'Meta/CMake')
0 files changed, 0 insertions, 0 deletions