new: add chinese lang

This commit is contained in:
Hiddify
2023-10-06 09:02:33 +02:00
parent 3fb0b4fafe
commit 00cd0a9784
2 changed files with 257 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
key="FRu3eopQWgsvWmnycBXxv2eWpbUwGOu2"
wget -O ../assets/translations/strings.i18n.json "https://localise.biz/api/export/locale/en-US.json?index=id&format=i18next4&key=$key"
wget -O ../assets/translations/strings_fa.i18n.json "https://localise.biz/api/export/locale/fa.json?index=id&format=i18next4&key=$key"
# # wget -O assets/translations/strings_zh.i18n.json "https://localise.biz/api/export/locale/zh.json?index=id&format=i18next4&key=$key"
wget -O assets/translations/strings_zh.i18n.json "https://localise.biz/api/export/locale/zh.json?index=id&format=i18next4&key=$key"
# # wget -O assets/translations/strings_pt.i18n.json "https://localise.biz/api/export/locale/pt.json?index=id&format=i18next4&key=$key"
wget -O ../assets/translations/strings_ru.i18n.json "https://localise.biz/api/export/locale/ru.json?index=id&format=i18next4&key=$key"
@@ -10,7 +10,7 @@ pip install polib deep-translator python-i18n
# python3 auto_translator.py fa en
python3 auto_translator.py en fa
# python3 auto_translator.py en zh
python3 auto_translator.py en zh
# python3 auto_translator.py en pt
python3 auto_translator.py en ru
@@ -31,6 +31,6 @@ curl "https://localise.biz/api/import/json?format=i18next4&delete-absent=true&ig
update_localise en
update_localise fa
# # # update_localise zh
update_localise zh
# # # update_localise pt
update_localise ru