i18n: minor fixes

This commit is contained in:
2024-02-17 10:14:46 +01:00
parent fa555b6c24
commit fc6243f9b8
6 changed files with 12 additions and 10 deletions

View File

@@ -12,5 +12,5 @@ export const SelectLanguage: React.FC = () => {
const secondLocale = locales.find((l) => l !== currentLocale) as string;
const secondLocalePathname = defaultLocale === currentLocale ? `/${secondLocale}${currentPathname}` : currentPathname.replace(`/${currentLocale}`, `/${secondLocale}`);
return (<Link className="btn btn-ghost text-xl self-end" href={secondLocalePathname}>{localeNames[secondLocale]}</Link>);
return (<a className="btn btn-ghost text-xl self-end" href={secondLocalePathname}>{localeNames[secondLocale]}</a>);
}