Files
llmgw/notes/c24-i18n.md
T
Ilker ManapandClaude Opus 5.5 11231d8c2b The portal in English and Turkish: a catalogue per language, a switcher at the foot of every page, landing.language, Turkish numbers and dates
Every template and handler message in internal/web goes through a JSON
catalogue under internal/web/locales/<code>/, with English as the fallback.
The language is the person's choice (a cookie set by /_lang/{code}), else
Accept-Language, else landing.language. Tests refuse a key some language
lacks, a translation with other arguments than English, and template text
left in English.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 00:12:53 +02:00

2.1 KiB

CHANGELOG

The portal in Turkish

  • The web portal speaks English and Turkish — the landing page, sign-up and sign-in, the account page and its editor setup, the claim page, chat, the about page, and every administrators' page (cluster, nodes, NVLink and fabrics, people, limits, usage, organizations, mirror, guardrails). Flash messages and form errors built by the server are translated too.
  • A switcher at the foot of every page (English · Türkçe) remembers the choice in a cookie; without one the browser's Accept-Language decides, and without that the new landing.language (en or tr, empty is English). An unknown code stops the server starting. <html lang> and Content-Language follow the page.
  • Figures and dates in the page's language: a Turkish page writes 1.234,5, 04.10.2026 and "3 saat önce"; chart tooltips name the day in Turkish. Form values, CSS and SVG coordinates are unchanged.
  • Ready for more languages: the catalogue is JSON under internal/web/locales/<code>/, and a language is a directory. Tests refuse a key a page uses that some language lacks, a translation with different arguments from English, and any template text left in English — so a new page cannot quietly ship English-only.
  • Messages that come from the control plane and other packages (node warnings, engine errors, store refusals) are still shown as written, in English; the API, CLI and console are English.

BACKLOG

24 (portal i18n): built — English/Turkish catalogue with fallback, per-language templates, cookie/Accept-Language/landing.language choice and a footer switcher, Turkish numbers and dates, every template and handler message translated, tests that no template text stays English; left — errors built with fmt.Errorf in other packages (store, catalog, mirror, adminapi) still English on Turkish pages, the embedded Latin font subsets lack ğ/ş/İ (latin-ext subsets needed), percent sign placement is mixed (%50 on limits, 93% on cluster pages), RFC3339 footer timestamps and plain-text http.Error bodies untranslated, a per-person language column (cookie only today).