From 332d08dfabfb9f50bd95def3fa770c8ee09c8073 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 12 Sep 2024 15:17:29 +1000 Subject: [PATCH] fix: prepare strings needs to also include 'en' --- crowdin/generate_android_strings.py | 2 +- crowdin/generate_desktop_strings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crowdin/generate_android_strings.py b/crowdin/generate_android_strings.py index 838bb2e..7e0f3a0 100644 --- a/crowdin/generate_android_strings.py +++ b/crowdin/generate_android_strings.py @@ -191,7 +191,7 @@ def convert_all_files(input_directory): # Convert the XLIFF data to the desired format print(f"\033[2K{Fore.WHITE}⏳ Converting translations to target format...{Style.RESET_ALL}", end='\r') source_locale = source_language['locale'] - for language in target_languages: + for language in [source_language] + target_languages: lang_locale = language['locale'] print(f"\033[2K{Fore.WHITE}⏳ Converting translations for {lang_locale} to target format...{Style.RESET_ALL}", end='\r') input_file = os.path.join(input_directory, f"{lang_locale}.xliff") diff --git a/crowdin/generate_desktop_strings.py b/crowdin/generate_desktop_strings.py index e47af78..2f014fb 100644 --- a/crowdin/generate_desktop_strings.py +++ b/crowdin/generate_desktop_strings.py @@ -159,7 +159,7 @@ def convert_all_files(input_directory): # Convert the XLIFF data to the desired format print(f"\033[2K{Fore.WHITE}⏳ Converting translations to target format...{Style.RESET_ALL}", end='\r') - for language in target_languages: + for language in [source_language] + target_languages: lang_locale = language['locale'] lang_two_letter_code = language['twoLettersCode'] print(f"\033[2K{Fore.WHITE}⏳ Converting translations for {lang_locale} to target format...{Style.RESET_ALL}", end='\r')