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

Abierto
#3,849 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
8.7k
Forks
649
Merge medio
16 h 1 min
PR fusionados (30 d)
756

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de backnotprop/plannotator

Todos los issues de backnotprop/plannotator

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.