diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-04-05 10:33:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 16:33:55 +0200 |
commit | c76d19e00b683c91a06d6ba15d82a924601c7648 (patch) | |
tree | 078dfbe28cb50208581b19b7cc823c95198f1cdd | |
parent | ffd5b2eea4503c2ee389c7aa5dff9c51dbf9f846 (diff) |
Check for missing JSON translations (#24338)
-rw-r--r-- | .github/workflows/check-i18n.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/check-i18n.yml b/.github/workflows/check-i18n.yml index aa8f1f584..df0d75c9f 100644 --- a/.github/workflows/check-i18n.yml +++ b/.github/workflows/check-i18n.yml @@ -30,13 +30,28 @@ jobs: ruby-version: .ruby-version bundler-cache: true + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + cache: yarn + node-version-file: '.nvmrc' + + - name: Install all yarn packages + run: yarn --frozen-lockfile + + - name: Check for missing strings in English JSON + run: | + yarn build:development + yarn manage:translations + git diff --exit-code + - name: Check locale file normalization run: bundle exec i18n-tasks check-normalized - name: Check for unused strings run: bundle exec i18n-tasks unused - - name: Check for missing strings in English + - name: Check for missing strings in English YML run: | bundle exec i18n-tasks add-missing -l en git diff --exit-code |