Skip to content

Commit c9119f8

Browse files
authoredJun 22, 2021
Update i18n fields in docs (#26492)
Closes: #24991 ## Documentation / Examples - [x] Make sure the linting passes
1 parent 917a9ac commit c9119f8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎docs/advanced-features/i18n-routing.md

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ module.exports = {
5252
{
5353
domain: 'example.fr',
5454
defaultLocale: 'fr',
55+
// an optional http field can also be used to test
56+
// locale domains locally with http instead of https
57+
http: true,
5558
},
5659
],
5760
},

‎docs/api-reference/next/router.md

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ The following is the definition of the `router` object returned by both [`useRou
4949
- `locale`: `String` - The active locale (if enabled).
5050
- `locales`: `String[]` - All supported locales (if enabled).
5151
- `defaultLocale`: `String` - The current default locale (if enabled).
52+
- `domainLocales`: `Array<{domain, defaultLocale, locales}>` - Any configured domain locales.
5253
- `isReady`: `boolean` - Whether the router fields are updated client-side and ready for use. Should only be used inside of `useEffect` methods and not for conditionally rendering on the server.
5354
- `isPreview`: `boolean` - Whether the application is currently in [preview mode](/docs/advanced-features/preview-mode.md).
5455

0 commit comments

Comments
 (0)
Please sign in to comment.