Add reset source in Translation.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-04-28 20:00:47 +08:00
parent daa0eafad5
commit 73409f791c
+4
View File
@@ -64,6 +64,10 @@ def main():
translation = copy.deepcopy(TRANSLATION)
for key in translation.keys():
# Reset source
translation[key]['source'] = []
for text, source in TranslationPool:
if text not in translation:
translation[text] = {'source': [source]}