public function renderWidget(\Twig_Environment $env, $locales, $route, array $parameters = array())
    {
        $template = $env->loadTemplate(
            'KunstmaanAdminBundle:LocaleSwitcherTwigExtension:widget.html.twig'
        );

        return $template->render(
            array_merge(
                $parameters,
                array(
                    'locales' => $locales,
                    'route' => $route,
                )
            )
        );
    }