diff --git a/Resolver/WidgetLocaleSwitcherContentResolver.php b/Resolver/WidgetLocaleSwitcherContentResolver.php index 35d0249..238a109 100644 --- a/Resolver/WidgetLocaleSwitcherContentResolver.php +++ b/Resolver/WidgetLocaleSwitcherContentResolver.php @@ -64,7 +64,7 @@ public function getWidgetStaticContent(Widget $widget) { $widgetParams = parent::getWidgetStaticContent($widget); - $currentView = $this->currentViewHelper->getMainCurrentView(); + $currentView = $this->currentViewHelper->getCurrentView(); $viewTranslations = $currentView->getTranslations(); unset($this->locales[$currentView->getCurrentLocale()]);