fix: localize 404 and ensure header when no lang
This commit is contained in:
11
app/[lang]/(live)/middleware-error/404/page.tsx
Normal file
11
app/[lang]/(live)/middleware-error/404/page.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
import NotFound from "@/components/Current/NotFound"
|
||||
|
||||
import { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default function NotFoundPage({ params }: PageArgs<LangParams>) {
|
||||
const lang = params.lang || Lang.en
|
||||
|
||||
return <NotFound lang={lang} />
|
||||
}
|
||||
Reference in New Issue
Block a user