This package adds lingui to GraphCommerce
- Create a lingui.config.js with the lingui config. example
- Add
<LinguiProvider/>
to yourpages/_app.tsx
file example - Wrap you
static getInitialProps
withlinguiWrapGetInitialProps
in to yourpages/_document.tsx
file example - Run
NODE_ENV=development yarn lingui extract
to extact messages for your locale.
Configure the following (configuration values) in your graphcommerce.config.js
Run NODE_ENV=development yarn lingui extract