refactor i18n text function
refactor i18n function