Skip to content

Commit

Permalink
Merge branch 'laravel-v9.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Oct 6, 2023
2 parents 7abc580 + abb0038 commit 5326ed2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Providers/Concerns/HasTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ protected function publishTranslations(?string $path = null): void
*/
protected function loadTranslations(): void
{
$path = $this->getTranslationsPath();
$packagePath = $this->getTranslationsPath();
$vendorPath = $this->getTranslationsDestinationPath();

$this->loadTranslationsFrom($path, $this->getPackageName());
$this->loadJsonTranslationsFrom($path);
$this->loadTranslationsFrom($packagePath, $this->getPackageName());
$this->loadJsonTranslationsFrom(file_exists($vendorPath) ? $vendorPath : $packagePath);
}
}

0 comments on commit 5326ed2

Please sign in to comment.