Пример #1
0
 /**
  * Get locale translations from multiple groups.
  *
  * @param  string  $locale
  * @param  array   $ignored
  *
  * @return array
  */
 private function getTranslations($locale, array $ignored)
 {
     $appLocale = $this->manager->getFrom('app', $locale);
     $vendorLocale = $this->manager->getFrom('vendor', $locale);
     return is_null($appLocale) ? $vendorLocale->mergeTranslations($appLocale, $ignored) : $appLocale->mergeTranslations($vendorLocale, $ignored);
 }