src/Carbon/Translator.php
public function getMessages($locale = null)
    {
        return $locale === null ? $this->messages : $this->messages[$locale];
    }
public function getMessages($locale = null)
    {
        return $locale === null ? $this->messages : $this->messages[$locale];
    }
public function getMessages ( $ locale = null ) { return $ locale === null ? $ this -> messages : $ this -> messages [ $ locale ] ; }
Get messages of a locale, if none given, return all the
languages.

@param string|null $locale

@return array
Get messages of a locale if none given return all the languages .