src/Caching/MessageCachingService.php
protected function getTranslatedMessagesForLocales(array $messageKeys, array $locales)
    {
        $translatedMessages = [];

        foreach ($locales as $locale) {
            if (!isset($translatedMessages[$locale])) {
                $translatedMessages[$locale] = [];
            }

            $translatedMessages[$locale] = $this->getTranslatedMessages($messageKeys, $locale);
        }

        return $translatedMessages;
    }
protected function getTranslatedMessagesForLocales(array $messageKeys, array $locales)
    {
        $translatedMessages = [];

        foreach ($locales as $locale) {
            if (!isset($translatedMessages[$locale])) {
                $translatedMessages[$locale] = [];
            }

            $translatedMessages[$locale] = $this->getTranslatedMessages($messageKeys, $locale);
        }

        return $translatedMessages;
    }
protected function getTranslatedMessagesForLocales ( array $ messageKeys , array $ locales ) { $ translatedMessages = [ ] ; foreach ( $ locales as $ locale ) { if ( ! isset ( $ translatedMessages [ $ locale ] ) ) { $ translatedMessages [ $ locale ] = [ ] ; } $ translatedMessages [ $ locale ] = $ this -> getTranslatedMessages ( $ messageKeys , $ locale ) ; } return $ translatedMessages ; }
Returns the translated messages for the given keys and locales.

@param array $messageKeys
@param array $locales
@return array The translated messages as [<locale> => [ <message id> => <translation>, ... ], ...]
Returns the translated messages for the given keys and locales .