chaim-chv/filament-browser-locale
A Filament plugin that detects each visitor's preferred browser language and applies it as the application locale automatically. Includes middleware, configurable locale mapping, and seamless integration with Filament panels for multilingual admin interfaces.
composer require chaim-chv/filament-browser-locale:^1.2, register the plugin/service provider, configure supported locales, and verify middleware ordering. However, v1.2.0 release notes do not document exact Filament panel registration, middleware priority, config keys, or fallback contract. Source/README review is required before committing.en-US when Symfony normalized to en_US under normalize(false). That means existing deployments may see different locale resolution after upgrade. Filament 5, Laravel 13, and Livewire 4 support should be treated as compatibility claims until the CI matrix is confirmed to test them, not just allow them in Composer constraints.app()->setLocale() globally per request, and at what middleware priority? Does it persist locale in session/cookie, or renegotiate every request? How does it interact with Filament user locale preferences? Does it parse Accept-Language q-values, wildcards, and fallbacks correctly? Is there a configurable allowlist of supported locales? Does it run on Livewire subsequent requests or only initial page loads? What is the license and support/versioning policy? Are Laravel 13 and Livewire 4 actually tested, or only permitted by Composer?composer require chaim-chv/filament-browser-locale:^1.2; register per package docs; configure supported locales and normalization behavior; verify middleware runs before Filament panel middleware. If upgrading from an earlier release, explicitly audit regional locale behavior because the en-US / en_US fix changes matching outcomes. Stage first and consider a feature flag.en-US, pt-BR, zh-Hant-TW, and q-value headers like fr;q=0.8,en;q=0.9. 6) Validate against existing user-locale behavior. 7) Roll out to production panels and pin ^1.2.Accept-Language parsing, Symfony locale normalization, Filament boot order, and Livewire request lifecycle. Allocate a short spike and a locale test matrix before production.How can I help you explore Laravel packages today?