From 78da227ebad0abd3e147fc76f6601b4b6ed65073 Mon Sep 17 00:00:00 2001 From: Ludy Date: Sat, 30 May 2026 23:00:17 +0200 Subject: [PATCH] fix: Use frontend/editor for locales paths (#6483) --- .github/scripts/check_language_toml.py | 3 ++- scripts/counter_translation_v3.py | 2 +- scripts/translations/translation_merger.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/scripts/check_language_toml.py b/.github/scripts/check_language_toml.py index fe9fede75..b931bac52 100644 --- a/.github/scripts/check_language_toml.py +++ b/.github/scripts/check_language_toml.py @@ -184,7 +184,7 @@ def check_for_differences(reference_file, file_list, branch, actor): if len(file_list) == 1: file_arr = file_list[0].split() - base_dir = Path.cwd() / "frontend" / "public" / "locales" + base_dir = Path.cwd() / "frontend" / "editor" / "public" / "locales" for file_path in file_arr: file_path = Path(file_path) @@ -372,6 +372,7 @@ if __name__ == "__main__": os.path.join( os.getcwd(), "frontend", + "editor", "public", "locales", "*", diff --git a/scripts/counter_translation_v3.py b/scripts/counter_translation_v3.py index d298323a2..4b1a957b5 100644 --- a/scripts/counter_translation_v3.py +++ b/scripts/counter_translation_v3.py @@ -345,7 +345,7 @@ def main() -> None: # Project layout assumptions cwd = os.getcwd() - locales_dir = os.path.join(cwd, "frontend", "public", "locales") + locales_dir = os.path.join(cwd, "frontend", "editor", "public", "locales") reference_file = os.path.join(locales_dir, "en-GB", "translation.toml") scripts_directory = os.path.join(cwd, "scripts") translation_state_file = os.path.join(scripts_directory, "ignore_translation.toml") diff --git a/scripts/translations/translation_merger.py b/scripts/translations/translation_merger.py index 7959ba849..6ea4b9536 100644 --- a/scripts/translations/translation_merger.py +++ b/scripts/translations/translation_merger.py @@ -22,7 +22,7 @@ import tomli_w class TranslationMerger: def __init__( self, - locales_dir: str = os.path.join(os.getcwd(), "frontend", "public", "locales"), + locales_dir: str = os.path.join(os.getcwd(), "frontend", "editor", "public", "locales"), ignore_file: str = os.path.join( os.getcwd(), "scripts", "ignore_translation.toml" ), @@ -371,7 +371,7 @@ def main(): ) parser.add_argument( "--locales-dir", - default=os.path.join(os.getcwd(), "frontend", "public", "locales"), + default=os.path.join(os.getcwd(), "frontend", "editor", "public", "locales"), help="Path to locales directory", ) parser.add_argument(