gatsby-plugin-i18next

Gatsby plugin that provides i18n support

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gatsby-plugin-i18next
4071.1.105 years ago6 years agoMinified + gzip package size for gatsby-plugin-i18next in KB

Readme

gatsby-plugin-i18next
Gatsby plugin that provides i18n support.

Installation

yarn add @igorko/gatsby-plugin-i18next
# npm install --save @igorko/gatsby-plugin-i18next

Usage

Edit gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `@igorko/gatsby-plugin-i18next`,
      options: {
        // Add any options here
      },
    },
  ],
}
Options
You can pass options to the plugin:
For example:
options: {
  availableLngs: ['en', 'de'],
  fallbackLng: 'en',
  siteUrl: 'https://www.example.com/',
}

Starters

gatsby-starter-i18next

Demo Source
  • i18next integration
  • automatic browser-language detection and redirection
  • language switcher
  • hreflang
  • ...

License

MIT