Skip to content

Commit

Permalink
docs(readme): fix formatting (#195)
Browse files Browse the repository at this point in the history
Escape pipe in code examples
  • Loading branch information
rekomat authored Jun 5, 2020
1 parent 09caf55 commit 3063ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>` | `[]` |
| `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<string>` | `['/_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"` |
Expand Down

0 comments on commit 3063ab7

Please sign in to comment.