diff --git a/README.md b/README.md index 42810485..8fd1c77e 100644 --- a/README.md +++ b/README.md @@ -210,10 +210,10 @@ In order to use each translation in the project, use the _translation id_ compos | Option | Description | Type | Default | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------- | -------------------------------------------------------------------------- | -| `defaultLanguage` | ISO of the default locale ("en" as default). | `string\|function` | `"en"` | +| `defaultLanguage` | ISO of the default locale ("en" as default). | `string\|function` | `"en"` | | `allLanguages` | An array with all the languages to use in the project. | `Array` | `[]` | | `ignoreRoutes` | An array with all the routes to ignore in the middleware. This config property only effects using the `i18nMiddleware`, SO MAYBE YOU'LL NEVER NEED THIS. | `Array` | `['/_next/', '/static/', '/favicon.ico', '/manifest.json', '/robots.txt']` | -| `defaultLangRedirect` | It accepts `lang-path` and `root` as string. If it's set to `lang-path` redirects the default language routes from `/my-route` to `/en/my-route`. If it's set to `root` redirects the default language routes from `/en/my-route` to `/my-route`. Otherwise, when it's not defined, it's not doing any redirect (default). | `string\|undefined` | undefined | +| `defaultLangRedirect` | It accepts `lang-path` and `root` as string. If it's set to `lang-path` redirects the default language routes from `/my-route` to `/en/my-route`. If it's set to `root` redirects the default language routes from `/en/my-route` to `/my-route`. Otherwise, when it's not defined, it's not doing any redirect (default). | `string\|undefined` | undefined | | `currentPagesDir` | A string with the directory where you have the pages code. This is needed for the "build step". | `string` | `"pages_"` | | `finalPagesDir` | A string with the directory that is going to be used to build the pages. Only "pages" and "src/pages" are possible. This is needed for the "build step". | `string` | `"pages"` | | `localesPath` | A string with the directory of JSONs locales. This is needed for the "build step". | `string` | `"locales"` | @@ -562,6 +562,7 @@ export default class MyDocument extends Document { - **Props**: - `props` - Object - the document properties + - `i18nConfig` - Object - i18n config. Is optional. By default is using the config from `/i18n.json` file. ## 6. Plurals @@ -856,6 +857,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d + This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! diff --git a/package.json b/package.json index db420d60..5f6119bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "next-translate", - "version": "0.17.1-canary.2", + "version": "0.17.1", "description": "Next.js utility to translate pages without the need of a server (static i18n pages generator).", "license": "MIT", "keywords": [