diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/SwitchLanguageLink.astro | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/SwitchLanguageLink.astro b/src/components/SwitchLanguageLink.astro index c8733bc..e7b04da 100644 --- a/src/components/SwitchLanguageLink.astro +++ b/src/components/SwitchLanguageLink.astro @@ -15,7 +15,9 @@ const otherLocalePath = currentPath .replace(currentLocaleInPath, `${otherLocale}/`) .replace(newsCurrentLocaleInPath, `${otherLocale.toLocaleLowerCase()}`); -const t = translate(currentLocale); +// The language link should be in the language it +// points to, not the language of the current page +const t = translate(otherLocale); --- <a class="link switch-language-link" href={otherLocalePath}> |
