Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Ez Language Switcher

Ez Language Switcher Laravel Package

smarter-solutions/ez-language-switcher

A lightweight Laravel package for adding an easy language switcher to your application, letting users change the active locale from a simple interface. Suitable for projects needing straightforward multilingual navigation; a small, low-adoption package best evaluated before production use.

View on GitHub
Deep Wiki
Context7

This is a simple language selector easy to implement in any eZ Publish project

Frequently asked questions about Ez Language Switcher
How do I install smarter-solutions/ez-language-switcher with Composer?
Run composer require smarter-solutions/ez-language-switcher and then check the repository for any service provider, config, or asset publishing steps. The package has low adoption and the provided README excerpt is empty, so do not assume Laravel auto-discovery or published configuration. Review composer.json and the source before wiring it into an application.
Is ez-language-switcher a Laravel package or an eZ Publish extension?
The package description says it is a simple language selector for eZ Publish projects, while the blurb positions it as a lightweight Laravel package. That mismatch matters because installation, routing, and templating differ significantly between eZ Publish and Laravel. Inspect the repository contents and composer.json before deciding whether it fits your stack.
Which Laravel versions are supported by ez-language-switcher?
The available context does not list Laravel version constraints, and the README excerpt is empty. Check the package composer.json for illuminate/support or framework requirements and verify compatibility with your Laravel version. Test in a disposable app before adding it to an existing project.
How do I change the active locale with this language switcher?
The package is described as providing a simple interface for changing the active locale, but the exact implementation is not documented in the provided context. Inspect its routes, controller, middleware, or session handling to see how the selected language is persisted. In Laravel, confirm whether it calls App::setLocale, stores a session key, or redirects back.
Do I need to configure supported languages for ez-language-switcher?
Most language switchers require you to define the locales you want to expose, either in a config file, a view, or application settings. This package does not have detailed public documentation in the context provided, so check for a config file or hard-coded language list. Align those locales with Laravel's resources/lang or lang directory.
Can I use ez-language-switcher in a production Laravel application?
It can be evaluated for production, but it is a small, low-adoption package with limited documentation, so treat it cautiously. Pin the Composer version, review the source, add feature tests for locale switching, and confirm maintenance activity. For critical multilingual flows, a more established localization package may be safer.
Does ez-language-switcher work with legacy eZ Publish projects?
The package description explicitly targets eZ Publish projects, so legacy compatibility is its apparent purpose. However, the blurb also frames it as a Laravel package, and no version or template details are provided. Confirm the eZ Publish version, extension structure, and template override requirements in the repository before use.
How should I test a language switcher in Laravel?
Write feature tests that request the switcher route, assert the redirect or response, and verify the application locale or session value afterward. Also test invalid or unsupported locale input to prevent open redirects or unexpected locale changes. Since this package has low adoption, add your own regression tests around its behavior.
What are alternatives to ez-language-switcher for Laravel localization?
Common alternatives include mcamara/laravel-localization for route-based locales and a custom Blade dropdown built on Laravel's native App::setLocale and session storage. Spatie and other translation packages help with translated content, but they are not direct switcher replacements. Compare maintenance, Laravel version support, and routing needs before choosing.
Is smarter-solutions/ez-language-switcher actively maintained?
The provided context does not include maintenance status, release history, or issue activity, and it notes low adoption. Check the GitHub repository for recent commits, open issues, tagged releases, and Packagist download counts. If you need long-term support, prefer a package with clear Laravel version compatibility and active maintenance.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log