Skip to content

Instantly share code, notes, and snippets.

@blopa
Created May 15, 2021 12:18
Show Gist options
  • Save blopa/ab8611a05596f4f6679bdbc14c89450a to your computer and use it in GitHub Desktop.
Save blopa/ab8611a05596f4f6679bdbc14c89450a to your computer and use it in GitHub Desktop.
module.exports = {
...config,
plugins: [{
resolve: 'gatsby-plugin-intl',
options: {
path: `${__dirname}/src/intl`,
languages: ['en', 'pt-br'],
defaultLanguage: 'en',
redirect: true,
redirectComponent: require.resolve('./src/utils/redirect.js'),
},
}],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment