diff --git a/lib/i18n/interpolate/ruby.rb b/lib/i18n/interpolate/ruby.rb index 5b50593f..b2dc365d 100644 --- a/lib/i18n/interpolate/ruby.rb +++ b/lib/i18n/interpolate/ruby.rb @@ -43,7 +43,12 @@ def interpolate_hash(string, values) config.missing_interpolation_argument_handler.call(key, values, string) end value = value.call(values) if value.respond_to?(:call) - $3 ? sprintf("%#{$3}", value) : value + + if value.respond_to?(:strftime) + backend.localize(locale, value) + else + $3 ? sprintf("%#{$3}", value) : value + end end end