Skip to content
Extraits de code Groupes Projets
Valider 5372e86d rédigé par Jonne Haß's avatar Jonne Haß
Parcourir les fichiers

update i18n interpolation fallback to use renamed method

parent b1173950
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -2,7 +2,7 @@ module I18n ...@@ -2,7 +2,7 @@ module I18n
module Backend module Backend
module InterpolationFallbacks module InterpolationFallbacks
def translate(locale, key, options = {}) def translate(locale, key, options = {})
default = extract_string_or_lambda_default!(options) if options[:default] default = extract_non_symbol_default!(options) if options[:default]
options.merge!(:default => default) if default options.merge!(:default => default) if default
I18n.fallbacks[locale].each do |fallback| I18n.fallbacks[locale].each do |fallback|
...@@ -18,4 +18,4 @@ module I18n ...@@ -18,4 +18,4 @@ module I18n
end end
end end
end end
end end
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter