Skip to content

Commit 2213185

Browse files
committed
cleanup
1 parent 379d059 commit 2213185

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

β€Ždocs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx

+8-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ Now, we're going to create the following file structure:
2424

2525
```
2626
β”œβ”€β”€ messages
27-
β”‚ β”œβ”€β”€ en.json (1)
27+
β”‚ β”œβ”€β”€ en.json
2828
β”‚ └── ...
29-
β”œβ”€β”€ next.config.ts (2)
29+
β”œβ”€β”€ next.config.ts
3030
└── src
3131
β”œβ”€β”€ i18n
32-
β”‚ β”œβ”€β”€ routing.ts (3)
33-
β”‚ β”œβ”€β”€ navigation.ts (4)
34-
β”‚ └── request.ts (6)
35-
β”œβ”€β”€ middleware.ts (5)
32+
β”‚ β”œβ”€β”€ routing.ts
33+
β”‚ β”œβ”€β”€ navigation.ts
34+
β”‚ └── request.ts
35+
β”œβ”€β”€ middleware.ts
3636
└── app
3737
└── [locale]
38-
β”œβ”€β”€ layout.tsx (6)
39-
└── page.tsx (7)
38+
β”œβ”€β”€ layout.tsx
39+
└── page.tsx
4040
```
4141

4242
In case you're migrating an existing app to `next-intl`, you'll typically move your existing pages into the `[locale]` folder as part of the setup.
@@ -116,11 +116,6 @@ export const routing = defineRouting({
116116
// Used when no locale matches
117117
defaultLocale: 'en'
118118
});
119-
120-
// Lightweight wrappers around Next.js' navigation APIs
121-
// that will consider the routing configuration
122-
export const {Link, redirect, usePathname, useRouter, getPathname} =
123-
createNavigation(routing);
124119
```
125120

126121
Depending on your requirements, you may wish to customize your routing configuration laterβ€”but let's finish with the setup first.

β€Ždocs/src/pages/docs/getting-started/app-router/without-i18n-routing.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ Now, we're going to create the following file structure:
2424

2525
```
2626
β”œβ”€β”€ messages
27-
β”‚ β”œβ”€β”€ en.json (1)
27+
β”‚ β”œβ”€β”€ en.json
2828
β”‚ └── ...
29-
β”œβ”€β”€ next.config.ts (2)
29+
β”œβ”€β”€ next.config.ts
3030
└── src
3131
β”œβ”€β”€ i18n
32-
β”‚ └── request.ts (3)
32+
β”‚ └── request.ts
3333
└── app
34-
β”œβ”€β”€ layout.tsx (4)
35-
└── page.tsx (5)
34+
β”œβ”€β”€ layout.tsx
35+
└── page.tsx
3636
```
3737

3838
**Let's set up the files:**

0 commit comments

Comments
Β (0)