Socket
Book a DemoInstallSign in
Socket

gtai

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtai

CLI tool for Google Translate Advanced LLM

1.2.6
latest
Source
npmnpm
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Google Translate AI CLI

A CLI interface for Google Translate LLM using the Advanced Translation V3 API with support for custom glossaries and file translation.

Features

  • 🌐 LLM-powered text translation with language pairs
  • 📚 Custom glossary support for domain-specific translations
  • ⚙️ Persistent settings
  • 📄 File translation (TXT and MD files; PDF support coming soon)

Setup

1. Bun Runtime

Install Bun. The CLI uses the Bun API and does not support Node.js runtime.

2. Google Cloud Project

  • Create a project on Google Cloud.
  • Enable billing for your project.
  • Enable the Cloud Translation API and Cloud Storage API (APIs & Services → Library).

3. Google Cloud Storage Bucket

(Optional) The Google Translation API requires glossaries to be uploaded to Google Cloud Storage. If you intend to use glossaries, you need to create a storage bucket.

  • Cloud Storage → Buckets → Create bucket (default settings are fine).

Note: your glossaries needs to be in unidirectional format. Equivalent term sets are not supported.

4. Service Account

  • Create a service account (IAM & Admin → Service Accounts → Create service account).
  • Add the following roles: Cloud Translation API Editor (roles/cloudtranslate.editor) and Storage Admin (roles/storage.admin).

5. Authentication Key

  • Click on your service account and navigate to the Keys tab.
  • Add key → Create new key → JSON.
  • Download the JSON key file and save it as service-account.json.
  • Place your service account key in your working directory (where you launch gtai).

Usage

bunx gtai@latest

Follow the interactive prompts to configure your translation settings and start translating.

Keywords

translate

FAQs

Package last updated on 14 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.