mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
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>
30 lines
798 B
YAML
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
|