Files
romm/.github/workflows/i18n.yml
Georges-Antoine Assi 4aff9675b0 Merge pull request #4660 from rommapp/claude/enable-semgrep-zizmor
chore(security): harden Actions and Renovate, credit Socket in the readme
2026-09-22 13:39:55 -04:00

33 lines
857 B
YAML

name: I18N Localization Check
on:
pull_request:
paths:
- "frontend/src/locales/**/*.json"
permissions:
contents: read
jobs:
check-translations:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
- name: Install python
run: uv python install
# Both checks are stdlib-only, so skip resolving the backend project.
- name: Run localization check
run: uv run --no-project python frontend/src/locales/check_i18n_locales.py
- name: Check locale files are sorted
run: uv run --no-project python frontend/src/locales/check_i18n_sorted.py