EventLog + translator #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: L10n Validate | |
| on: | |
| pull_request: | |
| paths: | |
| - 'resources/translations/**/*.xlf' | |
| jobs: | |
| validate-xliff: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: imap, zip | |
| tools: composer:v2 | |
| - name: Validate XLIFF XML | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y libxml2-utils | |
| find translations -name '*.xlf' -print0 | xargs -0 -n1 xmllint --noout | |
| - name: Symfony translation sanity (extract dry-run) | |
| run: | | |
| composer install --no-interaction --no-progress | |
| php bin/console translation:extract en --format=xlf --domain=messages --no-interaction |