Skip to content

ibodev1/glotto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Global Installation

Install Glotto globally to use it as a CLI tool from anywhere:

deno install --global --name glotto -A jsr:@ibodev/glotto

Direct Execution

Alternatively, run Glotto directly without installation:

deno run -A jsr:@ibodev/glotto

Global Installation

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.

Direct Execution

Run Glotto directly using npx without installation:

npx glotto

Usage

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 4

Extended Usage

glotto --key <your-api-key> --input=en.json --output=tr.json --from=English --to=Turkish --maxkeys=10

Parameters

  • --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

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=10

Building the Project

To create a production build:

deno task build

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.

License

MIT Licence @ 2025

About

A tool for translating i18n JSON files using AI services.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published