mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +08:00
FIX: Server didn't use default_locale as fallback locale
This commit is contained in:
@ -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!
|
||||
|
||||
|
Reference in New Issue
Block a user