7.34.5 • Published 2 years ago

@arcblock/gatsby-i18n-redirect v7.34.5

Weekly downloads
11
License
ISC
Repository
-
Last release
2 years ago

@arcblock/gatsby-i18n-redirect

Plugin to generate redirect page for i18n sites under public folder.

Install

npm install @arcblock/gatsby-i18n-redirect

Usage

In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: require.resolve('@arcblock/gatsby-i18n-redirect'),
      options: {
        languages: ['en', 'zh'],
        cookieName: 'nf_lang',
        pathPrefix: '/',
        forceRewrite: true
      },
    },
  ],
};