Internationalization
Electrik ships JSON translations for:
| Locale | Notes |
|---|---|
en |
Default |
es |
Spanish |
fr |
French |
ar |
Arabic — dir="rtl" on layouts |
hi |
Hindi |
Resolution
- Authenticated user Profile locale (if set and allowed)
- Else
APP_LOCALE
Guests always use APP_LOCALE (no cookie locale picker). There is no team default locale.
Config
'locales' => ['en', 'es', 'fr', 'ar', 'hi'],
Middleware electrik.locale (SetLocale) is pushed onto the web group.
RTL
Arabic sets document dir="rtl". Prefer logical Tailwind classes (text-start, border-e, ps-*) in custom views so layouts stay mirrored.