We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ef274 commit 0185c56Copy full SHA for 0185c56
scripts/export-cldr.py
@@ -246,6 +246,9 @@ class LanguageDict(TypedDict, total=False):
246
data = json.load(handle)
247
for cldr_code, categories in data["supplemental"]["plurals-type-cardinal"].items():
248
code = map_code(cldr_code)
249
+ # Copy language data from basic
250
+ if code not in LANGUAGES and "_" in code:
251
+ LANGUAGES[code] = LANGUAGES[code.split("_", 1)[0]]
252
if len(categories) == 1:
253
# Just one category
254
LANGUAGES[code]["plurals"] = 1
0 commit comments