Internationalization (i18n)¶
Queopius Sentinel dashboard supports language switching through the host app locale flow.
Current locale set:
- ES
- EN
- FR
- PT-BR (
ptlocale key)
How it works¶
- Locale switch endpoint:
/locale/{locale} - Session stores selected locale
- Sentinel UI reads translated labels from app lang files (
lang/<locale>/sentinel.php)
Required app setup¶
- Include locales in
config/app.php:
'supported_locales' => ['es', 'en', 'fr', 'pt'],
- Ensure locale middleware runs on web requests.
Translation files¶
Add/edit dashboard labels in:
lang/en/sentinel.phplang/es/sentinel.phplang/fr/sentinel.phplang/pt/sentinel.php
Add a new locale¶
- Add locale code to
supported_locales. - Create
lang/<new-locale>/sentinel.php. - Add language option label in Sentinel dashboard locale selector if needed.
- Clear cache:
php artisan optimize:clear