Skip to content

Commit

Permalink
Check for missing JSON translations (mastodon#24338)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Apr 5, 2023
1 parent ffd5b2e commit c76d19e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/check-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c76d19e

Please sign in to comment.