new: add russian lang
This commit is contained in:
2
.github/auto_translator.py
vendored
2
.github/auto_translator.py
vendored
@@ -44,4 +44,4 @@ if __name__ == "__main__":
|
||||
recursive_translate(src_pofile, dst_pofile, translator)
|
||||
|
||||
with open(get_path(dst), 'w') as df:
|
||||
json.dump(dst_pofile, df)
|
||||
json.dump(dst_pofile, df, ensure_ascii=False, indent=4)
|
||||
|
||||
16
.github/sync_translate.sh
vendored
16
.github/sync_translate.sh
vendored
@@ -1,9 +1,9 @@
|
||||
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_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"
|
||||
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_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"
|
||||
|
||||
|
||||
pip install polib deep-translator python-i18n
|
||||
@@ -23,7 +23,7 @@ function update_localise(){
|
||||
pat="../assets/translations/strings.i18n.json"
|
||||
fi
|
||||
# curl -X POST "https://localise.biz/api/import/json?locale=$lang&key=$LOCALIZ_KEY" \
|
||||
curl "https://localise.biz/api/import/json?format=i18next4&delete-absent=false&ignore-existing=false&locale=$lang&flag-new=Provisional&key=$LOCALIZ_KEY" \
|
||||
curl "https://localise.biz/api/import/json?format=i18next4&delete-absent=true&ignore-existing=false&locale=$lang&flag-new=Provisional&key=$LOCALIZ_KEY" \
|
||||
-H 'Accept: application/json' \
|
||||
--data-binary @$pat
|
||||
}
|
||||
@@ -31,6 +31,6 @@ curl "https://localise.biz/api/import/json?format=i18next4&delete-absent=false&i
|
||||
|
||||
update_localise en
|
||||
update_localise fa
|
||||
# # update_localise zh
|
||||
# # update_localise pt
|
||||
# # # update_localise zh
|
||||
# # # update_localise pt
|
||||
update_localise ru
|
||||
Reference in New Issue
Block a user