mirror of
https://github.com/dyzulk/trustlab-docs.git
synced 2026-01-26 05:25:38 +07:00
fix(i18n): revert strict structure, implement dynamic index, and duplicate ID meta
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
import { LandingPage } from '../components/LandingPage'
|
||||
|
||||
<LandingPage />
|
||||
@@ -1,5 +1,11 @@
|
||||
import { useRouter } from 'next/router'
|
||||
import { LandingPage } from '../components/LandingPage'
|
||||
|
||||
<LandingPage locale="id" />
|
||||
export const Index = () => {
|
||||
const { locale } = useRouter()
|
||||
return <LandingPage locale={locale} />
|
||||
}
|
||||
|
||||
<Index />
|
||||
|
||||
# DEBUG_ID_FILE_RENDERED
|
||||
|
||||
9
pages/index.mdx
Normal file
9
pages/index.mdx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useRouter } from 'next/router'
|
||||
import { LandingPage } from '../components/LandingPage'
|
||||
|
||||
export const Index = () => {
|
||||
const { locale } = useRouter()
|
||||
return <LandingPage locale={locale} />
|
||||
}
|
||||
|
||||
<Index />
|
||||
Reference in New Issue
Block a user