From 1e15272911ff39004302c4fdcc132cf784d787a2 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Wed, 2 Jul 2025 16:07:44 -0400 Subject: [PATCH] feat: crowdin.yml --- .github/crowdin.yml | 10 ++++++++++ .github/workflows/crowdin-upload.yml | 7 +++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .github/crowdin.yml diff --git a/.github/crowdin.yml b/.github/crowdin.yml new file mode 100644 index 000000000..9ed13201d --- /dev/null +++ b/.github/crowdin.yml @@ -0,0 +1,10 @@ +project_id_env: CROWDIN_PROJECT_ID +api_token_env: CROWDIN_PERSONAL_TOKEN +base_path: . +preserve_hierarchy: true + +files: + - source: .github/translations/*.po + translation: emhttp/languages/%locale%/*.po + - source: emhttp/languages/en_US/*.txt + translation: emhttp/languages/%locale%/*.txt \ No newline at end of file diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml index a6ebf350f..ed6cc4b53 100644 --- a/.github/workflows/crowdin-upload.yml +++ b/.github/workflows/crowdin-upload.yml @@ -47,10 +47,9 @@ jobs: upload_translations: false download_translations: false create_pull_request: false - # Configure source files directly in workflow - source: .github/translations/*.po,emhttp/languages/en_US/*.txt - translation: emhttp/languages/%locale%/*.po,emhttp/languages/%locale%/*.txt - + # Configuration file location + config: .github/crowdin.yml + # For Crowdin Enterprise, use: base_url: 'https://{organization-name}.api.crowdin.com' # For standard Crowdin, this can be omitted or use: base_url: 'https://api.crowdin.com' base_url: 'https://unraid.api.crowdin.com'