Skip to content

Commit

Permalink
Merge pull request #1 from ardiakov/locale-fix
Browse files Browse the repository at this point in the history
Locale fix
  • Loading branch information
ardiakov authored Oct 21, 2019
2 parents 6ec3640 + db92647 commit 14cfbcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public static function getFallback($locale): ?string

array_pop($localeSubTags);

return locale_compose($localeSubTags);
$fallback = locale_compose($localeSubTags);

return false !== $fallback ? $fallback : null;
}

if (false !== $pos = strrpos($locale, '_')) {
Expand Down

0 comments on commit 14cfbcc

Please sign in to comment.