MenaraSolutions\Geographer\Contracts\ManagerInterface::setLocale PHP Method

setLocale() public method

public setLocale ( string $language ) : MenaraSolutions\Geographer\Contracts\ManagerInterface
$language string
return MenaraSolutions\Geographer\Contracts\ManagerInterface
    public function setLocale($language);

Usage Example

 /**
  * @param string $locale
  * @return string
  */
 public function translate($locale = null)
 {
     if ($locale) {
         $this->manager->setLocale($locale);
     }
     return $this->manager->getTranslator()->translate($this, $this->manager->getLocale());
 }