module I18n::Backend::InterpolationCompiler
def compile_all_strings_in(data)
def compile_all_strings_in(data) data.each_value do |value| Compiler.compile_if_an_interpolation(value) compile_all_strings_in(value) if value.kind_of?(Hash) end end
def interpolate(locale, string, values)
def interpolate(locale, string, values) if string.respond_to?(:i18n_interpolate) string.i18n_interpolate(values) elsif values super else string end end
def store_translations(locale, data, options = EMPTY_HASH)
def store_translations(locale, data, options = EMPTY_HASH) compile_all_strings_in(data) super end