i18n: minor fixes
This commit is contained in:
@@ -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>);
|
||||
}
|
||||
Reference in New Issue
Block a user