An open API service indexing awesome lists of open source software.

https://github.com/serdimoa/gatsby-plugin-react-i18next-v10


https://github.com/serdimoa/gatsby-plugin-react-i18next-v10

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# gatsby-plugin-modern-react-i18next
> [Gatsby](https://github.com/gatsbyjs/gatsby) plugin that provides i18n support.

## Installation
```sh
npm install --save gatsby-plugin-modern-react-i18next
```

## Usage
Edit `gatsby-config.js`

```javascript
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-modern-react-i18next`,
options: {
// Add any options here
},
},
],
}
```

# Options
You can pass options to the plugin:
- availableLngs (Array [required])
- fallbackLng (String [required])
- siteUrl (String [optional])

For example:

```js
options: {
availableLngs: ['en', 'de'],
fallbackLng: 'en',
siteUrl: 'https://www.example.com/',
}
```

## License
[MIT](LICENSE)