HTML tags in i18next translation

前端 未结 8 1391
小鲜肉
小鲜肉 2020-12-08 18:30

I\'m using i18next to power i18n for my weblog. It works great on text-only content, but when I try to translate content that includes HTML markup, it is displaying the raw

8条回答
  •  失恋的感觉
    2020-12-08 18:49

    In order to make this work, you have to prefix the data-i18n attribute of the elements you want to translate with [html]:

    Source: i18next.jquery.js

提交回复
热议问题