Skip to content

Commit

Permalink
Return languages capitalized for language dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Aug 8, 2024
1 parent 8ac2e1e commit 6c0d37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/auth_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def devise?
def language_selector
languages = I18n.available_locales.map { |e| e.to_s }.map do |lang_code|
language = I18nData.languages(lang_code)[lang_code.upcase]
[language, url_for(locale: lang_code)]
[language.capitalize, url_for(locale: lang_code)]
end
options_for_select(languages, url_for(locale: I18n.locale))
end
Expand Down

0 comments on commit 6c0d37f

Please sign in to comment.