Files
romm/.github/workflows/i18n.yml
Georges-Antoine Assi 4a246a9c22 ci: set up Python through uv everywhere
i18n.yml was the only workflow reaching for actions/setup-python; the
other five use uv. Both locale checks are stdlib-only, so run them with
`uv run --no-project` rather than resolving the backend project.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-05 21:54:39 -04:00

30 lines
798 B
YAML

name: I18N Localization Check
on:
pull_request:
paths:
- "frontend/src/locales/**/*.json"
permissions: read-all
jobs:
check-translations:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- 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