From e3b52936a0f13ad35b469d5332584a6696694c5c Mon Sep 17 00:00:00 2001 From: "Romain B." <8530352+Rom1-B@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:10:00 +0200 Subject: [PATCH] Add workflows to sync locales (#391) --- .github/workflows/locales-sync.yml | 14 ++++++++++++++ .github/workflows/locales-update-source.yml | 13 +++++++++++++ .tx/config | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/locales-sync.yml create mode 100644 .github/workflows/locales-update-source.yml diff --git a/.github/workflows/locales-sync.yml b/.github/workflows/locales-sync.yml new file mode 100644 index 0000000000..f1efd1ccf8 --- /dev/null +++ b/.github/workflows/locales-sync.yml @@ -0,0 +1,14 @@ +name: "Synchronize locales" + +on: + schedule: + - cron: "0 0 * * 1-5" + workflow_dispatch: + +jobs: + sync-with-transifex: + name: "Sync with transifex" + uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1" + secrets: + github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}" + transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" diff --git a/.github/workflows/locales-update-source.yml b/.github/workflows/locales-update-source.yml new file mode 100644 index 0000000000..928c9318ec --- /dev/null +++ b/.github/workflows/locales-update-source.yml @@ -0,0 +1,13 @@ +name: "Update locales sources" + +on: + push: + branches: + - "main" + +jobs: + push-on-transifex: + name: "Push locales sources" + uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1" + secrets: + transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" diff --git a/.tx/config b/.tx/config index c4df3043d6..d2a693f816 100644 --- a/.tx/config +++ b/.tx/config @@ -1,7 +1,7 @@ [main] host = https://www.transifex.com -[o:teclib:p:glpi-plugin-order:r:order-pot] +[o:teclib:p:glpi-project-plugin-order:r:order-pot] file_filter = locales/.po source_file = locales/order.pot source_lang = en