Skip to content

fix(site): finish the docs UI labels and stamp intentional English - #66964

Merged
MrMushrooooom merged 2 commits into
devfrom
docs-ui-words
Nov 28, 2026
Merged

MrMushrooooom merged 2 commits into
devfrom
docs-ui-words

Conversation

@MrMushrooooom

Copy link
Copy Markdown
Contributor

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.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 adamdotdevin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Checked on bedb1c62cb:

  • bun src/i18n/check.ts reports 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 in services/site, and none is built from a template string. packages/data's nav.models comes from its own dictionary.
  • Sampled the German stamps (89 added): product, command, OS, package-manager and store names, plus Diff, Terminal, Client, Console, FAQ and the $1K–$10K ranges. All of those reasonably stay English.
  • The new i18n.test.ts case covers the dictionary-backed page copy not needing its own stamp, and CI is green.

@MrMushrooooom
MrMushrooooom merged commit 2204311 into dev Nov 28, 2026
11 checks passed
@MrMushrooooom
MrMushrooooom deleted the docs-ui-words branch November 28, 2026 10:32

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants