use toLocaleString(lang) instead of toString(lang)
grab methods from String.prototype
toHTMLString -> l10n, data-i18n -> data-l10n
improve internal structures for a better performance