generated from vrchat-community/template-package
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: incorrect display for zh-* culture names in lang switcher (#172)
Also: Remove uncultured language names from language switcher when a cultured variant is found Closes: #171 Closes: #157
- Loading branch information
1 parent
d7f8963
commit ac48b51
Showing
7 changed files
with
862 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import icu | ||
import json | ||
|
||
locales = icu.Locale.getAvailableLocales() | ||
|
||
displayNames = {} | ||
for locale in locales: | ||
icu_locale = icu.Locale(locale) | ||
displayNames[locale] = icu_locale.getDisplayName(icu_locale) | ||
|
||
displayNames["__comment__"] = "Derived from ICU dataset. See import_icu.py"; | ||
|
||
print(json.dumps(displayNames, indent=4, ensure_ascii=False)) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.