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
Laravel Pt Br Localization

Laravel Pt Br Localization Laravel Package

lucascudo/laravel-pt-br-localization

Brazilian Portuguese localization package for Laravel. It adds ready-to-use pt_BR translations for validation, authentication, passwords, pagination, and other framework messages, so your application can display natural Portuguese with minimal setup and no manual translation work.

View on GitHub
Deep Wiki
Context7

Tradução do Laravel para português brasileiro (pt-BR locale). Quero café: https://www.buymeacoffee.com/lucasrocha

Frequently asked questions about Laravel Pt Br Localization
How do I install lucascudo/laravel-pt-br-localization?
Install it with Composer by running composer require lucascudo/laravel-pt-br-localization. Laravel's package auto-discovery should register the service provider, so a manual provider entry is usually unnecessary. After installing, set your application locale to pt_BR and clear the config cache. Check the README for any publish step required by your Laravel version.
Does this package support Laravel 12?
Yes. Version 3.0.3 is a patch release whose stated change is Laravel 12 support, so teams standardizing on Laravel 12 can adopt it. Because this is compatibility maintenance rather than a feature release, validate it in staging before rolling to production. Also confirm that your PHP version and transitive dependencies satisfy Laravel 12 constraints.
How do I set Brazilian Portuguese as the default locale in Laravel?
Set 'locale' => 'pt_BR' in config/app.php and optionally keep a fallback locale such as English. The locale string must match the language directory name the package ships, so make sure the casing and separator line up. Run php artisan config:clear afterward so a cached configuration does not override your change.
Which Laravel messages does this package actually translate?
It provides Brazilian Portuguese strings for validation, authentication, passwords, pagination, and other framework-generated messages. That covers the common errors and UI text Laravel produces itself, so you do not need to translate them by hand. Text defined in your own application still needs its own translation files.
Do I need to run migrations or publish config after installing?
A localization package normally ships language files only, so database migrations are not expected. Some setups do require publishing the language files into your application's lang directory, so check the README for the exact artisan command. The v3.0.3 Laravel 12 compatibility release implies no queue, event, or schema changes.
What Laravel and PHP versions does version 3.0.3 require?
Version 3.0.3 targets Laravel 12, which requires PHP 8.2 or newer. Applications on older Laravel releases should stay on the previously compatible package version unless they upgrade the framework as well. Compare the package's composer.json constraints against your own lock file before upgrading.
Will upgrading this package break my Laravel 10 or 11 application?
If your application stays on Laravel 10 or 11, keep the package version that was compatible with that framework line instead of forcing v3.0.3. The patch is described as compatibility maintenance with no intended public API break, but that does not guarantee support for older Laravel releases. Update in a branch, let Composer resolve, and pin whatever version installs cleanly.
Can I customize or override the Portuguese translations?
Yes. Laravel merges your application's lang files with the package's translations, so you can override individual strings by placing your own pt_BR files in the lang directory. Overriding only the messages you want to change keeps the rest of the package's translations active. Re-check your overrides after upgrading the package, since translation keys can change between versions.
How can I test that the pt_BR translations are working?
Trigger a validation failure with the locale set to pt_BR and inspect the returned error message to confirm it is in Portuguese. Check both rendered web responses and JSON or API error payloads, since they draw on the same validation translations. Add an assertion to your test suite that a known rule returns the expected Portuguese string so regressions are caught automatically.
Is this package maintained, and is it safe for production?
It is a community package, so treat it as a small, low-risk dependency rather than something backed by a vendor SLA. The v3.0.3 Laravel 12 compatibility update is a positive maintenance signal, but confirm the issue tracker is responsive and that CI covers your Laravel version. Localization packages have a minimal runtime surface, so risk stays low when you pin versions and test upgrades in staging; for alternatives, check Packagist for other pt_BR language packs if you need broader coverage.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager