Glotto is a powerful tool designed to translate i18n JSON files using advanced AI technology. It streamlines the localization process by automatically translating your language files to any target language while maintaining the JSON structure.
- Translate JSON files while preserving the original structure
- Support for multiple language pairs
- Configurable batch processing with customizable key limits
- Command-line interface for easy integration into your workflow
Glotto can be installed and used through either JSR (Deno) or npm. Choose the method that best suits your development environment.
Install Glotto globally to use it as a CLI tool from anywhere:
deno install --global --name glotto -A jsr:@ibodev/glottoAlternatively, run Glotto directly without installation:
deno run -A jsr:@ibodev/glottoInstall Glotto globally via npm to use it as a CLI tool:
npm install --global glottoAfter installation, the glotto command will be available in your terminal.
Run Glotto directly using npx without installation:
npx glottoYou can use Glotto AI Translator in two ways:
glotto --key <your-api-key> -i en.json -o ar.json -f English -t Arabic -k 4glotto --key <your-api-key> --input=en.json --output=tr.json --from=English --to=Turkish --maxkeys=10--key: Your API key for the translation service--inputor-i: Source JSON file--outputor-o: Target JSON file--fromor-f: Source language--toor-t: Target language--maxkeysor-k: Maximum number of keys to process in each batch
To run the project in development mode:
deno task cli --key <your-api-key> --input=en.json --output=tr.json --from=English --to=Turkish --maxkeys=10To create a production build:
deno task buildContributions are welcome! Feel free to submit issues and pull requests.
MIT Licence @ 2025