overlayPath = $overlayPath; } /** * Load the messages for the given locale. * * @param string $locale * @param string $group * @param string $namespace * @return array */ public function load($locale, $group, $namespace = null) { $parent = parent::load($locale, $group, $namespace); if ($group == '*' && $namespace == '*') { return array_merge($parent, $this->loadJsonPath($this->overlayPath, $locale)); } if (is_null($namespace) || $namespace == '*') { return array_merge($parent, $this->loadPath($this->overlayPath, $locale, $group)); } return array_merge($parent, $this->loadNamespaced($locale, $group, $namespace)); } }