{"id":29188674,"url":"https://github.com/phenomen/gtai","last_synced_at":"2026-04-06T03:01:48.290Z","repository":{"id":301566406,"uuid":"1009699164","full_name":"phenomen/gtai","owner":"phenomen","description":"A CLI interface for Google Translate LLM using the Advanced Translation V3 API with support for custom glossaries and file translation","archived":false,"fork":false,"pushed_at":"2025-07-14T14:36:19.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-08T10:49:38.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phenomen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-27T15:02:24.000Z","updated_at":"2025-07-14T14:36:22.000Z","dependencies_parsed_at":"2025-07-07T22:29:38.015Z","dependency_job_id":null,"html_url":"https://github.com/phenomen/gtai","commit_stats":null,"previous_names":["phenomen/gtai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phenomen/gtai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenomen%2Fgtai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenomen%2Fgtai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenomen%2Fgtai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenomen%2Fgtai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phenomen","download_url":"https://codeload.github.com/phenomen/gtai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenomen%2Fgtai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31457724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-01T22:36:39.439Z","updated_at":"2026-04-06T03:01:48.285Z","avatar_url":"https://github.com/phenomen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Translate AI CLI\n\nA CLI interface for **Google Translate LLM** using the [Advanced Translation V3 API](https://cloud.google.com/translate/docs/advanced/translate-text-advance) with support for custom glossaries and file translation.\n\n## Features\n\n- 🌐 LLM-powered text translation with language pairs\n- 📚 Custom glossary support for domain-specific translations\n- ⚙️ Persistent settings\n- 📄 File translation (TXT and MD files; PDF support coming soon)\n\n## Setup\n\n### 1. Bun Runtime\n\n[Install Bun](https://bun.sh/). The CLI uses the Bun API and does not support Node.js runtime.\n\n### 2. Google Cloud Project\n\n- Create a project on [Google Cloud](https://cloud.google.com).\n- Enable billing for your project.\n- Enable the Cloud Translation API and Cloud Storage API (APIs \u0026 Services → Library).\n\n### 3. Google Cloud Storage Bucket\n\n(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.\n\n- Cloud Storage → Buckets → Create bucket (default settings are fine).\n\n**Note:** your glossaries needs to be in [unidirectional format](https://cloud.google.com/translate/docs/advanced/glossary#unidirectional_glossaries). Equivalent term sets are not supported.\n\n### 4. Service Account\n\n- Create a service account (IAM \u0026 Admin → Service Accounts → Create service account).\n- Add the following roles: Cloud Translation API Editor (`roles/cloudtranslate.editor`) and Storage Admin (`roles/storage.admin`).\n\n### 5. Authentication Key\n\n- Click on your service account and navigate to the Keys tab.\n- Add key → Create new key → JSON.\n- Download the JSON key file and save it as `service-account.json`.\n- Place your service account key in your working directory (where you launch `gtai`).\n\n## Usage\n\n```bash\nbunx gtai@latest\n```\n\nFollow the interactive prompts to configure your translation settings and start translating.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenomen%2Fgtai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenomen%2Fgtai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenomen%2Fgtai/lists"}