Add a comment block above this:

```javascript
// We override the requested locale in a number of situations, and in the following order:
// 1) If the user provides a locale we support as the first part of the URL, we override and use it
// 2) If the user has a preferred locale set on their session (via cookie), we override use it
```