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-04-20 07:19:24 +0300
committerRuben Davila <rdavila84@gmail.com>2017-04-20 07:19:24 +0300
commit1de135bc0408a871e3bfa8b0ba5aa81a7936bd01 (patch)
tree433d3abbe19a48c5d67371ee8bc847fbcd3bf87e /lib/gitlab/i18n.rb
parent302e855f52b5d914e64bf6fbcc7e6544904c4e77 (diff)
Fix Rubocop complains plus some small refactor
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r--lib/gitlab/i18n.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/i18n.rb b/lib/gitlab/i18n.rb
index 85e527afd71..0459def6517 100644
--- a/lib/gitlab/i18n.rb
+++ b/lib/gitlab/i18n.rb
@@ -1,9 +1,9 @@
module Gitlab
module I18n
- AVAILABLE_LANGUAGES = [
- ['English', 'en'],
- ['Spanish', 'es'],
- ['Deutsch', 'de']
- ]
+ AVAILABLE_LANGUAGES = {
+ 'en' => 'English',
+ 'es' => 'Spanish',
+ 'de' => 'Deutsch'
+ }.freeze
end
end