Skip to content

feat: add i18n language switching support (English/Chinese) - #509

Open
liuyangzter wants to merge 1 commit into
andrewyng:mainfrom
liuyangzter:master
Open

feat: add i18n language switching support (English/Chinese)#509
liuyangzter wants to merge 1 commit into
andrewyng:mainfrom
liuyangzter:master

Conversation

@liuyangzter

Copy link
Copy Markdown

Adds language switching support so users can switch between English and Simplified Chinese in the UI.

Changes:

  • New i18n infrastructure: I18nProvider context, useI18n hook, t() translation function
  • New locales.ts with type-safe translation dictionary (en + zh-CN, 80+ keys)
  • LanguageCard in Settings > General for switching language
  • Translated core UI: boot screen, sidebar, composer, hero greetings, settings, notices, toasts
  • Language preference persisted in localStorage, applies immediately
  • TypeScript type-checked, Vite build passes

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant