public static function setLocale(string $locale)
    {
        self::$runtimeLocale = self::getCompatibleLocale($locale);
        Response::setCookieHttpOnly(Language::LANGUAGE_COOKIE_NAME, self::$runtimeLocale);
    }
public static function setLocale(string $locale)
    {
        self::$runtimeLocale = self::getCompatibleLocale($locale);
        Response::setCookieHttpOnly(Language::LANGUAGE_COOKIE_NAME, self::$runtimeLocale);
    }
public static function setLocale ( string $ locale ) { self :: $ runtimeLocale = self :: getCompatibleLocale ( $ locale ) ; Response :: setCookieHttpOnly ( Language :: LANGUAGE_COOKIE_NAME , self :: $ runtimeLocale ) ; }
Set the locale for the current client.

@param string $locale
Set the locale for the current client .