Skip to content

Commit

Permalink
Merge pull request #9 from optimistdigital/revert-7-6-issue-loading-l…
Browse files Browse the repository at this point in the history
…aravel-translations

Revert "fix loading laravel translations"
  • Loading branch information
Tarpsvo authored Jun 18, 2021
2 parents f8dad85 + e9ed55c commit bca3c2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LoadsNovaTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ private function translations($pckgTransDir, $pckgName, $publish)
$locale = app()->getLocale();
$fallbackLocale = config('app.fallback_locale');

// Load Laravel translations
$this->loadLaravelTranslations($pckgTransDir, $pckgName);

// Attempt to load Nova translations
if ($this->loadNovaTranslations($locale, 'project', $pckgTransDir, $pckgName)) return;
if ($this->loadNovaTranslations($locale, 'local', $pckgTransDir, $pckgName)) return;
if ($this->loadNovaTranslations($fallbackLocale, 'project', $pckgTransDir, $pckgName)) return;
if ($this->loadNovaTranslations($fallbackLocale, 'local', $pckgTransDir, $pckgName)) return;
$this->loadNovaTranslations('en', 'local', $pckgTransDir, $pckgName);

// Load Laravel translations
$this->loadLaravelTranslations($pckgTransDir, $pckgName);
});
}

Expand Down

0 comments on commit bca3c2a

Please sign in to comment.