add inlang project and remove localize
This commit is contained in:
4
.github/auto_translator.py
vendored
4
.github/auto_translator.py
vendored
@@ -6,8 +6,8 @@ import os
|
||||
|
||||
|
||||
def get_path(lang):
|
||||
if lang == 'en':
|
||||
return f'../assets/translations/strings.i18n.json'
|
||||
# if lang == 'en':
|
||||
# return f'../assets/translations/strings.i18n.json'
|
||||
return f'../assets/translations/strings_{lang}.i18n.json'
|
||||
|
||||
|
||||
|
||||
28
.github/sync_translate.sh
vendored
28
.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"
|
||||
# key="FRu3eopQWgsvWmnycBXxv2eWpbUwGOu2"
|
||||
# wget -O ../assets/translations/strings_en.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"
|
||||
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ python3 auto_translator.py en ru
|
||||
function update_localise(){
|
||||
lang=$1
|
||||
pat="../assets/translations/strings_${lang}.i18n.json"
|
||||
if [[ $lang == 'en' ]];then
|
||||
pat="../assets/translations/strings.i18n.json"
|
||||
fi
|
||||
# if [[ $lang == 'en' ]];then
|
||||
# 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" \
|
||||
-H 'Accept: application/json' \
|
||||
@@ -30,8 +30,8 @@ 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 ru
|
||||
# update_localise en
|
||||
# update_localise fa
|
||||
# update_localise zh
|
||||
# # # # update_localise pt
|
||||
# update_localise ru
|
||||
Reference in New Issue
Block a user