bezhansalleh/filament-language-switch
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/4.3.0...5.0.0
Filament v5 support. The rendering internals have been rewritten — the plugin now classifies render hooks into contexts (topbar, sidebar, user-menu, outside-panel) and picks the matching trigger design automatically. Trigger styling, item display, display mode, and outside-panel placement are now controlled through dedicated enums instead of loosely typed strings and booleans. Most v4 configurations work unchanged.
| v4 | v5 |
|---|---|
->flagsOnly() |
->itemStyle(ItemStyle::FlagOnly) |
Placement::TopLeft / TopRight |
Placement::TopStart / TopEnd |
Placement::BottomLeft / BottomRight |
Placement::BottomStart / BottomEnd |
| Setting | v4 | v5 | Restore v4 |
|---|---|---|---|
maxHeight |
'max-content' |
'18rem' |
->maxHeight('max-content') |
renderHook |
global-search.after always |
Context-aware | ->renderHook(PanelsRenderHook::GLOBAL_SEARCH_AFTER) |
outsidePanelsRenderHook |
body.start always |
Derived from placement + mode | ->outsidePanelsRenderHook(PanelsRenderHook::BODY_START) |
Everything else from v4 — visible(), locales(), flags(), labels(), renderHook(), outsidePanelPlacement(), excludes(), circular(), nativeLabel(), displayLocale(), userPreferredLocale() — keeps its v4 signature.
TriggerStyle enum via ->trigger(style:, icon:). Auto-adapts to the render context.ItemStyle enum (FlagWithLabel, FlagOnly, AvatarWithLabel, AvatarOnly, LabelOnly) via ->itemStyle().->displayMode(DisplayMode::Modal) with grid columns, slide-over, heading, icon, and width.PlacementMode (Static, Pinned, Relative) with auto-derived render hooks and user-menu auto-docking.->dropdownPlacement() to control dropdown direction.<x-language-switch::inline /> for embedding in custom views.->controlPanel() for live configuration in local dev.See the README for full usage and examples.
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/4.3.0...5.0.0-beta.1
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/4.2.0...4.3.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/4.1.0...4.2.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/4.0.0...4.1.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.1.1...4.0.0
**what's changed
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.1.1...4.0.0-beta2
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.1.0...3.1.1
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.0.6...3.1.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.0.5...3.0.6
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.0.4...3.0.5
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.0.3...3.0.4
LocaleChanged event by @michaelklopf in https://github.com/bezhanSalleh/filament-language-switch/pull/61Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/3.0.0...3.0.1
for more checkout @bezhanSalleh in https://github.com/bezhanSalleh/filament-language-switch/pull/57
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/2.0.1...3.0.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/2.0.0...2.0.1
What's new in 2.0.0?
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.8...2.0.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.7...1.0.8
Fixes support for Laravel 8 by replacing str() to Str::of() By @bezhanSalleh in https://github.com/bezhanSalleh/filament-language-switch/pull/25
Adds the ability to persist Locale after logout via cookies By @bezhanSalleh in https://github.com/bezhanSalleh/filament-language-switch/pull/25
Fixes middleware registeration priority By @bezhanSalleh in https://github.com/bezhanSalleh/filament-language-switch/pull/25
Bump aglipanci/laravel-pint-action from 1.0.0 to 2.2.0 by @dependabot in https://github.com/bezhanSalleh/filament-language-switch/pull/23
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.6...1.0.7
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.5...1.0.6
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.4...1.0.5
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.3...1.0.4
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.2...1.0.3
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/1.0.1...1.0.2
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/v1.0.0...1.0.1
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/v0.0.1...v1.0.0
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/compare/v0.0.0...v0.0.1
Full Changelog: https://github.com/bezhanSalleh/filament-language-switch/commits/v0.0.0
How can I help you explore Laravel packages today?