add javascript i18n support