fix: translate CSV (#33855)
This commit is contained in:
parent
66b3fb52b0
commit
c8c07ea685
1 changed files with 2 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue