public function getTranslations($id, $parameters = [])
    {
        $messages = [];

        foreach ($this->supportedLocales as $locale) {
            $message = $this->getTranslation($id, $parameters, $locale);
            $messages[] = [
                "Lang" => lcfirst($locale),
                "Text" => $message,
            ];
        }

        return $messages;
    }
public function getTranslations($id, $parameters = [])
    {
        $messages = [];

        foreach ($this->supportedLocales as $locale) {
            $message = $this->getTranslation($id, $parameters, $locale);
            $messages[] = [
                "Lang" => lcfirst($locale),
                "Text" => $message,
            ];
        }

        return $messages;
    }
public function getTranslations ( $ id , $ parameters = [ ] ) { $ messages = [ ] ; foreach ( $ this -> supportedLocales as $ locale ) { $ message = $ this -> getTranslation ( $ id , $ parameters , $ locale ) ; $ messages [ ] = [ "Lang" => lcfirst ( $ locale ) , "Text" => $ message , ] ; } return $ messages ; }
Get list of translations.

@TODO optimize by preparing the messages before.

@param $id
@param $parameters

@return array
Get list of translations .