Internationalization

customize locales

Snipcart offering you the possibility to override all his locales keys. You can also add more translations

nuxt.config.js
{
  snipcart: {
    key: process.env.key,
    locales: {
      fr: {
        cart_summary: {
          total: 'Total fr'
        }
        // ...
      },
      en: {
        cart_summary: {
          total: 'Total en'
        }
        // ...
      }
    }
  },
}

You can combine your internationalization strategy with our setLanguage utils

Edit this page on GitHub Updated at Tue, Jun 15, 2021