public function setLocale($locale) { if (!in_array($locale, $this->availableLocales)) { throw new InternalErrorException("The locale `{$locale}` is not available."); } Translate::_setLocale($locale); $this->currentLocale = $locale; }
public function setLocale($locale) { if (!in_array($locale, $this->availableLocales)) { throw new InternalErrorException("The locale `{$locale}` is not available."); } Translate::_setLocale($locale); $this->currentLocale = $locale; }