Can't not display translation using @html and values
Adec27 opened this issue · comments
Amandine Dekens commented
Can not format a message with values and @html
no logs in console
here is my code :
{@html ($_("page.faq.frequent_questions", { values: { numberOfQuestions: '4' } }))}
here is my Json file :
{ "page": { "faq": { "frequent_questions": "<span>{numberOfQuestions} frequently asked </span>questions" } } }
I expect to display "4 frequently asked questions"
Amandine Dekens commented
It is not a bug just a bad usage of quote in the translation