Yrobot / i18next-ssg

The package for i18n next.js project SSG (static site generate) (html build)
https://codesandbox.io/p/github/yrobot-demo/i18next-ssg/master
MIT License
34 stars 3 forks source link

How to set up with app directory and new layout? #12

Open rogerhnn opened 11 months ago

rogerhnn commented 11 months ago

How should I set up this with the app directory and layout file?

Can you point me the correct way?

I have this in my layout.tsx:

import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
  title: 'Create Next App',
  description: 'Generated by create next app',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
      <body className={inter.className}>{children}</body>
    </html>
  )
}
jemshit commented 4 months ago

Did you find a solution?

Yrobot commented 4 months ago

I am busy on other stuff these days. The app router feature PR is very welcomed.

dmaximyuk commented 2 months ago

Is there any information about this? At the moment, I urgently need static generation, next still does not support it in combination with i18n