mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Iterated with translations
This commit is contained in:
15
app/[locale]/[[...slug]]/page.tsx
Normal file
15
app/[locale]/[[...slug]]/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use client';
|
||||
|
||||
import LocaleSwitcher from 'components/ui/locale-switcher';
|
||||
import { useTranslations } from 'next-intl';
|
||||
|
||||
export default function Index() {
|
||||
const t = useTranslations('Index');
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1>{t('title')}</h1>
|
||||
<LocaleSwitcher />
|
||||
</div>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user