about summary refs log tree commit diff
path: root/app/helpers/settings_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/settings_helper.rb')
-rw-r--r--app/helpers/settings_helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
new file mode 100644
index 000000000..66ecc56c6
--- /dev/null
+++ b/app/helpers/settings_helper.rb
@@ -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