Skip to content

Commit 9f1b116

Browse files
author
Tiffany Le-Nguyen
committed
chore: doublecheck that this works
1 parent 6c48481 commit 9f1b116

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pages/index.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Head from 'next/head'
22
import Header from '@components/Header'
33
import Footer from '@components/Footer'
44

5-
export default function Home({locale}) {
5+
export default function Home() {
66
return (
77
<div className="container">
88
<Head>
@@ -14,7 +14,7 @@ export default function Home({locale}) {
1414
<Header title="Welcome to my app!" />
1515
<p>In v3 of the next plugin, the <code>NEXT_LOCALE</code> and the `Accept-Language` header is not detected. This is fixed in v4. The workaround is manually detecting if the cookie and header exist and changing the behavior of your site in consequence.</p>
1616
<p className="description">
17-
<strong>Locale: {locale}</strong>
17+
<strong>Locale in url</strong>
1818
</p>
1919
</main>
2020

@@ -33,8 +33,6 @@ export async function getServerSideProps(context) {
3333
: context?.req?.locale || "";
3434

3535
return {
36-
props: {
37-
locale
38-
}, // will be passed to the page component as props
36+
props: {},
3937
}
4038
}

0 commit comments

Comments
 (0)