determineDefaultLocale method

Intl determineDefaultLocale(
  1. ForceRequest request

Determine the default locale for the given request, Called if no locale cookie has been found.

The default implementation returns the specified default locale, if any, else falls back to the request's accept-header locale. @param request the request to resolve the locale for @return the default locale


Intl determineDefaultLocale(ForceRequest request) {
  Intl defaultLocale = getDefaultLocale();
  if (defaultLocale == null) {
    defaultLocale = new Intl(Intl.defaultLocale);
  return defaultLocale;