Skip to content

Commit

Permalink
Merge pull request #72 from cyf/renovate/next-intl-3.x
Browse files Browse the repository at this point in the history
fix(deps): update dependency next-intl to v3
  • Loading branch information
kjxbyz authored Nov 15, 2023
2 parents 68a1717 + 6081249 commit 0613ed8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
7 changes: 6 additions & 1 deletion app/app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ export default async function RootLayout({
"flex min-h-screen flex-col",
)}
>
<NextIntlClientProvider locale={params.lng} messages={messages}>
<NextIntlClientProvider
locale={params.lng}
now={new Date()}
timeZone={Intl.DateTimeFormat().resolvedOptions().timeZone}
messages={messages}
>
<NextTopLoader height={1} />
<Providers>
<Particles />
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"ms": "^2.1.3",
"next": "14.0.1",
"next-contentlayer": "^0.3.4",
"next-intl": "^2.22.1",
"next-intl": "^3.0.3",
"next-themes": "^0.2.1",
"nextjs-toploader": "^1.6.4",
"react": "18.2.0",
Expand Down
16 changes: 7 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0613ed8

Please sign in to comment.