refactor i18n packages