# Multi-Language Implementation ## Overview Implemented a simple, lightweight multi-language system for the member dashboard with Indonesian (default) and English support. ## Features - ✅ **Default Language**: Indonesian (ID) - ✅ **Optional Language**: English (EN) - ✅ **Persistent**: Language preference saved in localStorage - ✅ **Easy Toggle**: Language switcher in sidebar footer - ✅ **Type-Safe**: Full TypeScript support with autocomplete ## Structure ### Translation Files - `/apps/web/src/locales/id.ts` - Indonesian translations - `/apps/web/src/locales/en.ts` - English translations ### Context & Hook - `/apps/web/src/contexts/LanguageContext.tsx` - Language context provider - Hook: `useLanguage()` - Access translations and language state ### Components - `/apps/web/src/components/LanguageToggle.tsx` - Language switcher button ## Usage ### In Components ```typescript import { useLanguage } from '@/contexts/LanguageContext' function MyComponent() { const { t, language, setLanguage } = useLanguage() return (
{t.overview.totalBalance}