updated i18n middleware and improve module scaffold