Skip to content

Commit

Permalink
Hotfix translations (#232)
Browse files Browse the repository at this point in the history
Hotfix translations
  • Loading branch information
Foxushka authored Sep 7, 2023
1 parent 4c646c5 commit 957ce87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@@locale": "zh-Hans",
"@@locale": "zh",
"ok": "\u786e\u5b9a",
"cancel": "\u53d6\u6d88",
"close": "\u5173\u95ed",
Expand Down Expand Up @@ -204,4 +204,4 @@
"force_flashing": "\u5f3a\u5236\u5237\u5165",
"chameleon_flashing_title_easter_egg": "\u60a8\u7684Chameleon{model} \u6b63\u5728\u5237\u5165",
"chameleon_flashing_title": "\u5728\u60a8\u7684Chameleon {model} \u4e0a\u5b89\u88c5\u56fa\u4ef6"
}
}
2 changes: 1 addition & 1 deletion chameleonultragui/lib/l10n/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ def request(method, url, data=None):
locale = None
for lang in LANGUAGES:
if lang['data']['id'] == language['data']['languageId']:
locale = lang['data']['osxLocale']
locale = lang['data']['osxLocale'].replace('-', '_')
translations['@@locale'] = locale
json.dump(translations, open(f'app_{locale}.arb', 'w+'), indent=2)

0 comments on commit 957ce87

Please sign in to comment.