aristonis/laravel-language-switcher
Auto-detect and switch your Laravel app locale using browser headers, session, or custom detectors. Includes middleware for per-request locale setting, session persistence, optional user profile integration, and a Blade component plus controller route for manual language selection.
Adopt if:
/en/about, /fr/about) with minimal configuration.Look elsewhere if:
For Executives: "This package lets us launch multilingual features in weeks, not months, by automating language switching—reducing dev effort while improving global reach. For example, an e-commerce site could offer French/German locales without hiring additional localization engineers. The cost? Near-zero; the ROI? Faster time-to-market for international markets."
For Engineering: "Laravel Language Switcher is a battle-tested, MIT-licensed package that handles the heavy lifting of language persistence (sessions, cookies, or URLs) and route localization. It integrates cleanly with Laravel’s ecosystem (e.g., works with Laravel Breeze/Sanctum) and avoids vendor lock-in. Tradeoff: It’s not a full i18n library (e.g., no translation management UI), but it’s a perfect starting point for most use cases. Let’s prototype it for [X feature] and measure the dev time saved."
For Design/Product: "This tool lets us test regional content variations without engineering bottlenecks. For instance, we could A/B test Spanish vs. Portuguese landing pages for Latin American users—just by flipping a toggle in the package config."
How can I help you explore Laravel packages today?