I am investigating what is possible with i18next localization library.
Right now I have the following code (full Fiddle is here):
HTML
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: