Skip to content

Commit

Permalink
fix:sync_translations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Jan 31, 2025
1 parent ddadbcd commit a79d5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sync_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def load_lang_data(lang):
def update_locale(lang):
data = load_lang_data(lang)
for f, template in TEMPLATES.items():
keys = {k.lower(): v for k, v in data[f].items()}
keys = {k.lower(): v for k, v in data.get(f, {}).items()}
os.makedirs(f"{LOCALE_FOLDER}/{lang}", exist_ok=True)
with open(f"{LOCALE_FOLDER}/{lang}/{f}", "w") as f:
f.write(template.format(**keys).strip()+"\n")
Expand Down

0 comments on commit a79d5b0

Please sign in to comment.