Beispiel #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);
 }
 /**
  * Start the engine.
  */
 private function init()
 {
     $this->locales = $this->manager->getCollection('vendor');
 }