diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-25 18:22:45 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-25 18:22:45 +0300 |
commit | 5c921809cd86e1031a6a5075da142fef3bb01d6d (patch) | |
tree | 0c04cf9d24f9e94c2bf5dfd709c22f142bec5e77 /config | |
parent | d07e85e1033f8026f155c6171cb3ebcd6b93d9ed (diff) |
Bugfix: Always use the default language when generating emails.
There was a race condition issue when the application was generating an
email and was using a language that was previously being used in other
request.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/fast_gettext.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/fast_gettext.rb b/config/initializers/fast_gettext.rb index a69fe0c902e..eb589ecdb52 100644 --- a/config/initializers/fast_gettext.rb +++ b/config/initializers/fast_gettext.rb @@ -1,5 +1,6 @@ FastGettext.add_text_domain 'gitlab', path: File.join(Rails.root, 'locale'), type: :po FastGettext.default_text_domain = 'gitlab' FastGettext.default_available_locales = Gitlab::I18n.available_locales +FastGettext.default_locale = :en I18n.available_locales = Gitlab::I18n.available_locales |