kaisermann / svelte-i18n

Internationalization library for Svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't not display translation using @html and values

Adec27 opened this issue · comments

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"

It is not a bug just a bad usage of quote in the translation