glotto
v1.0.2
Published
A tool for translating i18n JSON files using AI services.
Downloads
72
Readme
Glotto AI Translator
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.
Features
- 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
Installation
Glotto can be installed and used through either JSR (Deno) or npm. Choose the method that best suits your development environment.
JSR (Deno)
Global Installation
Install Glotto globally to use it as a CLI tool from anywhere:
deno install --global --name glotto -A jsr:@ibodev/glottoDirect Execution
Alternatively, run Glotto directly without installation:
deno run -A jsr:@ibodev/glottonpm (Node)
Global Installation
Install 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.
Direct Execution
Run Glotto directly using npx without installation:
npx glottoUsage
You can use Glotto AI Translator in two ways:
Basic Usage
glotto --key <your-api-key> -i en.json -o ar.json -f English -t Arabic -k 4Extended Usage
glotto --key <your-api-key> --input=en.json --output=tr.json --from=English --to=Turkish --maxkeys=10Parameters
--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
Development
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=10Building the Project
To create a production build:
deno task buildContributing
Contributions are welcome! Feel free to submit issues and pull requests.
License
MIT Licence @ 2025
