src/Translator.php
public function setLocale($locale)
    {
        if ($this->useCookies) {
            Cookie::queue($this->cookiePrefix . 'lang_locale', $locale);
        }
        parent::setLocale($locale);
    }
public function setLocale($locale)
    {
        if ($this->useCookies) {
            Cookie::queue($this->cookiePrefix . 'lang_locale', $locale);
        }
        parent::setLocale($locale);
    }
public function setLocale ( $ locale ) { if ( $ this -> useCookies ) { Cookie :: queue ( $ this -> cookiePrefix . 'lang_locale' , $ locale ) ; } parent :: setLocale ( $ locale ) ; }
Set the default locale.

@param  string $locale

@return void
Set the default locale .