Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-03 07:36:36 +0300
committerRuben Davila <rdavila84@gmail.com>2017-05-03 07:36:36 +0300
commit6d5364cfb0e39f49afac9b465f37bd19185c3755 (patch)
tree1bdb7ff4e44307f561efcda47eef7f0f775258fe /lib/gitlab/i18n.rb
parentbbfbcebdf69261bac6aa142f430719955e8e86b9 (diff)
First round of updates from the code review.
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r--lib/gitlab/i18n.rb12
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