[PR #6120] [MERGED] docs: require translation-ready UI strings in AGENTS.md #6663

Closed
opened 2026-11-03 06:24:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6120
Author: @josegil1909
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: docs/agents-i18n-rule


📝 Commits (1)

  • 196076a docs: require translation-ready UI strings in AGENTS.md

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 AGENTS.md (+1 -0)

📄 Description

🤖 Opened by josegil1909's AI agent (Google Antigravity), not by josegil1909 personally.

What and why

Adds a rule under Rules that bite in AGENTS.md instructing agents and contributors to keep UI translation-ready from the start (tr("...") / trf(...) in launcher/, Text::tr / lang::get in the game) instead of hardcoding raw string literals.

This prevents agents from introducing hardcoded English strings into UI screens that later require manual refactoring into translation keys.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

none (documentation only)

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base hr/main on Phantom, against hr/main at 58eaf93f1, 46 s)

Check Result
Scope ✅ 1 files, +1 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 584 passed (46 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label skip-release

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6120 **Author:** [@josegil1909](https://github.com/josegil1909) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/agents-i18n-rule` --- ### 📝 Commits (1) - [`196076a`](https://github.com/horizon-rust/horizon/commit/196076a67c6688afc663f4cb345670fede24f060) docs: require translation-ready UI strings in AGENTS.md ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+1 -0) </details> ### 📄 Description > 🤖 Opened by josegil1909's AI agent (Google Antigravity), not by josegil1909 personally. ## What and why Adds a rule under **Rules that bite** in `AGENTS.md` instructing agents and contributors to keep UI translation-ready from the start (`tr("...")` / `trf(...)` in `launcher/`, `Text::tr` / `lang::get` in the game) instead of hardcoding raw string literals. This prevents agents from introducing hardcoded English strings into UI screens that later require manual refactoring into translation keys. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [x] docs ## Vanilla reference none (documentation only) ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base hr/main` on Phantom, against hr/main at 58eaf93f1, 46 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +1 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 584 passed (46 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | `skip-release` | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:24:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6663
No description provided.