Bug Description
When using a non-English locale, the impersonation banner shows raw translation keys instead of the translated text:
Current display:
filament-impersonate::banner.impersonating Nguyễn Khánh Thu filament-impersonate::banner.leave
Expected display:
Đang giả lập người dùng Nguyễn Khánh Thu Kết thúc giả lập
Steps to Reproduce
- Set application locale to non-English (e.g. Vietnamese 'vi')
- Implement impersonation feature
- Start impersonating a user
- Observe the banner text
Current Workaround Attempts
- Created translation files in various locations:
lang/vendor/filament-impersonate/vi/translations.php
lang/vendor/filament-impersonate/vi/banner.php
lang/vi/filament-impersonate.php
- None of above solutions worked, still showing raw translation keys
Suggested Solutions
- Add proper documentation for translation structure
- Provide publishable language files:
php artisan vendor:publish --tag=filament-impersonate-translations
- Include example translation files in the package
Environment
- Laravel version: 11.x
- Filament v3
- PHP version: 8.2
- Package version: latest
- Locale: vi
Screenshots attached:

Bug Description
When using a non-English locale, the impersonation banner shows raw translation keys instead of the translated text:
Current display:
filament-impersonate::banner.impersonating Nguyễn Khánh Thu filament-impersonate::banner.leaveExpected display:
Đang giả lập người dùng Nguyễn Khánh Thu Kết thúc giả lậpSteps to Reproduce
Current Workaround Attempts
lang/vendor/filament-impersonate/vi/translations.phplang/vendor/filament-impersonate/vi/banner.phplang/vi/filament-impersonate.phpSuggested Solutions
php artisan vendor:publish --tag=filament-impersonate-translationsEnvironment
Screenshots attached:
