Skip to content

Commit a7f6753

Browse files
ci: add Crowdin sync for README navigation
Introduce an automated Crowdin synchronization flow for localized README navigation blocks. This adds a new GitHub Actions workflow (triggered on l10n README changes and manual runs) and a new script that maps locales to Crowdin languages, updates translations, and manages approvals for the README navigation string. It also refactors `validate-readme-navigation.mjs` to expose reusable helpers and a guarded `main()` entrypoint so the new sync script can reuse parsing and translation-generation logic.
1 parent 27f13c5 commit a7f6753

5 files changed

Lines changed: 647 additions & 33 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Sync README navigation to Crowdin
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- l10n_master
11+
paths:
12+
- 'locale/**/README.md'
13+
14+
concurrency:
15+
group: crowdin-readme-navigation-sync
16+
cancel-in-progress: false
17+
18+
jobs:
19+
sync:
20+
if: github.repository_owner == 'LizardByte'
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
28+
with:
29+
node-version: 'latest'
30+
31+
- name: Install dependencies
32+
run: npm ci --ignore-scripts
33+
34+
- name: Update and approve localized README navigation
35+
run: npm run sync:readme-navigation-crowdin
36+
env:
37+
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}

0 commit comments

Comments
 (0)