0
0
Fork 0

Display human names of locales in dropdown

This commit is contained in:
Eugen Rochko 2016-11-19 00:19:57 +01:00
parent c7a1b78536
commit 39533190c2
2 changed files with 14 additions and 1 deletions

View 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