Translate custom attributes with i18next (placeholder, value)

后端 未结 3 1853
傲寒
傲寒 2020-12-31 07:26

I am investigating what is possible with i18next localization library.

Right now I have the following code (full Fiddle is here):

HTML

3条回答
  •  天命终不由人
    2020-12-31 07:46

    After asking i18next creator this question directly, I received the following reply: all I need is to put my custom attribute in front of the translation element. Here is an example:

    If multiple attributes are needed, separate them by a ;.

    I learned 2 things by this:

    • I have to read better documentation.
    • 118next's creator is really helpful (this is a thank you remark for him).

提交回复
热议问题