forked from ChelseaKR/habitable
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.06 KB
/
Copy pathi18n.yml
File metadata and controls
34 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SPDX-License-Identifier: AGPL-3.0-or-later
name: i18n
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: i18n-${{ github.ref }}
cancel-in-progress: true
jobs:
gates:
name: mechanical i18n gates — UTF-8 · BCP 47 · EN/ES parity (merge gate)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# These checkers are standard-library only and offline, so no dependency
# install or uv sync is needed — the runner's built-in python3 suffices.
# They mirror `make verify`'s `i18n` target byte-for-byte (no local/CI drift).
- name: G1 — UTF-8 encoding of all tracked text files
run: python3 scripts/check_i18n_utf8.py
- name: G3 — BCP 47 validity of every authored language tag
run: python3 scripts/check_bcp47.py
- name: G6 — EN/ES bundle key-parity
run: python3 scripts/check_i18n_parity.py