How to install Quetzal into your Next.js project
Run Setup Script
npx quetzal-setup
in the directory you installed the Quetzal packageSet API Key
QUETZAL_API_KEY
to your Quetzal API Key. Your
API Key can be found on your project
dashboardUpdate quetzal.config.json
paths
so that it
points to the directories with the code you plan to localize. Update parser
to i18next-parser
Set Up next-intl provider
next-intl
package to inject translations in your app,
and so your app needs to use the NextIntlClientProvider
This will look something like:Set up next-intl plugin
NextIntlPlugin
from next-intl
into your next.config file.npx 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.