mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 14:35:17 +08:00
DEV: Remove patch for I18n.exists?
It was merged upstream a long time ago
This commit is contained in:
@ -58,7 +58,7 @@ module I18n
|
||||
end
|
||||
|
||||
def ensure_all_loaded!
|
||||
backend.fallbacks(locale).each { |l| ensure_loaded!(l) }
|
||||
I18n.fallbacks[locale].each { |l| ensure_loaded!(l) }
|
||||
end
|
||||
|
||||
def search(query, opts = {})
|
||||
@ -153,7 +153,7 @@ module I18n
|
||||
if @overrides_enabled
|
||||
overrides = {}
|
||||
|
||||
backend.fallbacks(locale).each do |l|
|
||||
I18n.fallbacks[locale].each do |l|
|
||||
overrides[l] = overrides_by_locale(l)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user