Skip to content

New translations: site.xml (Lao) #123133

New translations: site.xml (Lao)

New translations: site.xml (Lao) #123133

Workflow file for this run

name: Translations
on:
push:
paths:
- '.github/workflows/translations.yml'
- 'translation/**'
- 'bin/trans-lint'
- 'ui/.build/src/i18n.ts'
pull_request:
paths:
- '.github/workflows/translations.yml'
- 'translation/**'
- 'bin/trans-lint'
- 'ui/.build/src/i18n.ts'
jobs:
xmllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install xmllint
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
- name: Validate translation files
run: xmllint --noout --dtdvalid translation/resources.dtd translation/**/*.xml
trans-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Lint translation files
run: ./bin/trans-lint translation/dest/*/*.xml
i18n-key-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install
- run: pnpm i18n-file-gen
- run: ./ui/build --i18n
- name: i18n files up-to-date check
run: |
git status --porcelain
git diff
if [[ -n $(git status --porcelain) ]]; then
echo "i18n files are out of date. Please run `pnpm i18n-file-gen` and `./ui/build --i18n` and commit the changes.";
exit 1;
fi