Unverified Commit c9119f84 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update i18n fields in docs (#26492)



Closes: https://github.com/vercel/next.js/issues/24991

## Documentation / Examples

- [x] Make sure the linting passes
parent 917a9acc
...@@ -52,6 +52,9 @@ module.exports = { ...@@ -52,6 +52,9 @@ module.exports = {
{ {
domain: 'example.fr', domain: 'example.fr',
defaultLocale: 'fr', defaultLocale: 'fr',
// an optional http field can also be used to test
// locale domains locally with http instead of https
http: true,
}, },
], ],
}, },
......
...@@ -49,6 +49,7 @@ The following is the definition of the `router` object returned by both [`useRou ...@@ -49,6 +49,7 @@ The following is the definition of the `router` object returned by both [`useRou
- `locale`: `String` - The active locale (if enabled). - `locale`: `String` - The active locale (if enabled).
- `locales`: `String[]` - All supported locales (if enabled). - `locales`: `String[]` - All supported locales (if enabled).
- `defaultLocale`: `String` - The current default locale (if enabled). - `defaultLocale`: `String` - The current default locale (if enabled).
- `domainLocales`: `Array<{domain, defaultLocale, locales}>` - Any configured domain locales.
- `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. - `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.
- `isPreview`: `boolean` - Whether the application is currently in [preview mode](/docs/advanced-features/preview-mode.md). - `isPreview`: `boolean` - Whether the application is currently in [preview mode](/docs/advanced-features/preview-mode.md).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment