From a766650bc8a6faf18253c3998dfe53ed1157c119 Mon Sep 17 00:00:00 2001 From: Danstiv <50794055+Danstiv@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:57:30 +0700 Subject: [PATCH] Fix po translation validation --- scripts/process_translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process_translations.py b/scripts/process_translations.py index 55637a3..efb51f1 100644 --- a/scripts/process_translations.py +++ b/scripts/process_translations.py @@ -99,7 +99,7 @@ def convert_po_to_lng(*, project_path, english_lng, file, language_code, languag lng = {"Culture": language_code, "Language": language_name.lower()} for identifier, string in english_lng.items(): translated_string = po_translation._catalog.get( - convert_percents_to_braces(string), None + convert_percents_to_braces(string).replace("\r\n", "\n"), None ) if translated_string is None: missing_strings.append(f"{identifier} - {string[:200]}")