Skip to content

Design: internationalisation and locale #21

Done

Description

@1bye

This issue asks for a design, not an implementation.

Problem

Rake has no translation or locale layer. Apps can't switch language, format dates or numbers for the user's locale, or lay out right-to-left text. GPUI Kit's components already contain some locale handling. If Rake adds its own layer separately, text inside Kit components won't follow the app's language.

Questions to answer

  1. What does Kit do today for locale and translated strings, and can Rake use the same source of truth?
  2. Which message format to use: Fluent, ICU MessageFormat, or plain keys with arguments?
  3. How the current locale is detected on each platform and in the browser, and how a change reaches views. This could work like rake::theme::install.
  4. Whether view! should support translated strings without making ordinary text harder to write.
  5. Date, number and plural formatting, and how much it adds to Web build size.
  6. Right-to-left layout: what GPUI supports today and what's missing.
  7. How agents and the CLI see translated labels, given that inspection and CDP queries match on accessible names.

Done when

A design doc is merged that answers these questions, with a small prototype in one example and the follow-up implementation issues filed.

Depends on

Adopting GPUI Kit, so the design matches Kit's locale handling.

Activity

  1. added
    enhancement
    question
    on Nov 5, 2026
  2. self-assigned this
    on Nov 18, 2026
  3. 1bye commented on Nov 21, 2026

    @1bye
    OwnerAuthor

    Design merged in #96 (docs/future/internationalisation.md), including the review decisions. Follow-ups: #100 locale core, #101 Fluent and t!, #102 ICU formatting, #103 logical start/end classes, #104 inspection keys, #105 Kit adapter, #106 RTL. The prototype is next; this issue stays open until its done-when is met.

  4. 1bye commented on Nov 23, 2026

    @1bye
    OwnerAuthor

    Prototype merged in #107 (docs/future/internationalisation-prototype.md, examples/view with the i18n/i18n-icu features). Results: +189 KB gzip / +137 KB Brotli on Web, within the provisional budget. Production work continues in #100–#106.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementquestion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions