From 6c0d37f53ab74393c828e727bd9539ad43615f91 Mon Sep 17 00:00:00 2001 From: Robin Steiner Date: Thu, 8 Aug 2024 13:57:38 +0200 Subject: [PATCH] Return languages capitalized for language dropdown --- app/helpers/auth_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb index b4194fe2e..4de63080c 100644 --- a/app/helpers/auth_helper.rb +++ b/app/helpers/auth_helper.rb @@ -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