[GH-ISSUE #3334] Launcher: multi-language and localization support (i18n) #941

Closed
opened 2026-11-02 15:43:01 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @josegil1909 on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3334

Currently, all user interface text in the launcher (navigation tabs, server management, settings, mod browser, dialogs, and messages) is hardcoded in English string literals across the GPUI views. While the game client (horizon-client) supports languages through resource packs and prepared vanilla assets (issue #1672), the launcher itself cannot currently be translated into other languages like Spanish.

Proposal

Introduce an internationalization (i18n) architecture for the launcher:

  1. Translation catalogs:
    • Store language key-value mappings (e.g. en_us.json, es_es.json, etc.) with en_us always serving as the fallback for any unmapped keys.
  2. UI lookup helper:
    • Provide a translation lookup function (e.g. t!("launcher.play") or i18n::get("launcher.play")) usable in GPUI element trees.
  3. Locale detection & settings:
    • Detect the OS locale automatically on start (utilizing sys-locale, which is already in the dependency tree).
    • Add a language selection drop-down in Settings to let players manually switch their preferred launcher language.

Community impact

Allows players from non-English speaking communities (such as the large Spanish-speaking Minecraft user base) to install builds, manage servers, and navigate the launcher comfortably.

Originally created by @josegil1909 on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3334 Currently, all user interface text in the launcher (navigation tabs, server management, settings, mod browser, dialogs, and messages) is hardcoded in English string literals across the GPUI views. While the game client (`horizon-client`) supports languages through resource packs and prepared vanilla assets (issue #1672), the launcher itself cannot currently be translated into other languages like Spanish. ### Proposal Introduce an internationalization (i18n) architecture for the launcher: 1. **Translation catalogs**: - Store language key-value mappings (e.g. `en_us.json`, `es_es.json`, etc.) with `en_us` always serving as the fallback for any unmapped keys. 2. **UI lookup helper**: - Provide a translation lookup function (e.g. `t!("launcher.play")` or `i18n::get("launcher.play")`) usable in GPUI element trees. 3. **Locale detection & settings**: - Detect the OS locale automatically on start (utilizing `sys-locale`, which is already in the dependency tree). - Add a language selection drop-down in Settings to let players manually switch their preferred launcher language. ### Community impact Allows players from non-English speaking communities (such as the large Spanish-speaking Minecraft user base) to install builds, manage servers, and navigate the launcher comfortably.
Author
Owner

@josegil1909 commented on GitHub (Oct 28, 2026):

Opened draft PoC in #3339 demonstrating the proposed i18n architecture with English and Spanish catalogs and in-settings language switching.

<!-- gh-comment-id:6478537088 --> @josegil1909 commented on GitHub (Oct 28, 2026): Opened draft PoC in #3339 demonstrating the proposed i18n architecture with English and Spanish catalogs and in-settings language switching.
Author
Owner

@levzzz5154 commented on GitHub (Oct 29, 2026):

🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

This is implemented on main. launcher/src/i18n.rs keeps a translation table per language in launcher/lang/<code>.json, with English as the fallback. It follows the system locale through sys_locale unless the player picks a language in Settings (language_page.rs). It ships French, Russian, German, Spanish (#3339) and Ukrainian. Closing.

<!-- gh-comment-id:6504412080 --> @levzzz5154 commented on GitHub (Oct 29, 2026): 🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. This is implemented on main. `launcher/src/i18n.rs` keeps a translation table per language in `launcher/lang/<code>.json`, with English as the fallback. It follows the system locale through `sys_locale` unless the player picks a language in Settings (`language_page.rs`). It ships French, Russian, German, Spanish (#3339) and Ukrainian. Closing.
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#941
No description provided.