我有多语言的 next js 网站。
我使用 packge i18next。我像这样在 jsx 中定义变量。
{t("satisfied:title")}
Run Code Online (Sandbox Code Playgroud)
它的意思是
{t("JSONflieName:JSONvariable")}
Run Code Online (Sandbox Code Playgroud)
但在 json 文件中我不能使用 HTML,它显示像字符串一样
"title" : "this is my<br \/> <span class=\"test\"> test <\/span> title"
Run Code Online (Sandbox Code Playgroud)