From dc220a19032bddea21a7bfcd4b662e66f8d0de27 Mon Sep 17 00:00:00 2001 From: Jeremy Chang <71667021+jermy-c@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:26:56 -0600 Subject: [PATCH 1/2] Extract Strings Github Action --- .github/workflows/extract-strings.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/extract-strings.yml diff --git a/.github/workflows/extract-strings.yml b/.github/workflows/extract-strings.yml new file mode 100644 index 000000000..a6819824c --- /dev/null +++ b/.github/workflows/extract-strings.yml @@ -0,0 +1,25 @@ +name: Extract Strings + +on: + workflow_dispatch # manually triggered + +jobs: + build: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + - name: Extract Strings + uses: actions/setup-node@v3 + with: + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node-version: 18.x +# cache: 'npm' + - run: cd app; yarn + - run: cd app; yarn l10n:extract + - name: Commit & Push Changes + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git commit -a -m "Extract Strings" + git push From 61a587680c8777797dbe18fb54d265704a124a86 Mon Sep 17 00:00:00 2001 From: Ben Bucksch <1907525+benbucksch@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:11:44 +0200 Subject: [PATCH 2/2] Wording changes --- .github/workflows/extract-strings.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/extract-strings.yml b/.github/workflows/extract-strings.yml index a6819824c..a083f345a 100644 --- a/.github/workflows/extract-strings.yml +++ b/.github/workflows/extract-strings.yml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Extract Strings + - name: Extract UI strings to be translated uses: actions/setup-node@v3 with: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ @@ -19,7 +19,7 @@ jobs: - run: cd app; yarn l10n:extract - name: Commit & Push Changes run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git commit -a -m "Extract Strings" + git config user.name "Bot" + git config user.email "translate@mustang.im" + git commit -a -m "Translation: Extract UI strings from code into the English master translation file" git push