From 4083dafd3e716d878a8c96443d105a7f300807a6 Mon Sep 17 00:00:00 2001 From: Tarvo Reinpalu Date: Fri, 8 Apr 2022 15:17:30 +0300 Subject: [PATCH] Fix lang path --- src/LoadsNovaTranslations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LoadsNovaTranslations.php b/src/LoadsNovaTranslations.php index 1edd1e5..20cb34b 100644 --- a/src/LoadsNovaTranslations.php +++ b/src/LoadsNovaTranslations.php @@ -33,7 +33,7 @@ protected function loadTranslations($packageTranslationsDir, $packageName, $publ private function translations($pckgTransDir, $pckgName, $publish) { if (app()->runningInConsole() && $publish) { - $this->publishes([$pckgTransDir => resource_path("lang/vendor/{$pckgName}")], 'translations'); + $this->publishes([$pckgTransDir => lang_path("vendor/{$pckgName}")], 'translations'); return; } @@ -101,7 +101,7 @@ private function getTranslationsFile($locale, $from, $packageTranslationsDir, $p $fileDir = $from === 'local' ? $packageTranslationsDir - : resource_path("lang/vendor/{$packageName}"); + : lang_path("vendor/{$packageName}"); $filePath = "$fileDir/{$locale}.json";