8000 [Feature] Update publishing language assets · dev-engvox/laravel-json-api@da6307f · GitHub
[go: up one dir, main page]

Skip to content

Commit da6307f

Browse files
committed
[Feature] Update publishing language assets
1 parent 9572563 commit da6307f

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function boot(Router $router)
8383
], 'json-api:migrations');
8484

8585
$this->publishes([
86-
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/jsonapi'),
86+
__DIR__ . '/../lang' => $this->app->langPath() . '/vendor/jsonapi',
8787
], 'json-api:translations');
8888

8989
$this->commands([
@@ -133,7 +133,7 @@ protected function bootMiddleware(Router $router)
133133
*/
134134
protected function bootTranslations()
135135
{
136-
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'jsonapi');
136+
$this->loadTranslationsFrom(__DIR__ . '/../lang', 'jsonapi');
137137
}
138138

139139
/**

0 commit comments

Comments
 (0)
0