Skip to content

Commit

Permalink
Revert "Normalizes localization name to lowercase"
Browse files Browse the repository at this point in the history
This reverts commit 7a5383d.
  • Loading branch information
Teixeira Rocha, Lucas committed Feb 26, 2024
1 parent 7a5383d commit a7a9d5b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: laravel-pt-br-localization
name: laravel-pt-BR-localization

on: [push]

Expand All @@ -15,14 +15,14 @@ jobs:
run: php artisan lang:publish
working-directory: ./blog

- name: Installs laravel-pt-br-localization
- name: Installs laravel-pt-BR-localization
run: composer require lucascudo/laravel-pt-br-localization --dev
working-directory: ./blog

- name: Clean vendor directory
run: rm -rf blog/vendor/lucascudo/laravel-pt-br-localization/*

- name: Override laravel-pt-br-localization content at vendor directory
- name: Override laravel-pt-BR-localization content at vendor directory
run: cp -rf composer.json src blog/vendor/lucascudo/laravel-pt-br-localization/

- name: Publish translations
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Módulo de linguagem pt-br (português brasileiro) para Laravel
# Módulo de linguagem pt-BR (português brasileiro) para Laravel

![example workflow](https://github.com/lucascudo/laravel-pt-br-localization/actions/workflows/master.yml/badge.svg) [![Total Downloads](https://poser.pugx.org/lucascudo/laravel-pt-br-localization/downloads)](https://packagist.org/packages/lucascudo/laravel-pt-br-localization) [![Latest Stable Version](https://poser.pugx.org/lucascudo/laravel-pt-br-localization/v/stable)](https://packagist.org/packages/lucascudo/laravel-pt-br-localization) [![License](https://poser.pugx.org/lucascudo/laravel-pt-br-localization/license)](https://packagist.org/packages/lucascudo/laravel-pt-br-localization)

Expand All @@ -22,11 +22,11 @@ composer require lucascudo/laravel-pt-br-localization --dev
php artisan vendor:publish --tag=laravel-pt-br-localization
```

4. Configure o Framework para utilizar 'pt-br' como linguagem padrão
4. Configure o Framework para utilizar 'pt-BR' como linguagem padrão

```
// Altere Linha 85 do arquivo config/app.php para:
'locale' => 'pt-br'
'locale' => 'pt-BR'
## Versões do Laravel suportadas
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lucascudo/laravel-pt-br-localization",
"description": "Arquivos de linguagem em Português do Brasil (pt-br) para Laravel",
"description": "Arquivos de linguagem em Português do Brasil (pt-BR) para Laravel",
"license": "GPL-3.0-or-later",
"homepage": "https://github.com/lucascudo/laravel-pt-BR-localization",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions src/LaravelPtBRLocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class LaravelPtBRLocalizationServiceProvider extends ServiceProvider
public function register()
{
$this->publishes([
__DIR__ . '/pt-br.json' => $this->app->langPath() . '/pt-br.json',
__DIR__ . '/pt-br' => $this->app->langPath() . '/pt-br'
__DIR__ . '/pt-BR.json' => $this->app->langPath() . '/pt-BR.json',
__DIR__ . '/pt-BR' => $this->app->langPath() . '/pt-BR'
], 'laravel-pt-br-localization');
}
}

0 comments on commit a7a9d5b

Please sign in to comment.