0.6.0 - Redesign, downloads, tagging fixes, download quality selector...

This commit is contained in:
exttex 2020-10-19 21:28:45 +02:00
parent bcf709e56d
commit 1384aedb35
28 changed files with 1201 additions and 878 deletions

View file

@ -18,7 +18,9 @@ lang_crowdin = {
'ro': 'ro_ro',
'ru': 'ru_ru',
'tr': 'tr_tr',
'pl': 'pl_pl'
'pl': 'pl_pl',
'uk': 'uk_ua',
'hu': 'hu_hu'
}
def generate_dart():
@ -30,7 +32,7 @@ def generate_dart():
lang = file.split('/')[0]
out[lang_crowdin[lang]] = json.loads(data)
with open('crowdin.dart', 'w') as f:
with open('../lib/languages/crowdin.dart', 'w') as f:
data = json.dumps(out, ensure_ascii=False).replace('$', '\\$')
out = f'const crowdin = {data};'
f.write(out)