Skip to content

Add Japanese localization for the CLI, app UI, and docs #8554

Backlog

Description

@ozekimasaki

The workflow

I want to use bb in Japanese and to hand it to teammates who are more comfortable in Japanese than in English.

  1. Choose 日本語 in Settings → General → Interface language.
  2. Keep the same choice from the CLI with --lang ja or BB_LANG=ja, and from locale environment variables when no explicit value is set.
  3. 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.
  4. 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.locale preference (auto | en | ja, default auto) with a Settings → General dropdown.
  • Resolution order: explicit setting → BB_LANG → LC_ALL → LC_MESSAGES → LANG → English. The existing --lang CLI 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 usual LC_*/LANG variables select Japanese for CLI output.
  • Settings → General exposes a language dropdown (English / 日本語) backed by the existing UI preferences store, with auto available 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

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

  1. added
    ui
    cli
    on Dec 2, 2026
  2. bb-slop-cop commented on Dec 2, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions