about summary refs log tree commit diff
path: root/.github/workflows/check-i18n.yml
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-18 06:46:44 -0500
committerGitHub <noreply@github.com>2023-02-18 12:46:44 +0100
commit7e215b3bda546d1a85fea0fec7fcb55f4c8f6e3e (patch)
tree951ba4854b9729075a69d4e7398286805934a999 /.github/workflows/check-i18n.yml
parentb4df632ca187ff9fe136e47134b36a16f724b0df (diff)
Check for missing i18n strings in CI (#23368)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to '.github/workflows/check-i18n.yml')
-rw-r--r--.github/workflows/check-i18n.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/check-i18n.yml b/.github/workflows/check-i18n.yml
index aa2ec0394..aa8f1f584 100644
--- a/.github/workflows/check-i18n.yml
+++ b/.github/workflows/check-i18n.yml
@@ -18,20 +18,31 @@ jobs:
 
     steps:
       - uses: actions/checkout@v3
+
       - name: Install system dependencies
         run: |
           sudo apt-get update
           sudo apt-get install -y libicu-dev libidn11-dev
+
       - name: Set up Ruby
         uses: ruby/setup-ruby@v1
         with:
           ruby-version: .ruby-version
           bundler-cache: true
+
       - 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
+        run: |
+          bundle exec i18n-tasks add-missing -l en
+          git diff --exit-code
+
       - name: Check for wrong string interpolations
         run: bundle exec i18n-tasks check-consistent-interpolations
+
       - name: Check that all required locale files exist
         run: bundle exec rake repo:check_locales_files