Skip to content

Commit 84da880

Browse files
committed
fix docs
1 parent 6422859 commit 84da880

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: docs/src/pages/docs/routing.mdx

+5-6
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ If you want to serve your localized content based on different domains, you can
324324
- `us.example.com`: `en-US`
325325
- `ca.example.com`: `en-CA`
326326
- `ca.example.com/fr`: `fr-CA`
327-
- `fr.example.com`: `fr-CA`
327+
- `fr.example.com`: `fr-FR`
328328

329-
In many cases, `domains` are combined with a [`localePrefix`](#locale-prefix) setting to achieve results as shown above. Also [custom prefixes](#locale-prefix-custom) can be used to customize the user-facing prefix per domain.
329+
In many cases, `domains` are combined with a [`localePrefix`](#locale-prefix) setting to achieve results as shown above. Also [custom prefixes](#locale-prefix-custom) can be used to customize the user-facing prefix per locale.
330330

331331
```tsx filename="routing.ts"
332332
import {defineRouting} from 'next-intl/routing';
@@ -347,15 +347,14 @@ export const routing = defineRouting({
347347
},
348348
{
349349
domain: 'fr.example.com',
350-
defaultLocale: 'fr-CA',
351-
locales: ['fr-CA']
350+
defaultLocale: 'fr-FR',
351+
locales: ['fr-FR']
352352
}
353353
],
354354
localePrefix: {
355355
mode: 'as-needed',
356356
prefixes: {
357-
// Omit the regional variant
358-
// for `ca.example.com/fr`
357+
// Cleaner prefix for `ca.example.com/fr`
359358
'fr-CA': '/fr'
360359
}
361360
}

0 commit comments

Comments
 (0)