1.1.0 - Translations, downloads, bug fixes
This commit is contained in:
parent
2f8bca3dfb
commit
fbafb4286d
63 changed files with 3820 additions and 636 deletions
17
generate_translations.py
Normal file
17
generate_translations.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue