+ $this->context['alternates'][$locale] = [
+ 'absolute' => $router->generate($name, ['_locale' => $locale]+$route, UrlGeneratorInterface::ABSOLUTE_URL),
+ 'relative' => $router->generate($name, ['_locale' => $locale]+$route),
+ 'title' => implode('/', $titles),
+ 'translated' => $translator->trans($this->config['languages'][$locale], [], null, $locale)
+ ];
+ }
+
+ //Add shorter locale
+ if (empty($this->context['alternates'][$shortLocale = substr($locale, 0, 2)])) {
+ //Set locale locales context
+ $this->context['alternates'][$shortLocale] = [