public function findByLocale($locale)
    {
        // Get sanitized locale
        $locale = Locale::sanitizeLocale($locale);

        return isset($this->available[$locale]) ? $this->available[$locale] : null;
    }
public function findByLocale($locale)
    {
        // Get sanitized locale
        $locale = Locale::sanitizeLocale($locale);

        return isset($this->available[$locale]) ? $this->available[$locale] : null;
    }
public function findByLocale ( $ locale ) { // Get sanitized locale $ locale = Locale :: sanitizeLocale ( $ locale ) ; return isset ( $ this -> available [ $ locale ] ) ? $ this -> available [ $ locale ] : null ; }
Get locale with specified name.

@param string|Locale $locale

@return Locale|null
Get locale with specified name .