404labfr / 404labfr/laravel-impersonate

Error display text in other language not english.

Đang mở
#213 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
2.3k
Fork
235
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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
1. Set application locale to non-English (e.g. Vietnamese 'vi')
2. Implement impersonation feature
3. Start impersonating a user
4. 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
1. Add proper documentation for translation structure
2. Provide publishable language files:
```php artisan vendor:publish --tag=filament-impersonate-translations```
3. 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:
![image](https://github.com/user-attachments/assets/198edfd7-b192-4ca6-9f55-9e6fbd2a5737)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.