From 77aa41c848f99f12490f844f4efda6e9cdb4034a Mon Sep 17 00:00:00 2001 From: stonebuzz Date: Mon, 26 Aug 2024 14:28:20 +0200 Subject: [PATCH] Feat(build): implement translate CI --- .github/workflows/translate.yml | 19 +++++++++++++++++++ .tx/config | 3 +-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/translate.yml diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml new file mode 100644 index 00000000..02f9865b --- /dev/null +++ b/.github/workflows/translate.yml @@ -0,0 +1,19 @@ +name: "Translate" + +on: + push: + branches: + - "add_transifex_ci" + schedule: + - cron: "0 0 * * *" + +jobs: + refresh-translations: + permissions: + contents: "write" + pull-requests: "write" + name: "Push - Pull" + uses: "glpi-project/plugin-translation-workflows/.github/workflows/translation.yml@v1" + secrets: + tx_token: "${{ secrets.TRANSLATE_TOKEN }}" + based_branch: "main" diff --git a/.tx/config b/.tx/config index e3f51109..b0b5c50d 100644 --- a/.tx/config +++ b/.tx/config @@ -4,5 +4,4 @@ host = https://www.transifex.com [o:teclib:p:glpi-project-plugin-escalade:r:escalade-pot] file_filter = locales/.po source_file = locales/escalade.pot -source_lang = en -type = PO +source_lang = en_GB