Skip to content

Commit

Permalink
Get fallback locale for config to support Laravel <7.12
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Jul 15, 2021
1 parent 6cefe38 commit 01f56f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/repository/src/RepositoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function getLocale($name)
$appLocale = App::getLocale();
if ($this->sourceIsRegistered($name, $appLocale)) return $appLocale;

$appFallbackLocale = App::getFallbackLocale();
$appFallbackLocale = config('app.fallback_locale');
if ($this->sourceIsRegistered($name, $appFallbackLocale)) return $appFallbackLocale;

return array_key_first($this->getSources($name));
Expand Down

0 comments on commit 01f56f3

Please sign in to comment.