Skip to content

Instantly share code, notes, and snippets.

@theodesp
Last active April 6, 2020 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/7321005cc2328bbb9f608a64d3f99204 to your computer and use it in GitHub Desktop.
Save theodesp/7321005cc2328bbb9f608a64d3f99204 to your computer and use it in GitHub Desktop.
gatsby-config-i18next
module.exports = {
pathPrefix: '/gatsby-i18n/gatsby-starter-i18next',
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'gatsby-starter-lingui',
short_name: 'starter',
start_url: '/gatsby-i18n/gatsby-starter-i18next/',
background_color: '#663399',
theme_color: '#663399',
display: 'minimal-ui',
icon: 'src/images/gatsby-icon.png', // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/locale`,
name: `locale`,
},
},
{
resolve: '@wapps/gatsby-plugin-i18next',
options: {
availableLngs: ['en', 'el'],
fallbackLng: 'el',
i18nextOptions: {
debug: false,
},
},
},
'gatsby-plugin-offline',
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment