Display human names of locales in dropdown
This commit is contained in:
parent
c7a1b78536
commit
39533190c2
2 changed files with 14 additions and 1 deletions
13
app/helpers/settings_helper.rb
Normal file
13
app/helpers/settings_helper.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module SettingsHelper
|
||||
HUMAN_LOCALES = {
|
||||
en: 'English',
|
||||
de: 'Deutsch',
|
||||
es: 'Español',
|
||||
}.freeze
|
||||
|
||||
def human_locale(locale)
|
||||
HUMAN_LOCALES[locale]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue