iGEL / it

A helper for links and other html tags in your translations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Link text containing curly braces breaks the interpolation

wetterkrank opened this issue · comments

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"