- Add i18n core module with locale management and translation helpers - Add English (en.json) and Chinese (zh.json) translation files - Add language-switcher component for the top bar - Update navigation.ts to use localized strings - Update app-render.ts to include language switcher and i18n - Update app.ts to subscribe to locale changes for reactivity Features: - Auto-detect browser language preference - Persist language choice in localStorage - Support for nested translation keys (e.g., nav.tabs.chat) - Fallback to English for missing translations Translations include: - Navigation menu items and descriptions - Status indicators (connected, offline, etc.) - Action buttons (save, cancel, apply, etc.) - Configuration categories - Common UI elements |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||