Skip to content

Commit

Permalink
[2.x] small code style fix in getLanguageLabelFromLocaleCode function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ser1ous authored and haringsrob committed Apr 19, 2022
1 parent 8041c1a commit ae6ed54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/i18n_helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function getLanguageLabelFromLocaleCode($code, $native = false)
if (class_exists(Locale::class)) {
if ($native) {
return Locale::getDisplayName($code, $code);
} else {
return Locale::getDisplayName($code, config('twill.locale', config('twill.fallback_locale', 'en')));
}

return Locale::getDisplayName($code, config('twill.locale', config('twill.fallback_locale', 'en')));
}

$codeToLanguageMappings = getCodeToLanguageMappings();
Expand Down

0 comments on commit ae6ed54

Please sign in to comment.