Skip to content

Commit

Permalink
Fix lang path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Apr 8, 2022
1 parent a9a268d commit 4083daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LoadsNovaTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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";

Expand Down

0 comments on commit 4083daf

Please sign in to comment.