Skip to content

Commit

Permalink
Enable support for new languages
Browse files Browse the repository at this point in the history
Spanish
Chinese (Traditional Han script)
Chinese (Simplified Han script)
  • Loading branch information
syeopite committed Nov 30, 2024
1 parent de82c92 commit 9ee07f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, locale, gettext_instance,) -> None:
self.name, self.translation_percentage = LOCALE_DATA[locale]

SUPPORTED_LANGUAGES = [
"en_US", "cs_CZ", "fr", "ja", "uk"
"en_US", "cs_CZ", "fr", "ja", "uk", "zh_Hans", "zh_Hant", "es"
]

SUPPORTED_LANGUAGES.sort()
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/i18n_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"cs_CZ": ("Čeština", 100),
"de": ("Deutsch", 37),
"en_US": ("English", 100),
"es": ("Español", 100),
"fr": ("Français", 80),
"ja": ("日本語", 75),
"nb_NO": ("Norsk bokmål", 21),
"uk": ("Українська", 100),
"zh_Hans": ("中文", 0),
"zh_Hans": ("中文", 54),
"zh_Hant": ("中文", 76),
}

0 comments on commit 9ee07f0

Please sign in to comment.