Skip to content

Commit

Permalink
improve README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Nevzorov <[email protected]>
  • Loading branch information
jimmyn committed May 27, 2020
1 parent 78005a6 commit b9ed045
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 @@ -40,7 +40,7 @@ plugins: [
resolve: `gatsby-plugin-react-i18next`,
options: {
path: `${__dirname}/locales`,
languages: ['en', 'es', 'de'],
languages: [`en`, `es`, `de`],
defaultLanguage: `en`,

// you can pass any i18next options
Expand Down Expand Up @@ -188,7 +188,7 @@ const Header = ({siteTitle}) => {
| --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| path | string | path to the folder with JSON translations |
| languages | string[] | supported language keys |
| defaultLanguage | string | default language when visiting `/page` instead of `es/page` |
| defaultLanguage | string | default language when visiting `/page` instead of `/es/page` |
| redirect | boolean | if the value is `true`, `/` or `/page-2` will be redirected to the user's preferred language router. e.g) `/es` or `/es/page-2`. Otherwise, the pages will render `defaultLangugage` language. Default is `true` |
| i18nextOptions | object | [i18next configuration options](https://www.i18next.com/overview/configuration-options) |

Expand Down

0 comments on commit b9ed045

Please sign in to comment.