/** * Load the messages strictly for the given locale. * * @param string $locale * @param string $group * @param string $namespace * @return array */ public function loadSource($locale, $group, $namespace = '*') { $result = []; $translations = $this->translationRepository->getItems($locale, $namespace, $group); foreach ($translations as $translation) { array_set($result, $translation['item'], $translation['text']); } return $result; }
/** * Load the messages strictly for the given locale. * * @param string $locale * @param string $group * @param string $namespace * @return array */ public function loadSource($locale, $group, $namespace = '*') { return $this->translationRepository->loadSource($locale, $namespace, $group); }