Repository navigation
Backlog
Description
The workflow
I want to use bb in Japanese and to hand it to teammates who are more comfortable in Japanese than in English.
- Choose
日本語in Settings → General → Interface language. - Keep the same choice from the CLI with
--lang jaorBB_LANG=ja, and from locale environment variables when no explicit value is set. - Have the app UI, CLI help and error messages, server messages, and the bundled guide follow that language, with Japanese font and line-height adjustments.
- Keep English as the default when nothing is configured.
A working implementation of this workflow is in PR #8552. It is currently closed while waiting for maintainer direction; I am filing this issue to describe the request separately and to link the change.
What happens today
bb is English-only. There is no language selector for the core UI, no Japanese catalog for CLI or server messages, and no Japanese guide pages. The app embeds English strings directly.
PR #8552 contains:
- A 592-entry Japanese CLI catalog and 391 Japanese server-message entries (messages, patterns, and core error strings).
- A 1,487-entry Japanese UI catalog for the app.
- Japanese translations for all 15 chapters of the bundled guide.
- A persisted
ui.localepreference (auto | en | ja, defaultauto) with a Settings → General dropdown. - Resolution order: explicit setting →
BB_LANG→LC_ALL→LC_MESSAGES→LANG→ English. The existing--langCLI flag and locale injection are preserved. - Japanese font-stack selection and looser line-height/tracking tied to
<html lang="ja">.
The PR was closed automatically by the contributor gate because it did not yet have an approved issue or contributor approval. No product decision has been made against the direction.
What you would expect
bb --lang ja,BB_LANG=ja, and the usualLC_*/LANGvariables select Japanese for CLI output.- Settings → General exposes a language dropdown (English / 日本語) backed by the existing UI preferences store, with
autoavailable for environment-driven behavior. - The app UI, server messages, and newly opened terminals use the explicit setting; no existing locale injection or CLI resolution is broken.
- Japanese uses a platform Japanese font stack and adjusted line height so text does not look cramped.
- English remains the default when no explicit or environment signal exists.
- The guide has Japanese chapters, and the catalogs can be extended to more languages later.
Context and alternatives
- Related: Add an extensible localization mechanism for the app and plugins #3721 asks for the plugin-facing localization mechanism. This request is the concrete Japanese translation and core runtime; it does not require a plugin SDK and can be adapted to whichever core mechanism maintainers prefer.
- Related: Localize the core UI: language setting and Russian translation (Lingui prototype) #7268 was a core UI localization prototype with a Russian catalog, moved into Add an extensible localization mechanism for the app and plugins #3721. This request has the same goal for Japanese but includes CLI, server messages, and the guide.
- Scope excludes plugin-provided English strings. Plugins can localize their own metadata and content separately once Add an extensible localization mechanism for the app and plugins #3721 or another contract is available; agent output, prompts, terminal output, and logs stay in the language the agent produces.
- The current implementation uses build-time UI catalogs, so changing the app language reloads the page. The server also injects the locale and
<html lang>, which have to be refreshed. - I searched open and closed issues for
Japanese,localization,i18n, andja; Add an extensible localization mechanism for the app and plugins #3721 and Localize the core UI: language setting and Russian translation (Lingui prototype) #7268 are the related results.
Checks
- I searched open and closed issues for the same request.
- If an agent wrote this, the body ends with
> AGENT GENERATED.
AGENT GENERATED
Activity
bb-slop-cop commentedon Dec 2, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied and verified: Type: Feature · Priority: Medium · Effort: High · Labels:
ui,cli.No reproduction report or PR: this adds Japanese language support across multiple surfaces rather than fixing a bug.