public function get(string $key, string $locale = null)
    {
        $realKey = $this->getRealKey($key, $locale);

        return ArrayHelper::get($this->messages, $realKey);
    }
public function get(string $key, string $locale = null)
    {
        $realKey = $this->getRealKey($key, $locale);

        return ArrayHelper::get($this->messages, $realKey);
    }
public function get ( string $ key , string $ locale = null ) { $ realKey = $ this -> getRealKey ( $ key , $ locale ) ; return ArrayHelper :: get ( $ this -> messages , $ realKey ) ; }
get message data by key
@return mixed
get message data by key