Weave Code
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
Laravel Locales

Laravel Locales Laravel Package

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.

View on GitHub
Deep Wiki
Context7

chinleung/laravel-locales adds simple configuration and global helpers to make a Laravel app support multiple locales with minimal setup. Define your supported languages via app.locales or the published config, then use concise helpers to read or switch the current locale at runtime.

Ideal for apps that need a lightweight, consistent way to manage supported locales across environments while staying aligned with Laravel’s native localization APIs.

  • locale() helper to get/set the current application locale
  • locales() helper to get/set the list of supported locales
  • Supports config via app.locales with priority over package config
  • Optional config publishing via vendor:publish
  • Compatible version matrix for Laravel/PHP across major releases
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport