This GitHub action can be used to check if all translations are contained within the given translation files.
This works by scanning through all the blade files under the resources/
folder and comparing all found translation strings to the existing json files.
To add this action into your GitHub workflow:
- name: Check translations
uses: rapidez/[email protected]
It's also useful to install your dependencies beforehand, in case you need the translations from those to work:
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
name: Check translations
on:
push:
branches:
- master
- '*.x'
pull_request:
jobs:
translations:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Check translations
uses: rapidez/[email protected]