Sets the runtime default locale for the request based on the Accept-Language header. The default will only be set if it matches the list of passed valid locales.