This project demonstrates how to set up internationalization (i18n) in a React + TypeScript + Vite application.
It includes a minimal configuration with hot module replacement (HMR), ESLint rules, and a working translation setup with English (EN) and French (FR).
- ⚡️ Vite for fast development and HMR
- ⚛️ React + TypeScript boilerplate
- 🌍 i18n support with multiple locales (English & French)
- 🔄 Runtime language switching via a simple
<select>dropdown - ✅ ESLint setup for consistent code quality
npm install
# or
yarn installnpm run dev
# or
yarn devApp will be available at: http://localhost:5173
Translations
Translations live in src/locales/.
Add more languages (e.g., Spanish, German) • Persist selected language in localStorage • Use namespaces for modular translation files (e.g., auth, wallet, settings)