mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 13:17:52 +08:00
Fix broken specs.
This commit is contained in:
@ -72,9 +72,11 @@ module I18n
|
||||
# the original translations before applying our overrides.
|
||||
def lookup(locale, key, scope = [], options = {})
|
||||
existing_translations = super(locale, key, scope, options)
|
||||
return existing_translations if scope.is_a?(Array) && scope.include?(:models)
|
||||
|
||||
overrides = options.dig(:overrides, locale)
|
||||
|
||||
if overrides && !scope&.include?(:models)
|
||||
if overrides
|
||||
if existing_translations && options[:count]
|
||||
remapped_translations =
|
||||
if existing_translations.is_a?(Hash)
|
||||
|
Reference in New Issue
Block a user