How did that get there
Middleware to set language based on a number of conditions