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
- Host: GitHub
- URL: https://github.com/serdimoa/gatsby-plugin-react-i18next-v10
- Owner: serdimoa
- License: mit
- Created: 2019-04-09T18:09:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T09:30:16.000Z (almost 7 years ago)
- Last Synced: 2025-01-26T09:26:46.909Z (over 1 year ago)
- Language: JavaScript
- Size: 582 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)