v0.2/features #68

Merged
lamacchinadesiderante merged 7 commits from v0.2/features into develop 2024-05-12 12:01:16 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit ae64434b42 - Show all commits

View File

@ -2,15 +2,17 @@ import React from 'react';
import style from './Title.module.scss'
import {useTranslations} from 'next-intl';
import { useLocale, useTranslations } from 'next-intl';
import Link from 'next/link';
const Title: React.FC = () => {
const t = useTranslations('Header');
const locale = useLocale()
return (
<Link href={'/'}><h1 className={style.title}>{t('title')}</h1></Link>
<Link href={`/${locale}`}><h1 className={style.title}>{t('title')}</h1></Link>
);
};