Skip to content

Commit 50cf6bb

Browse files
amannnwxh06Tobi-mmtCptCompilernarakhan
authored
→ Please refer to [the announcement](https://next-intl-docs.vercel.app/blog/next-intl-3-0) Fixes #488 Fixes #402 Fixes #578 --------- Co-authored-by: 汪心禾 <[email protected]> Co-authored-by: Tobias <[email protected]> Co-authored-by: Andres <[email protected]> Co-authored-by: Andres <[email protected]> Co-authored-by: narakhan <[email protected]> Co-authored-by: Nicholas Mobbs <[email protected]> Co-authored-by: James Berry <[email protected]> Co-authored-by: Brendon Sled <[email protected]>
1 parent d6b1e8b commit 50cf6bb

File tree

278 files changed

+11760
-4545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+11760
-4545
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ body:
2929
label: Mandatory reproduction URL (CodeSandbox or GitHub repository)
3030
description: |
3131
**Templates:**
32-
- [CodeSandbox (`app` directory)](https://codesandbox.io/p/sandbox/next-intl-bug-template-forked-yow8ep)
33-
- [CodeSandbox (`app` directory, RSC RC)](https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-zcymvq)
34-
- [CodeSandbox (`pages` directory)](https://codesandbox.io/p/sandbox/next-intl-bug-template-pages-krm37f)
32+
- [CodeSandbox (App Router)](https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-zcymvq)
33+
- [CodeSandbox (Pages Router)](https://codesandbox.io/p/sandbox/next-intl-bug-template-pages-krm37f)
3534
validations:
3635
required: true
3736
- type: textarea

.github/workflows/issue-commenter.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
Unfortunately, the reproduction is missing or incomplete, and as such we cannot investigate this issue. Please add a reproduction to the issue, otherwise it will be closed automatically.
2020
2121
**Templates:**
22-
- [CodeSandbox (`app` directory)](https://codesandbox.io/p/sandbox/next-intl-bug-template-forked-yow8ep)
23-
- [CodeSandbox (`app` directory, RSC RC)](https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-zcymvq)
24-
- [CodeSandbox (`pages` directory)](https://codesandbox.io/p/sandbox/next-intl-bug-template-pages-krm37f)
22+
- [CodeSandbox (App Router)](https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-zcymvq)
23+
- [CodeSandbox (Pages Router)](https://codesandbox.io/p/sandbox/next-intl-bug-template-pages-krm37f)
2524
2625
**Creating a good bug report takes time.**
2726

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
cache: 'pnpm'
2121
- run: pnpm install
2222

23+
# Next.js caching
24+
- uses: actions/cache@v3
25+
with:
26+
path: ${{ github.workspace }}/examples/*/.next/cache
27+
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}
28+
2329
# Playwright
2430
- run: |
2531
PLAYWRIGHT_VERSION=$(cat pnpm-lock.yaml | grep /@playwright/test@ | sed 's/.*@\([^:]*\):.*/\1/')
@@ -32,7 +38,7 @@ jobs:
3238
key: playwright-browsers-${{ env.PLAYWRIGHT_VERSION }}
3339
- if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
3440
# Setting up playwright in one example is sufficient
35-
run: pnpm --filter example-next-13 exec playwright install --with-deps
41+
run: pnpm --filter example-next-13-advanced exec playwright install --with-deps
3642

3743
- run: pnpm run build
3844
- run: pnpm run lint

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function UserProfile({user}) {
5151
}
5252
```
5353

54-
```json
54+
```js
5555
// en.json
5656
{
5757
"UserProfile": {

docs/components/CodeSnippets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function icu() {
1919
<span style={{color: 'var(--shiki-token-punctuation)'}}>:</span>
2020
<span style={{color: 'var(--shiki-color-text)'}}> </span>
2121
<span style={{color: 'var(--shiki-token-string-expression)'}}>
22-
"{'{'}username{'}'}'s profile"
22+
"{'{'}firstName{'}'}'s profile"
2323
</span>
2424
<span style={{color: 'var(--shiki-token-punctuation)'}}>,</span>
2525
</span>

docs/components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function Hero({
4747
</div>
4848
<Link
4949
className="mt-10 inline-flex border border-green-300/50 px-4 py-2 font-semibold text-green-300 transition-colors hover:border-white/50 hover:text-white lg:mt-20"
50-
href="/docs"
50+
href="/docs/getting-started/app-router"
5151
>
5252
<span className="mr-3 inline-block">📣</span>{' '}
5353
<span>{rscAnnouncement}</span>

docs/components/HeroCode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const files = [
195195
<span style={{color: 'var(--shiki-token-punctuation)'}}>:</span>
196196
<span style={{color: 'var(--shiki-color-text)'}}> </span>
197197
<span style={{color: 'var(--shiki-token-string-expression)'}}>
198-
"{'{'}username{'}'}'s profile"
198+
"{'{'}firstname{'}'}'s profile"
199199
</span>
200200
<span style={{color: 'var(--shiki-token-punctuation)'}}>,</span>
201201
</span>

docs/components/VersionTabs.tsx

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/next.config.js

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,24 @@ module.exports = withNextra({
2828
destination: '/docs/getting-started',
2929
permanent: true
3030
},
31+
{
32+
source: '/docs/configuration',
33+
destination: '/docs/usage/configuration',
34+
permanent: true
35+
},
3136
{
3237
source: '/docs/getting-started/production-checklist',
33-
destination: '/docs/production-checklist',
38+
destination: '/docs/environments/runtime-requirements',
3439
permanent: true
3540
},
3641
{
3742
source: '/docs/usage/production-checklist',
38-
destination: '/docs/production-checklist',
43+
destination: '/docs/environments/runtime-requirements',
44+
permanent: true
45+
},
46+
{
47+
source: '/docs/production-checklist',
48+
destination: '/docs/environments/runtime-requirements',
3949
permanent: true
4050
},
4151
{
@@ -45,12 +55,22 @@ module.exports = withNextra({
4555
},
4656
{
4757
source: '/docs/next-13/client-components',
48-
destination: '/docs/getting-started/app-router-client-components',
58+
destination: '/docs/getting-started/app-router',
4959
permanent: true
5060
},
5161
{
5262
source: '/docs/next-13/server-components',
53-
destination: '/docs/getting-started/app-router-server-components',
63+
destination: '/docs/getting-started/app-router',
64+
permanent: true
65+
},
66+
{
67+
source: '/docs/getting-started/app-router-server-components',
68+
destination: '/docs/getting-started/app-router',
69+
permanent: true
70+
},
71+
{
72+
source: '/docs/getting-started/app-router-client-components',
73+
destination: '/docs/getting-started/app-router',
5474
permanent: true
5575
},
5676
{
@@ -75,22 +95,17 @@ module.exports = withNextra({
7595
},
7696
{
7797
source: '/docs/usage/production-checklist',
78-
destination: '/docs/production-checklist',
98+
destination: '/docs/environments/runtime-requirements',
7999
permanent: true
80100
},
81101
{
82102
source: '/docs/usage/runtime-requirements-polyfills',
83-
destination: '/docs/production-checklist#runtime-requirements',
84-
permanent: true
85-
},
86-
{
87-
source: '/docs/usage/configuration',
88-
destination: '/docs/configuration',
103+
destination: '/docs/environments/runtime-requirements',
89104
permanent: true
90105
},
91106
{
92107
source: '/docs/usage/error-handling',
93-
destination: '/docs/configuration#error-handling',
108+
destination: '/docs/usage/configuration#error-handling',
94109
permanent: true
95110
},
96111
{

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"tailwindcss": "^3.3.2"
2525
},
2626
"devDependencies": {
27-
"@types/node": "20.1.2",
28-
"@types/react": "^18.2.5",
27+
"@types/node": "^20.1.2",
28+
"@types/react": "^18.2.29",
2929
"autoprefixer": "^10.4.0",
3030
"eslint": "^8.46.0",
3131
"eslint-config-molindo": "^7.0.0",
3232
"eslint-config-next": "^13.4.0",
3333
"next-sitemap": "^4.0.7",
34-
"typescript": "^5.0.0"
34+
"typescript": "^5.2.2"
3535
},
3636
"funding": "https://github.com/amannn/next-intl?sponsor=1"
3737
}

0 commit comments

Comments
 (0)