Split the monolithic i18n.ts (~1700 lines) into separate modules: - types.ts: type definitions - languages.ts: language options and helpers - translate.ts: locale get/set and translation logic - locales/: one file per locale - index.ts: re-exports for backward-compatible imports Update LanguageSelector to use option.label directly and remove unused getLanguageOptionLabel import and id attribute. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| hooks | ||
| lib | ||
| pages | ||
| types | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||
| vite-env.d.ts | ||