diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-03 07:36:36 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-03 07:36:36 +0300 |
commit | 6d5364cfb0e39f49afac9b465f37bd19185c3755 (patch) | |
tree | 1bdb7ff4e44307f561efcda47eef7f0f775258fe /lib/gitlab/i18n.rb | |
parent | bbfbcebdf69261bac6aa142f430719955e8e86b9 (diff) |
First round of updates from the code review.
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r-- | lib/gitlab/i18n.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/gitlab/i18n.rb b/lib/gitlab/i18n.rb index 64a86b55c7f..a7addee0dcd 100644 --- a/lib/gitlab/i18n.rb +++ b/lib/gitlab/i18n.rb @@ -1,9 +1,15 @@ module Gitlab module I18n + extend self + AVAILABLE_LANGUAGES = { - 'en' => N_('English'), - 'es' => N_('Spanish'), - 'de' => N_('Deutsch') + en: 'English', + es: 'EspaƱol', + de: 'Deutsch' }.freeze + + def available_locales + AVAILABLE_LANGUAGES.keys + end end end |