mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 19:56:53 +00:00
A pull request against main extracts the core and docs domains, fans out over the languages LibreTranslate supports, and opens one translation PR per language against the branch that introduced the strings. Only the entries a catalog leaves empty or fuzzy reach the translator. The job matrix and the translator read the same list through translatable(), so a code cannot enter the matrix and then be refused by the run it starts. The pipeline stays off until CI_ENABLE_AUTO_TRANSLATIONS is set, and pull requests from a fork are skipped because the app token cannot push to their head branch. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
9 lines
210 B
Bash
Executable File
9 lines
210 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd -- "${SCRIPT_DIR}/../../.." && pwd)"
|
|
|
|
cd "${REPO_ROOT}"
|
|
python3 -m cli.build.i18n extract
|