FIX: Server didn't use default_locale as fallback locale

This commit is contained in:
Gerhard Schlager
2018-01-22 14:42:12 +01:00
parent 01f9995956
commit ce060e2b86
4 changed files with 36 additions and 9 deletions

View File

@ -1,7 +1,10 @@
# order: after 02-freedom_patches.rb
require 'i18n/backend/discourse_i18n'
require 'i18n/backend/fallback_locale_list'
I18n.backend = I18n::Backend::DiscourseI18n.new
I18n.fallbacks = I18n::Backend::FallbackLocaleList.new
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
I18n.init_accelerator!