ddnet/scripts/languages/update_all.py

11 lines
277 B
Python
Raw Normal View History

#!/usr/bin/env python3
import os
from copy_fix import copy_fix
import twlang
os.chdir(os.path.dirname(__file__) + "/../..")
for lang in twlang.languages():
2020-12-02 14:22:26 +00:00
content = copy_fix(lang, delete_unused=True, append_missing=True, delete_empty=False)
open(lang, "w").write(content)