Best laravel framework open-source packages.

Laravel9 pt br language files

Laravel 9 pt_BR Language Files
Updated 1 year ago

Laravel 9 pt_BR Language Files

Este repositório contém os arquivos de mensagens no idioma Português Brasileiro (pt_BR) para o Laravel 9, incluindo Laravel Jetstream com Livewire

Instruções para instalação:

  1. Clone o repositório para sua máquina
git clone https://github.com/cpereiraweb/laravel9-pt-br-language-files.git
  1. Copie o arquivo pt_BR.json e a pasta pt_BR para a pasta lang do seu projeto Laravel 9.

  2. Edite o arquivo config/app.php para alterar o idioma (linhas 85 e 111):

...
    /*
    |--------------------------------------------------------------------------
    | Application Locale Configuration
    |--------------------------------------------------------------------------
    |
    | The application locale determines the default locale that will be used
    | by the translation service provider. You are free to set this value
    | to any of the locales which will be supported by the application.
    |
    */

    'locale' => 'pt_BR',
...
   /*
    |--------------------------------------------------------------------------
    | Faker Locale
    |--------------------------------------------------------------------------
    |
    | This locale will be used by the Faker PHP library when generating fake
    | data for your database seeds. For example, this will be used to get
    | localized telephone numbers, street address information and more.
    |
    */

    'faker_locale' => 'pt_BR',
...

E é isso!

Para mais detalhes sobre customizações de tradução no Laravel, veja a página da documentação aqui.

Happy coding!