fix: translate

This commit is contained in:
Hiddify
2023-10-08 00:40:37 +02:00
parent e728cb8b66
commit b527773c86
6 changed files with 10 additions and 6 deletions

View File

@@ -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]: