Skip to content

Commit

Permalink
Template: Add locale variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Sep 16, 2021
1 parent ca70622 commit a6b2926
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MiddleWare/TemplateRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function renderTemplate(Plugin $plugin, string $pluginName, string $view)
]),
'title' => $plugin instanceof BasePlugin ? $plugin->getTitle() : null,
'content' => $this->renderContentCode($plugin, $pluginName, $view, $components),
'locale' => $this->context->getLocale(),
'menu' => [
'dashboardLink' => $baseUrl . '/admin',
'isDashboard' => $pluginName === 'Homepage' && $view === 'default',
Expand Down

0 comments on commit a6b2926

Please sign in to comment.