use unobtrusive js to generate i18n data attributes