Added support for locale query string parameter.