Freezer for Linux and Windows.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
484 B

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()