t('German'), 'en' => t('English'), ]; $label = $languageLabels[$normalizedLocale] ?? strtoupper((string) $locale); $publicUrl = $base . '/' . $locale . ($publicTarget !== '' ? '/' . $publicTarget : ''); $switchUrl = $isLoggedIn ? ($baseUrl . '?locale=' . $locale . '&return=' . urlencode($returnTarget)) : $publicUrl; ?>
  • aria-current="true">