Skip to content

Commit 5326ed2

Browse files
Merge branch 'laravel-v9.x'
2 parents 7abc580 + abb0038 commit 5326ed2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Providers/Concerns/HasTranslations.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ protected function publishTranslations(?string $path = null): void
5757
*/
5858
protected function loadTranslations(): void
5959
{
60-
$path = $this->getTranslationsPath();
60+
$packagePath = $this->getTranslationsPath();
61+
$vendorPath = $this->getTranslationsDestinationPath();
6162

62-
$this->loadTranslationsFrom($path, $this->getPackageName());
63-
$this->loadJsonTranslationsFrom($path);
63+
$this->loadTranslationsFrom($packagePath, $this->getPackageName());
64+
$this->loadJsonTranslationsFrom(file_exists($vendorPath) ? $vendorPath : $packagePath);
6465
}
6566
}

0 commit comments

Comments
 (0)