stellaris-translate
Manage Stellaris localisation files with strict encoding discipline.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 65
- Forks
- 0
01 前言 Front Matter
- name
- stellaris-translate
- description
- Manage Stellaris localisation files with strict encoding discipline.
03 SKILL.md 正文
Objective
Manage localisation (.yml) files with strict encoding discipline. Missing localisation is a bug, and UTF-8 with BOM is mandatory. English is the source of truth; other languages fall back to English so raw keys (e.g. NS_event_title) never appear in the UI.
Rules
- Save localisation files as UTF-8-SIG (UTF-8 with BOM); without the BOM, Stellaris ignores the file or renders garbage. Remind the user: "Run
python scripts/build.pyto enforce BOM encoding." - Color codes use
§(Section Sign).§H(Orange),§Y(Yellow),§R(Red),§G(Green),§!(Reset). - Always use the version index
:0after the key. - Escape inner quotes as
\". - Keep one file per language code; never mix languages.
1. Harvest Keys
Scan src/ recursively for potential keys:
- Explicit:
title = "[NS]_key",desc = "[NS]_key",name = "[NS]_key",text = "[NS]_key". - Tagged: any line ending in
# TODO: LOC. - Modifiers: keys found in
common/modifiers(e.g.[NS]_mod_name).
Ignore keys starting with @ (scripted variables) or containing spaces (raw text).
2. English Source
Generate src/localisation/english/[namespace]_l_english.yml:
l_english:
# Header
[NS]_category_title:0 "Engineering"
# Entry (Indented 1 space)
[NS]_event_1_desc:0 "We have received a §Ystrange signal§! from [From.GetName]."
3. Other Languages
For the user's target languages (or all), copy the English text into the target language file wherever a translation is missing; a German player should see English text, not [NS]_event_desc.
| Language | Folder | Header key |
|---|---|---|
| English | english |
l_english: |
| Simp. Chinese | simp_chinese |
l_simp_chinese: |
| Braz. Portuguese | braz_por |
l_braz_por: |
| French | french |
l_french: |
| German | german |
l_german: |
| Polish | polish |
l_polish: |
| Russian | russian |
l_russian: |
| Spanish | spanish |
l_spanish: |
| Japanese | japanese |
l_japanese: |
| Korean | korean |
l_korean: |
Output
l_english:
# ==========================================
# MOD: [Mod Name]
# LANG: English
# ==========================================
# --- Events ---
[NS]_anomaly_success:0 "Anomaly Found"
[NS]_anomaly_success_desc:0 "Science Officer [Root.GetLeaderName] reports success."
# --- Modifiers ---
[NS]_mod_stability_add:0 "Bureaucratic Efficiency"
[NS]_mod_stability_add_desc:0 "Pop output increased by §G10%§!."
04 同仓库更多 Skills
workflow-runtime
Prove skill or workflow discovery, full-autonomy tool execution, and task-shaped materialization before assigning a CLI, extension, provider, or model to a workflow role.
workflow-reviewer
Review batched implementation output against the BOSS spec and evidence.
workflow-rescue
Resolve repeated workflow failures with a single decisive action.
workflow-orchestrator
Run risk-adaptive development, review, multi-agent, and release workflows with runtime preflight, bounded retries, liveness checks, isolated writers, and evidence-backed handoffs.
workflow-judger
Arbitrate repeated task failures and decide merge, rework, or escalation.
workflow-doctor
Validate active workflow state before any role acts on it.