Web integration
autoglot provides two npm packages for translating web projects. Use @autoglot/next for automatic Next.js integration, or @autoglot/cli for any JavaScript project or CI pipeline.
@autoglot/next
Wrap your Next.js config — translations run automatically on every production build
@autoglot/cli
CLI tool and library for translating JSON, YAML, and PO files
Two approaches
You can either generate translations at build time (recommended for teams) or commit them via GitHub Actions.
| Approach | How it works | Git conflicts? |
|---|---|---|
| Build-time | Translations generated during build, gitignored | Never |
| GitHub action | Translations committed via PR or direct push | Possible |
Supported formats
JSON (.json), YAML (.yml, .yaml), and PO/POT (.po, .pot) files. Works with i18next, next-intl, react-intl, and any library that reads standard locale files.