@graphcommerce/lingui-next

8.0.6 • Public • Published

@graphcommerce/lingui-next

This package adds lingui to GraphCommerce

Installation

  1. Create a lingui.config.js with the lingui config. example
  2. Add <LinguiProvider/> to your pages/_app.tsx file example
  3. Wrap you static getInitialProps with linguiWrapGetInitialProps in to your pages/_document.tsx file example
  4. Run NODE_ENV=development yarn lingui extract to extact messages for your locale.

Configuration

Configure the following (configuration values) in your graphcommerce.config.js

Extracting messages

Run NODE_ENV=development yarn lingui extract

Readme

Keywords

none

Package Sidebar

Install

npm i @graphcommerce/lingui-next

Weekly Downloads

626

Version

8.0.6

License

none

Unpacked Size

30.7 kB

Total Files

12

Last publish

Collaborators

  • bramvanderholst
  • paales