Skip to content

Commit

Permalink
feat: Support Next.js 14 (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Nov 2, 2023
1 parent b5884a7 commit 5c449f5
Show file tree
Hide file tree
Showing 8 changed files with 597 additions and 234 deletions.
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"@vercel/analytics": "1.1.0",
"clsx": "^1.2.1",
"http-status-codes": "^2.2.0",
"next": "13.5.1",
"nextra": "^2.8.0",
"nextra-theme-docs": "^2.8.0",
"next": "14.0.1",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.3.2"
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/docs/environments/metadata-route-handlers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ If you need to internationalize content within [metadata files](https://nextjs.o
<Tab>

```tsx filename="app/[locale]/opengraph-image.tsx"
import {ImageResponse} from 'next/server';
import {ImageResponse} from 'next/og';
import {createTranslator} from 'next-intl';

export default async function Image({params: {locale}}) {
Expand All @@ -124,7 +124,7 @@ export default async function Image({params: {locale}}) {
<Tab>

```tsx filename="app/[locale]/opengraph-image.tsx"
import {ImageResponse} from 'next/server';
import {ImageResponse} from 'next/og';
import {getTranslator} from 'next-intl/server';

export default async function Image({params: {locale}}) {
Expand Down
2 changes: 1 addition & 1 deletion examples/example-advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"accept-language-parser": "^1.5.0",
"lodash": "^4.17.21",
"next": "13.5.1",
"next": "14.0.1",
"next-intl": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/example-next-13-next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"start": "next start"
},
"dependencies": {
"next": "13.5.1",
"next-auth": "^4.22.1",
"next": "14.0.1",
"next-auth": "^4.24.4",
"next-intl": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/example-next-13/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"clsx": "^1.2.1",
"next": "13.5.1",
"next": "14.0.1",
"next-intl": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"date-fns": "^2.16.1",
"next": "13.5.1",
"next": "14.0.1",
"next-intl": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/next-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"use-intl": "^2.21.0"
},
"peerDependencies": {
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 | ^14.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
Expand All @@ -85,7 +85,7 @@
"eslint": "^8.46.0",
"eslint-config-molindo": "^7.0.0",
"eslint-plugin-deprecation": "^1.4.1",
"next": "13.5.1",
"next": "14.0.1",
"path-to-regexp": "^6.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down

1 comment on commit 5c449f5

@vercel
Copy link

@vercel vercel bot commented on 5c449f5 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-intl-docs – ./docs

next-intl-docs-next-intl.vercel.app
next-intl-docs.vercel.app
next-intl-docs-git-main-next-intl.vercel.app

Please sign in to comment.