chinleung/laravel-locales
Add multi-locale support to Laravel with simple config and helper functions. Define supported locales via app.locales or a published config, and use locale() to get/set the current locale and locales() to get/set supported locales.
Architecture fit: The package now demonstrates alignment with modern Laravel practices by explicitly supporting Laravel v13, confirming compatibility with the latest framework version. The modular design remains intact, leveraging Laravel’s config-driven translation systems, though the small community footprint (36 stars) still raises concerns about long-term maintainability and adherence to evolving Laravel conventions. The public repository (chinleung/laravel-locales) is now verifiable, reducing uncertainty around real-world usage.
Integration feasibility: Moderate-to-low risk for Laravel v13 projects. The explicit v13 support in v3.0.0 eliminates version ambiguity, but manual validation is still required for:
spatie/laravel-translatable).Technical risk: High (but mitigated for v13). While the repository is now public, the low engagement (36 stars, minimal commits) suggests:
Stack fit: Fully compatible with Laravel v13, including:
web, api groups).Migration path: Critical for existing projects:
app()->setLocale()) with package config (config/locales.php).Route::middleware('locale')).localized_url() helpers.Compatibility: Potential conflicts with:
mcamara/laravel-localization) if both manage routes/locales.$request->locale.composer require chinleung/laravel-locales:^3.0.php artisan vendor:publish --provider="Chinleung\Locales\LocalesServiceProvider".config/app.php to include middleware.Maintenance: High internal burden due to:
Support: Extremely limited external resources. Critical issues require:
Scaling: Sufficient for small-to-medium projects but unscalable for large enterprises due to:
Failure modes:
hreflang tags).How can I help you explore Laravel packages today?