Socket
Socket
Sign inDemoInstall

@grsmto/gatsby-plugin-i18next

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @grsmto/gatsby-plugin-i18next

Gatsby plugin that provides i18n support


Version published
Maintainers
1
Created

Readme

Source

gatsby-plugin-i18next

Gatsby plugin that provides i18n support.

Installation

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

Usage

Edit gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `@grsmto/gatsby-plugin-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:

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

Keywords

FAQs

Last updated on 09 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc