fix: update send to work with unified #38
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: Check Translations | |
| on: | |
| pull_request: | |
| paths: | |
| - "src/**/*.ts" | |
| - "src/**/*.tsx" | |
| - "src/locales/**/*.po" | |
| jobs: | |
| check: | |
| name: Validate translation catalogs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.15.0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: Extract translations | |
| run: pnpm i18n:extract | |
| - name: Check for uncommitted changes | |
| run: | | |
| if ! git diff --quiet -- src/locales/; then | |
| echo "::error::Translation catalogs are out of date." | |
| echo "" | |
| echo "Run 'pnpm i18n:extract' locally and commit the changes." | |
| echo "" | |
| echo "Changed files:" | |
| git diff --name-only -- src/locales/ | |
| echo "" | |
| echo "Diff:" | |
| git diff -- src/locales/ | |
| exit 1 | |
| fi | |
| echo "Translation catalogs are up to date." |