#!/usr/bin/env python3
import os
from copy_fix_tclient import copy_fix
import twlang_tclient as twlang

os.chdir(os.path.dirname(__file__) + "/../..")

for lang in twlang.languages():
	content = copy_fix(lang, delete_unused=True, append_missing=True, delete_empty=False)
	with open(lang, "w", encoding="utf-8") as f:
		f.write(content)
