Skip to content

Commit

Permalink
Display publishable languages labels using the currently set locale
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceverheije authored and ifox committed Jun 24, 2021
1 parent 3b386d7 commit e4dcfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/i18n_helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function getLanguageLabelFromLocaleCode($code, $native = false)
if ($native) {
return ucfirst(Locale::getDisplayLanguage($code, $code));
} else {
return ucfirst(Locale::getDisplayLanguage($code, 'en'));
return ucfirst(Locale::getDisplayLanguage($code, config('twill.locale', config('twill.fallback_locale', 'en'))));
}
}

Expand Down

0 comments on commit e4dcfe3

Please sign in to comment.