aboutsummaryrefslogtreecommitdiff
path: root/tools/translate.py
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-04 13:44:41 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-04 13:44:41 -0800
commit80815532407d2f92a387ce0c40c87bb81aecad51 (patch)
tree065bb45093feb2044a94b99b7aa7cba45193ed50 /tools/translate.py
parent918dd60d63ff4d99b7853063f6b7734d6154e1a0 (diff)
downloadtrackermap-web-80815532407d2f92a387ce0c40c87bb81aecad51.tar.gz
trackermap-web-80815532407d2f92a387ce0c40c87bb81aecad51.tar.bz2
trackermap-web-80815532407d2f92a387ce0c40c87bb81aecad51.zip
Update translation script
Diffstat (limited to 'tools/translate.py')
-rwxr-xr-xtools/translate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/translate.py b/tools/translate.py
index b6f25beb..e1212b7c 100755
--- a/tools/translate.py
+++ b/tools/translate.py
@@ -26,5 +26,7 @@ for language in languages:
print(language.code)
url = transifex_api.ResourceTranslationsAsyncDownload.download(resource=resource, language=language)
result = requests.get(url)
+ with open('../web/l10n/' + language.code + '.json', "w") as file:
+ file.write(result.text)
with open('../modern/src/resources/l10n/' + language.code + '.json', "w") as file:
file.write(result.text)