Using i18next, how can I translate JQuery Mobile widgets? Specifically, I\'d like to know how to do that without resorting to using data-i18n-target to modify gener
jQuery Mobile widgets are auto-initialized (Markup enhancement) on two events, pagebeforecreate and pagecreate. The majority of widgets are initialized once pagecreate occurs.
All you need is to wrap i18n code in pagebeforecreate.
$(document).on("pagebeforecreate", function () {
// code
});
Demo