Skip to content

Commit

Permalink
Add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
wamesro authored May 3, 2023
1 parent a159a4b commit fa6c0d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PackageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ class PackageServiceProvider extends ServiceProvider
*/
public function boot()
{
Helpers::copyDir(__DIR__ . '/../resources/lang/', resource_path('lang'));
if ($this->app->runningInConsole()) {
Helpers::copyDir(__DIR__ . '/../resources/lang/', resource_path('lang'));

$this->loadJSONTranslationsFrom(resource_path('lang'));
$this->loadJSONTranslationsFrom(resource_path('lang'));
}
}

}

0 comments on commit fa6c0d3

Please sign in to comment.