1.1.0 - Translations, downloads, bug fixes

This commit is contained in:
exttex 2020-10-31 16:54:28 +01:00
parent 2f8bca3dfb
commit fbafb4286d
63 changed files with 3820 additions and 636 deletions

17
generate_translations.py Normal file
View file

@ -0,0 +1,17 @@
import zipfile
import json
def generate():
with zipfile.ZipFile('translations.zip') as zip:
for file in zip.namelist():
if 'freezerpc.json' in file:
data = zip.open(file).read()
lang = file.split('/')[0].split('-')[0].lower()
if lang != 'en':
with open('app/client/src/locales/' + lang + '.json', 'wb') as f:
f.write(data)
if __name__ == '__main__':
generate()