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:
Diffstat (limited to 'lib/gitlab/i18n.rb')
-rw-r--r--lib/gitlab/i18n.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/gitlab/i18n.rb b/lib/gitlab/i18n.rb
index 9081ced0238..3411516319f 100644
--- a/lib/gitlab/i18n.rb
+++ b/lib/gitlab/i18n.rb
@@ -3,9 +3,9 @@ module Gitlab
extend self
AVAILABLE_LANGUAGES = {
- en: 'English',
- es: 'Español',
- de: 'Deutsch'
+ 'en' => 'English',
+ 'es' => 'Español',
+ 'de' => 'Deutsch'
}.freeze
def available_locales
@@ -19,6 +19,7 @@ module Gitlab
end
def reset_locale
+ FastGettext.set_locale(::I18n.default_locale)
::I18n.locale = ::I18n.default_locale
end
end