fix error converting translations to .po if .po files already exist

This commit is contained in:
Andrej730
2024-01-09 16:00:21 +05:00
parent a2ea7bf1d8
commit df41f541de
+1 -1
View File
@@ -50,7 +50,7 @@ def convert_translations_to_po():
for file in Path(temp_po_dir.name).iterdir():
branches_subdir = BRANCHES_DIR / file.stem
branches_subdir.mkdir(exist_ok=True)
file.rename(branches_subdir / file.name)
file.replace(branches_subdir / file.name)
temp_po_dir.cleanup()