fix: translate CSV (#33855)

This commit is contained in:
El-Shafei H. 2025-11-05 20:26:56 +03:00 committed by GitHub
parent 66b3fb52b0
commit c8c07ea685
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,6 +210,8 @@ def get_translation_dict_from_file(path, lang, app, throw=False) -> dict[str, st
csv_content = read_csv_file(path)
for item in csv_content:
item[0] = item[0].replace("\\n", "\n")
item[1] = item[1].replace("\\n", "\n")
if len(item) == 3 and item[2]:
key = item[0] + ":" + item[2]
translation_map[key] = strip(item[1])