This is a simple example of using React with Webpack and Lingui's po-gettext formatter for internationalization using compiled JavaScript files.
- PO Gettext Format: using po-gettext formatter for plurals
- Simple Webpack Setup: Minimal webpack configuration for React and TypeScript
- Dynamic loading: loads using JSON catalog dynamically
- Install dependencies:
yarn install- Start the development server (this will automatically extract and compile):
yarn startThe application will be available at http://localhost:3000
yarn build- lingui.config.js: Configures po-gettext formatter and JSON compile
- webpack.config.js: Simple webpack setup with CopyWebpackPlugin to copy compiled JSON files