diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3a03bbe3..22ec79a3 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,235 +1,253 @@ import Head from 'next/head' import Link from 'next/link' - -export const Home = (): JSX.Element => ( -
- - Create Next App - - - -
- - To /fr/legal - -

- Welcome to Next.js! -

- -

- Get started by editing pages/index.tsx -

- -
-

- Next.js + Tailwind CSS 2.0 -

-
- - - -
- -

Documentation →

-

Find in-depth information about Next.js features and API.

-
- - -

Learn →

-

Learn about Next.js in an interactive course with quizzes!

-
- - { + const router = useRouter() + //const { locale, locales, defaultLocale } = router + + return ( +
+ + Create Next App + + + +
+ + To /fr/legal + +
+

Hello, world!

+

Welcome to your internationalised page!

+
+ {/*

Current locale: {router.locale}

*/ + /*{' '} +

Default locale: {router.defaultLocale}

*/ + /*{' '} +

Configured locales: {JSON.stringify(router.locales)}

*/} +
+

+ Welcome to Next.js! +

+ +

+ Get started by editing pages/index.tsx +

+ +
+

+ Next.js + Tailwind CSS 2.0 +

+
+ + + + +
+ +
-
- - - - + + - - -
-) + `} + + + ) +} export default Home diff --git a/test/pages/__snapshots__/index.test.tsx.snap b/test/pages/__snapshots__/index.test.tsx.snap index 0f2c43fd..7856fec3 100644 --- a/test/pages/__snapshots__/index.test.tsx.snap +++ b/test/pages/__snapshots__/index.test.tsx.snap @@ -3,111 +3,128 @@ exports[`home page matches snapshot 1`] = `
To /fr/legal +
+

+ Hello, world! +

+

+ Welcome to your internationalised page! +

+
+

Welcome to Next.js!

Get started by editing pages/index.tsx

Next.js + Tailwind CSS 2.0