feat: UI localization (i18n) with Simplified Chinese — reviving the approach from #1993

Open
#3,849 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

This is a scope question before it is a patch: read the closed PR #1993 and issue #3333 first, and wait for a maintainer to say whether localization is in scope before writing code. If it is, the surface is the ~229 hardcoded English strings across packages/review-editor and packages/ui, plus a new packages/ui/i18n provider and a uiLanguage entry registered through SettingDef/ConfigStore. Done means a language selector in Settings → General, navigator.language detection with English fallback, and no bundle-size or dependency regressions.

Written by the indexing model from the issue text.

Description

Summary

The Plannotator UI is English-only, which is a hard barrier for non-English-speaking users. Before proposing anything
new I searched existing work and found PR #1993 ("feat(ui): add lightweight zero-dependency i18n and Simplified
Chinese localization"). It appears to have implemented exactly this, but was closed without merge on 2026-10-28 with
no review comments or discussion.

The first question is therefore: was #1993 closed because the approach was wrong, because localization is planned
differently, or because localized UI is out of scope?

Why this matters

Plannotator sits directly in the review loop — plan approval, code review, annotation. Users click Approve / Reject /
Comment / Submit Feedback every session. Non-English speakers either misread the decision they are making or guess,
which is risky in a tool that gates plan execution.

There is also open issue #3333 (Simplified Chinese README), so community interest in zh-CN already exists at the
documentation level.

Suggested approach (only if localization is welcome)

Reuse the architecture from #1993 rather than designing from scratch:

  • Zero-dependency I18nProvider + useTranslation under packages/ui/i18n, with plain typed dictionaries — keeps
    the single-file HTML bundle small.
  • uiLanguage: 'auto' | 'en' | 'zh-CN' registered through the existing SettingDef / ConfigStore, inheriting the
    same port-independent cookie scoping and server sync as other preferences.
  • Auto-detect via navigator.language, fall back to English on missing keys.
  • Language selector in Settings → General.

This stays additive: English remains the source of truth, translations are pure data files, and adding a locale later
means adding one dictionary.

What I can contribute

If this direction is acceptable, I am willing to:

  • Rebase/revive the #1993 implementation against current main, or submit a fresh PR in the shape above.
  • Provide a reviewed zh-CN dictionary covering all UI strings (currently ~229 hardcoded English UI strings across
    packages/review-editor and packages/ui).

If localization is out of scope for the project, please say so and close this — I will not push a PR you do not want.

Notes

  • No runtime machine translation; dictionaries are static and reviewed.
  • No new runtime dependencies proposed.

Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
16h 1m
Merged PRs (30d)
756

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backnotprop/plannotator

All issues in backnotprop/plannotator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.