The language data that is used to set the locale of the session is now grabbed from the DOM intstead of relying on a hardcoded value.