Skip to content

Export for i18next

Export explicitly to a directory (pretty-print with --format):

Terminal window
collingo export i18next -d <dir> [--format]

With a workspace template, set kind to i18next and directory (for example src/locales) in .collingo.json, then run collingo export. See Configuration. Use collingo env to verify the resolved project, template kind, and export directory.

For each language in the Collingo project, the export creates <locale>/translation.json (for example de-DE/translation.json). Keys in the JSON are Collingo group paths plus the entry technical name (for example base.footer.labelCopyright).

For a full walkthrough (Vite, i18next.ts, useTranslation, and optional i18next-http-backend), see Setup with React and i18next.