Link text containing curly braces breaks the interpolation
wetterkrank opened this issue · comments
Alex Antsiferov commented
I18n.backend.store_translations(:en, test1: 'I have %{some_link: this %{text}} in the middle')
It.it('.test1', some_link: '#', text: 'linked text')
# "I have <a href=\"#\">this linked text</a>} in the middle"
It.it('.test1', some_link: '#', text: 'linked text{}')
# Expected: "I have <a href=\"#\">this linked text{}</a>} in the middle"
# Now: "I have %{some_link: this linked text{}} in the middle"