Repository navigation
fix(site): finish the docs UI labels and stamp intentional English - #66964
Conversation
There was a problem hiding this comment.
The change looks sound. On the base, bun src/i18n/check.ts listed English entries nobody had reviewed (108 for ja, 117 for ar, 131 for de). With this PR, all 17 locales report 0 errors, 0 untranslated, 0 changed in English and 0 unused. None of the eight removed dictionary keys is referenced anywhere; the current nav labels come from site.nav.* and docs.nav.*. In services/site, bun test passes (285 tests) and tsc --noEmit is clean. I didn't build the site or look at the rendered pages.
Public API is unchanged. This only touches site translations, stamps and the internal check.ts script; the new --keep-english flag is internal tooling.
No blocking concerns.
adamdotdevin
left a comment
There was a problem hiding this comment.
Looks good. Checked on bedb1c62cb:
bun src/i18n/check.tsreports 0 errors, 0 untranslated, 0 changed and 0 unused in all 17 locales.- None of the 8 dropped keys (
notFound.home,temp.zen,go.faq.a5.model,workspace.nav.zen,nav.models,nav.teams,nav.subscription,nav.console) is read anywhere inservices/site, and none is built from a template string.packages/data'snav.modelscomes from its own dictionary. - Sampled the German stamps (89 added): product, command, OS, package-manager and store names, plus
Diff,Terminal,Client,Console,FAQand the$1K–$10Kranges. All of those reasonably stay English. - The new
i18n.test.tscase covers the dictionary-backed page copy not needing its own stamp, and CI is green.
There was a problem hiding this comment.
My earlier review had no open points. The new commit puts the docs.code.diff label back to "Diff" in 13 locales and sets the Danish docs.nav.client to "Client", to match the docs terminology. After it, bun src/i18n/check.ts still reports 0 errors, 0 untranslated, 0 changed in English and 0 unused for all 17 locales, and test/i18n.test.ts passes.
Public API is unchanged.
No new concerns.
Fix: localize docs code labels and remaining site copy while preserving the Console product name.
Stamp reviewed unchanged strings, count dictionary-backed copy once, and remove eight unused keys.
Verified all 17 locale checks, site typecheck, 285 tests, production build, and Japanese and Arabic docs.