Prerequisites
Quetzal can be used to provide translations for React projects which use the lingui frameworkInstalling Quetzal
Install
Setting Up
After installing the package, the following four steps are required:1
Run Setup Script
Run
npx quetzal-setup
in the directory you installed the Quetzal package2
Set API Key
Set the environment variable
QUETZAL_API_KEY
to your Quetzal API Key. Your
API Key can be found on your project
dashboard3
Update quetzal.config.json
The setup script should have created this for you. Update
paths
so that it
points to the directories with the code you plan to localize. Update parser
to lingui-parser
Example quetzal.config.json
4
Verify lingui.config
Ensure that your lingui config properly definesExample lingui.config:
And you’re done!
Setup should be complete, and you can start translating your app.Verify Your Installation
Runnpx quetzal-process-translations
to test out your installation.

npx quetzal-process-translations
to the pre-build script in your project’s package.json, but this can be modified.