Refactor i18n middleware to use eachSchema function