public function onChangeLocation(MvcEvent $e) { $locale = $this->translator->getLocale(); $this->translator->setLocale($e->getRouteMatch()->getParam('lang')); $this->translator->setFallbackLocale($locale); }
public function onChangeLocation(MvcEvent $e) { $locale = $this->translator->getLocale(); $this->translator->setLocale($e->getRouteMatch()->getParam('lang')); $this->translator->setFallbackLocale($locale); }