Description
Currently DD-OS UI text is a mix of Chinese and English hardcoded in components. We should extract all UI strings into a centralized i18n system so users can switch between languages.
Current Behavior
- Button labels, placeholder text, and section headers are hardcoded in Chinese
- No way for English-speaking users to use the interface
Expected Behavior
- A language toggle in Settings
- All UI text loaded from language files (e.g.,
locales/zh.json, locales/en.json)
Suggested Approach
- Create
src/locales/zh.json and src/locales/en.json
- Use
react-i18next or a simple context-based solution
- Replace hardcoded strings in components with translation keys
- Add language toggle to Settings panel
Tech Stack
- React 18, TypeScript, Zustand for state
Description
Currently DD-OS UI text is a mix of Chinese and English hardcoded in components. We should extract all UI strings into a centralized i18n system so users can switch between languages.
Current Behavior
Expected Behavior
locales/zh.json,locales/en.json)Suggested Approach
src/locales/zh.jsonandsrc/locales/en.jsonreact-i18nextor a simple context-based solutionTech Stack