I am referring to https://github.com/wikimedia/jquery.i18n#data-api in the JQuery.i18n documentation:
<li data-i18n="message-key">Fallback text</li>
It is also possible to have the above li node with fallback text already in place.
Unfortunately I don't get this work. When I don't have message-key
in the language file then JQuery.i18n displays instead of Fallback text
the key: message-key
My question:
What am I doing wrong? As soon I add the key to the language file then it gets replaced, so apparently the language file is loaded correctly and also the function calls seem to work.