PHPackages                             chaim-chv/filament-browser-locale - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. chaim-chv/filament-browser-locale

ActiveLibrary[Localization &amp; i18n](/categories/localization)

chaim-chv/filament-browser-locale
=================================

Automatically set Filament locale from browser preferred language

v1.0.0(5mo ago)013MITPHPPHP ^8.2

Since Jan 11Pushed 5mo agoCompare

[ Source](https://github.com/chaim-chv/filament-browser-locale)[ Packagist](https://packagist.org/packages/chaim-chv/filament-browser-locale)[ RSS](/packages/chaim-chv-filament-browser-locale/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Filament Browser Locale
=======================

[](#filament-browser-locale)

Filament panel plugin that Automatically sets the Filament panel locale based on the browser's `Accept-Language` header ("preferred languages").

Features
--------

[](#features)

- Laravel 12 compatible
- Filament v3+ compatible
- Normalizes `en-US` → `en` (configurable)
- Configurable supported locales
- No global middleware required

Installation
------------

[](#installation)

```
composer require chaim-chv/filament-browser-locale
```

Usage
-----

[](#usage)

To use the plugin, simply add it to your Filament panel's plugins array.

```
BrowserLocalePlugin::make()
```

To specify supported locales, use the `supportedLocales` method:

```
BrowserLocalePlugin::make()
    ->supportedLocales(['en', 'he'])
```

To disable language code normalization (e.g., to keep `en-US` as `en-US` instead of normalizing to `en`):

```
BrowserLocalePlugin::make()
    ->supportedLocales(['en-US', 'en-GB', 'he'])
    ->normalize(false)
```

Full filament panel example:

```
use ChaimChv\FilamentBrowserLocale\BrowserLocalePlugin;

class ExamplePanel extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->id('example')
            ->path('/example')
            ->plugins([
                BrowserLocalePlugin::make()
                    ->supportedLocales(['en', 'he']),
            ]);
    }
}
```

You can also set the supported locales via global configuration (see below), in which case you can initialize the plugin without any options.

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=filament-browser-locale-config
```

Available options in `config/filament-browser-locale.php`:

- `supported_locales`: Array of supported locale codes (default: `[]`)
- `normalize`: Whether to normalize language codes like `en-US` to `en` (default: `true`)

[@chaim-chv](https://github.com/chaim-chv/) © 2026

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance70

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

173d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61952908?v=4)[chv](/maintainers/chaim-chv)[@chaim-chv](https://github.com/chaim-chv)

---

Top Contributors

[![chaim-chv](https://avatars.githubusercontent.com/u/61952908?v=4)](https://github.com/chaim-chv "chaim-chv (2 commits)")

---

Tags

filamentfilamentphp-pluginphppreferred-languages

### Embed Badge

![Health badge](/badges/chaim-chv-filament-browser-locale/health.svg)

```
[![Health](https://phpackages.com/badges/chaim-chv-filament-browser-locale/health.svg)](https://phpackages.com/packages/chaim-chv-filament-browser-locale)
```

###  Alternatives

[bezhansalleh/filament-language-switch

Zero config Language Switch(Changer/Localizer) plugin for filamentphp admin

3581.3M28](/packages/bezhansalleh-filament-language-switch)[illuminate/translation

The Illuminate Translation package.

6938.0M572](/packages/illuminate-translation)[althinect/filament-spatie-roles-permissions

3481.1M10](/packages/althinect-filament-spatie-roles-permissions)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
