Added middleware so the API is aware of the users language preference