You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected it to return "Example interpolated text".
What actually happened
/Users/aaronfrary/.rvm/gems/ruby-3.0.1/gems/i18n-1.8.10/lib/i18n/config.rb:99:
in `block in missing_interpolation_argument_handler':
missing interpolation argument :"$(interp)" in "Example $(interp) text"
({:interp=>"interpolated"} given) (I18n::MissingInterpolationArgument)
Looks like it failed to use the capture group between the $( and ) and instead used the whole match. I think this could be related to the use of Regexp.union here:
What I tried to do
Added a new interpolation pattern and called
#interpolate
:What I expected to happen
Expected it to return
"Example interpolated text"
.What actually happened
Looks like it failed to use the capture group between the
$(
and)
and instead used the whole match. I think this could be related to the use ofRegexp.union
here:i18n/lib/i18n/interpolate/ruby.rb
Lines 22 to 23 in 0888807
From the docs:
Versions of i18n, rails, and anything else you think is necessary
i18n version 1.8.10
The text was updated successfully, but these errors were encountered: