Repository navigation
Description
The workflow
I use bb every day in Russian, and so does my team. I want to switch the bb interface to Russian in Settings and have the core UI follow that setting, without a restart and without patching the bundle.
Concretely:
- Open Settings → General and pick
Русскийin a new Language selector (or runbb settings general language ru). - The Settings screens render in Russian, including correct plural forms.
- Anyone can add another language by adding a catalog file, and CI fails if a new user-visible string is not in the catalog or a catalog has an untranslated entry.
What happens today
bb has no language setting and no i18n layer. UI text is string literals in JSX (apps/app/src, packages/core-ui, shared-ui, thread-view). Rough count on main: about 190 files with visible text and about 900 literals in attributes, option objects and JSX text (the real total is likely 2–3k with toasts, errors and the command palette), plus about 40 toLocale*String / Intl.* call sites that would need to follow the selected locale. Theme overrides only cover styles, and replacing strings from a content script breaks with every release.
What you would expect
Related: #3721 proposes the plugin-facing localization mechanism (own runtime on Intl, no third-party dependency, system | en | zh-CN). This issue is complementary and I do not want to open a competing PR. It covers the core app and the translation workflow, and it is also a question about which core mechanism you prefer.
What I prototyped, so the question is concrete:
- Lingui v5 with macros (
msg,t, plural) and.pocatalogs,enas source locale andruas the first translation. Macros are applied by a second Babel pass before React Compiler; the catalog for the active locale is loaded lazily. - A
languagegeneral setting (en | ru, defaulten) ingeneralSettings(domain schema, server handler, CLI via the existing settings command, docs). A new key needs no migration. - Settings → General translated: language selector, interface/threads/links/terminals sections, settings navigation, settings search index, command palette settings actions, CLI command/skills/voice sections, App links. The catalog has 172 entries and every
ruentry is translated, includingone/few/many/otherplurals. - A catalog gate wired into the app
lintscript: it runslingui extract, compares the sets of msgids before and after, and fails on emptyrutranslations (including plural forms).
Verification on the branch (@bb/app): typecheck, lint (0 errors), test (675 files) and build pass; I also ran the gate and the language tests myself, and ran the built app and confirmed Settings → General renders in Russian.
Prototype (not a PR): uzarsalan/bb@i18n-poc, head 6c7543c50f, 6 commits on top of 55135d1e50 (diff: main...uzarsalan:bb:i18n-poc).
Questions for maintainers:
- Should the core UI use Lingui, or the mechanism from Add an extensible localization mechanism for the app and plugins #3721? I can port the Russian catalog and the gate to either.
- Is a
languagekey ingeneralSettingsthe right place for the preference? - If this direction is wanted, I would send small PRs by area (settings first, then navigation, composer, threads, dialogs) after sign-off, as
CONTRIBUTING.mdasks.
Context and alternatives
- Known gaps in the prototype: only Settings → General is extracted.
Search,Pluginsand plugin names in the settings sidebar,AutomationsandSkillsroute titles, Keyboard command names, and all other settings sections are still English. Some helpers outside React hooks use the globalt, which may not re-render on a language change; I have not verified that. - Not covered: plugin-contributed strings (needs an SDK contract, see Add an extensible localization mechanism for the app and plugins #3721), agent output, prompts, terminal output and logs.
- Alternative considered: a content-script plugin that rewrites DOM text from a dictionary. It works as a stopgap but breaks whenever a string changes and cannot translate plurals or host-rendered metadata.
- Number of people affected: my team of Russian speakers at least; the thread on Add an extensible localization mechanism for the app and plugins #3721 shows more.
- I searched open and closed issues for
i18n,localization,translation,languageandrussian; Add an extensible localization mechanism for the app and plugins #3721 is the only related one and is linked above.
Checks
- I searched open and closed issues for the same request.
- The body ends with
> AGENT GENERATED.
AGENT GENERATED
Activity
uzarsalan commentedon Nov 8, 2026
Moved to #3721: the prototype and the questions for maintainers are in #3721 (comment) so the discussion stays in one place.
bb-slop-cop commentedon Nov 8, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied missing classifications: Type: Feature · Priority: Medium · Effort: High · Labels:
ui.This adds core localization and a language preference rather than correcting existing behavior. It meaningfully improves accessibility for non-English speakers, but requires architecture decisions and cross-cutting translation infrastructure. No existing classifications were present; the issue remains closed.
No bug report or fix PR: this is a feature request requiring product and architecture decisions.