Skip to content

Instantly share code, notes, and snippets.

@tonyspiro
Created November 1, 2018 15:24
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 tonyspiro/d99317cf37f6e316ec5ab3a45e250d7d to your computer and use it in GitHub Desktop.
Save tonyspiro/d99317cf37f6e316ec5ab3a45e250d7d to your computer and use it in GitHub Desktop.
module.exports = {
siteMetadata: {
title: 'Cosmic JS Gatsby Starter Localization',
nav: [
{ slug: '', name: 'Home' },
{ slug: 'about', name: 'About' },
{ slug: 'contact', name: 'Contact' },
{ slug: 'not-found', name: 'Not Found' },
],
languages: [
{ slug: '', localized_name: { en: 'English', es: 'Inglés', de: 'Englisch'} },
{ slug: 'de', localized_name: { en: 'German', es: 'Alemán', de: 'Deutsche'} },
],
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-source-cosmicjs`,
options: {
bucketSlug: process.env.COSMIC_BUCKET || `gatsby-localization`,
objectTypes: [`pages`],
// If you have enabled read_key to fetch data (optional).
apiAccess: {
read_key: ``,
}
}
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment