diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-06 09:36:43 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-06 09:36:43 -0700 |
commit | 63aa40978c87fdf32b65b241e7e864f0824f18e9 (patch) | |
tree | 194c39b85ca9469a12036c295580aef18bbf92d5 /tools | |
parent | f82c2d0cc93321d6b2db0807210dcfa0a1083401 (diff) | |
download | trackermap-web-63aa40978c87fdf32b65b241e7e864f0824f18e9.tar.gz trackermap-web-63aa40978c87fdf32b65b241e7e864f0824f18e9.tar.bz2 trackermap-web-63aa40978c87fdf32b65b241e7e864f0824f18e9.zip |
Update scripts
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/package.sh | 14 | ||||
-rwxr-xr-x | tools/translate.py | 4 |
2 files changed, 1 insertions, 17 deletions
diff --git a/tools/package.sh b/tools/package.sh deleted file mode 100755 index 1d43ff39..00000000 --- a/tools/package.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -cd $(dirname $0) -cd .. - -rm -rf web/lib -npm ci --unsafe-perm -npm run build - -cd modern - -rm -rf build -npm ci -npm run build diff --git a/tools/translate.py b/tools/translate.py index e1212b7c..6fe22a92 100755 --- a/tools/translate.py +++ b/tools/translate.py @@ -26,7 +26,5 @@ 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: + with open('..//src/resources/l10n/' + language.code + '.json', "w") as file: file.write(result.text) |