Expose locales in middleware