Skip to content

Commit

Permalink
fix lang dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagof committed Aug 22, 2023
1 parent 3b56dac commit 0be033b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
57 changes: 31 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
{
"name": "square-bit/laravel-pt-localization",
"description": "Portuguese Localization package for Laravel",
"license": "MIT",
"authors": [
{
"name": "Squarebit",
"email": "[email protected]",
"homepage": "https://square-bit.com/"
}
],
"homepage": "https://github.com/square-bit/laravel-pt-localization",
"keywords": ["laravel", "localization", "portuguese", "translations"],
"require": {
"laravel/framework": "^8.0|^9.0|^10.0"
},
"autoload": {
"psr-4": {
"Squarebit\\Laravelptlocalization\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Squarebit\\Laravelptlocalization\\LocalizationServiceProvider"
]
}
"name": "square-bit/laravel-pt-localization",
"description": "Portuguese Localization package for Laravel",
"license": "MIT",
"authors": [
{
"name": "Squarebit",
"email": "[email protected]",
"homepage": "https://square-bit.com/"
}
],
"homepage": "https://github.com/square-bit/laravel-pt-localization",
"keywords": [
"laravel",
"localization",
"portuguese",
"translations"
],
"require": {
"laravel/framework": "^10.0"
},
"autoload": {
"psr-4": {
"Squarebit\\Laravelptlocalization\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Squarebit\\Laravelptlocalization\\LocalizationServiceProvider"
]
}
}
}
4 changes: 2 additions & 2 deletions src/LocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class LocalizationServiceProvider extends ServiceProvider
public function boot(): void
{
$this->publishes([
__DIR__.'/../resources/lang/pt.json' => resource_path('lang/pt.json'),
__DIR__.'/../resources/lang/pt' => resource_path('lang/pt'),
__DIR__.'/../resources/lang/pt.json' => base_path('lang/pt.json'),
__DIR__.'/../resources/lang/pt' => base_path('lang/pt'),
], 'laravel-pt-localization');
}
}

0 comments on commit 0be033b

Please sign in to comment.