diff --git a/src/Providers/Concerns/HasTranslations.php b/src/Providers/Concerns/HasTranslations.php index 78f98d4..cb249f0 100644 --- a/src/Providers/Concerns/HasTranslations.php +++ b/src/Providers/Concerns/HasTranslations.php @@ -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); } }