Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make sure we pass the interpolation values to interpolation procs

  • Loading branch information...
commit 39c2ed8fbad645671cd5520ce7ad0aeefe2b0cca 1 parent a8d32e0
@svenfuchs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/i18n/backend/base.rb
View
2  lib/i18n/backend/base.rb
@@ -183,7 +183,7 @@ def interpolate(locale, string, values = {})
"%{#{key}}"
end
end
- values.each { |key, value| values[key] = value.call if interpolate_lambda?(value, s, key) }
+ values.each { |key, value| values[key] = value.call(values) if interpolate_lambda?(value, s, key) }
s % values
rescue KeyError => e
Please sign in to comment.
Something went wrong with that request. Please try again.