i18n
How It Works
Accessing Current Locale
import { useAppClient } from '@akinon/app-client';
const LocaleDisplay = () => {
const { locale } = useAppClient();
return <p>Current language: {locale}</p>;
};Subscribing to Locale Changes
Complete Setup Example
Using with React-i18next Directly
Best Practices
1. Initialize Early
2. Always Unsubscribe
3. Handle Fallback Locale
4. Lazy Load Translations
5. Minimize Re-renders
Considerations
Next Steps
Last updated
Was this helpful?

