Upgrade gatsby-plugin-react-i18next to new release

This commit is contained in:
Kevin Kandlbinder 2021-02-12 08:58:37 +01:00
parent ad2bcd3312
commit 37b12abb78
14 changed files with 421 additions and 49 deletions

View file

@ -29,6 +29,13 @@ module.exports = {
path: `./content/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/locales`,
name: `locale`
},
},
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-manifest`,
@ -58,9 +65,10 @@ module.exports = {
{
resolve: `gatsby-plugin-react-i18next`,
options: {
path: `${__dirname}/locales`,
localeJsonSourceName: `locale`,
languages: extConfig.languages,
defaultLanguage: null,
defaultLanguage: `en`,
generateDefaultLanguagePage: true,
siteUrl: extConfig.siteURL,
i18nextOptions: {
interpolation: {