updated frontend and auth backend service
This commit is contained in:
@@ -6,6 +6,8 @@ import LocaleSwitcherClient from '@/components/LocaleSwitcherClient';
|
||||
|
||||
export default function HomePage() {
|
||||
const t = useTranslations('Index');
|
||||
const n = useTranslations('Index.navigation');
|
||||
|
||||
const router = useRouter();
|
||||
const params = useParams();
|
||||
|
||||
@@ -18,11 +20,13 @@ export default function HomePage() {
|
||||
<main>
|
||||
<h1>{t('title')}</h1>
|
||||
<p>{t('description')}</p>
|
||||
<p>{t('navigation.title')} : {params.locale}</p>
|
||||
<p>{n('title')} : {params?.locale || 'tr'}</p>
|
||||
<div className='flex flex-col gap-2'>
|
||||
<LocaleSwitcherClient />
|
||||
<button onClick={() => handleNavigation('/about')}>{t('navigation.about')}</button>
|
||||
<button onClick={() => handleNavigation('/home')}>{t('navigation.home')}</button>
|
||||
<button onClick={() => handleNavigation('/about')}>{n('about')}</button>
|
||||
<button onClick={() => handleNavigation('/home')}>{n('home')}</button>
|
||||
<button onClick={() => handleNavigation('/login')}>{n('login')}</button>
|
||||
<button onClick={() => handleNavigation('/select')}>{n('select')}</button>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user