fix: translate
This commit is contained in:
2
.github/auto_translator.py
vendored
2
.github/auto_translator.py
vendored
@@ -22,7 +22,7 @@ def read_translate(lang):
|
||||
def recursive_translate(src, dst, translator):
|
||||
for sk, sv in src.items():
|
||||
if type(sv) == str:
|
||||
if sk not in dst:
|
||||
if sk not in dst or not dst[sk]:
|
||||
dst[sk] = translator.translate(sv)
|
||||
print(sk, sv, dst[sk])
|
||||
if not dst[sk]:
|
||||
|
||||
2
.github/sync_translate.sh
vendored
2
.github/sync_translate.sh
vendored
@@ -24,7 +24,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=true&ignore-existing=false&locale=$lang&flag-new=Provisional&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' \
|
||||
--data-binary @$pat
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"disable": "Disable"
|
||||
},
|
||||
"sort": "Sort",
|
||||
"sortBy": "Sort by"
|
||||
"sortBy": "Sort by",
|
||||
"addToClipboard": "Add to clipboard"
|
||||
},
|
||||
"intro": {
|
||||
"termsAndPolicyCaution(rich)": "by continuing you agree with ${tap(@:about.termsAndConditions)}",
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"disable": "غیر فعال"
|
||||
},
|
||||
"sort": "مرتبسازی",
|
||||
"sortBy": "مرتبسازی براساس"
|
||||
"sortBy": "مرتبسازی براساس",
|
||||
"addToClipboard": "به کلیپ بورد اضافه کنید"
|
||||
},
|
||||
"intro": {
|
||||
"termsAndPolicyCaution(rich)": "در صورت ادامه با ${tap(@:about.termsAndConditions)} موافقت میکنید",
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"disable": "Выключить"
|
||||
},
|
||||
"sort": "Сортировать",
|
||||
"sortBy": "Сортировать по"
|
||||
"sortBy": "Сортировать по",
|
||||
"addToClipboard": "Добавить в буфер обмена"
|
||||
},
|
||||
"intro": {
|
||||
"termsAndPolicyCaution(rich)": "продолжая, вы соглашаетесь с ${tap(@:about.termsAndConditions)}",
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"disable": "停用"
|
||||
},
|
||||
"sort": "排序",
|
||||
"sortBy": "排序方式"
|
||||
"sortBy": "排序方式",
|
||||
"addToClipboard": "添加到剪贴板"
|
||||
},
|
||||
"intro": {
|
||||
"termsAndPolicyCaution(rich)": "继续即表示您同意 ${tap(@:about.termsAndConditions)}",
|
||||
|
||||
Reference in New Issue
Block a user