Release v0.2.0 #74

Merged
lamacchinadesiderante merged 24 commits from develop into main 2024-05-13 18:07:51 +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 style from './Title.module.scss'
import {useTranslations} from 'next-intl'; import { useLocale, useTranslations } from 'next-intl';
import Link from 'next/link'; import Link from 'next/link';
const Title: React.FC = () => { const Title: React.FC = () => {
const t = useTranslations('Header'); const t = useTranslations('Header');
const locale = useLocale()
return ( return (
<Link href={'/'}><h1 className={style.title}>{t('title')}</h1></Link> <Link href={`/${locale}`}><h1 className={style.title}>{t('title')}</h1></Link>
); );
}; };