mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
fix: Use frontend/editor for locales paths (#6483)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user