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/glotto
Alternatively, run Glotto directly without installation:
deno run -A jsr:@ibodev/glotto
Install Glotto globally via npm to use it as a CLI tool:
npm install --global glotto
After installation, the glotto
command will be available in your terminal.
Run Glotto directly using npx without installation:
npx glotto
You can use Glotto AI Translator in two ways:
glotto --key <your-api-key> -i en.json -o ar.json -f English -t Arabic -k 4
glotto --key <your-api-key> --input=en.json --output=tr.json --from=English --to=Turkish --maxkeys=10
--key
: Your API key for the translation service--input
or-i
: Source JSON file--output
or-o
: Target JSON file--from
or-f
: Source language--to
or-t
: Target language--maxkeys
or-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=10
To create a production build:
deno task build
Contributions are welcome! Feel free to submit issues and pull requests.
MIT Licence @ 2025