You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
905 B

  1. name: Check i18n
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. env:
  8. RAILS_ENV: test
  9. jobs:
  10. check-i18n:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Install system dependencies
  15. run: |
  16. sudo apt-get update
  17. sudo apt-get install -y libicu-dev libidn11-dev libprotobuf-dev protobuf-compiler
  18. - name: Set up Ruby
  19. uses: ruby/setup-ruby@v1
  20. with:
  21. ruby-version: '2.7'
  22. bundler-cache: true
  23. - name: Check locale file normalization
  24. run: bundle exec i18n-tasks check-normalized
  25. - name: Check for unused strings
  26. run: bundle exec i18n-tasks unused -l en
  27. - name: Check for wrong string interpolations
  28. run: bundle exec i18n-tasks check-consistent-interpolations
  29. - name: Check that all required locale files exist
  30. run: bundle exec rake repo:check_locales_files