feat(control-plane): add i18n framework#1729
Conversation
Add i18next/react-i18next setup, a locale provider, language selector, English and Simplified Chinese resource files, and initial localized coverage for the control plane shell, login, recall, reflect, and entities views.
- derive the initial locale from cookie and Accept-Language in the root layout - initialize a per-provider i18next instance from the server-provided locale - persist language changes in a cookie and localStorage - localize shell relative time and top-level bank actions
|
Update: pushed a follow-up hydration fix. The root layout now resolves the initial locale from the locale cookie or Accept-Language, passes it to html lang and I18nProvider, and the provider creates a per-instance i18next setup instead of doing a delayed client-side switch. Verified tsc --noEmit, targeted ESLint, next build, and browser reloads in zh-CN/en/zh-CN with 0 fresh hydration mismatch logs. |
|
Working on it |
|
I pushed a stacked PR against Scope covered there:
Validation note: |
|
Update: #1729 is now superseded by the official i18n PR #1775, which has been merged into I rebased/ported the Chinese locale follow-up onto the official That PR adds |
Summary
Notes
Closes #1660.
Verification
ext build in hindsight-control-plane