{"id":20355203,"url":"https://github.com/utahta/trans","last_synced_at":"2025-06-21T23:04:15.044Z","repository":{"id":57487210,"uuid":"119264427","full_name":"utahta/trans","owner":"utahta","description":"Google Translate CLI written in Go","archived":false,"fork":false,"pushed_at":"2023-02-25T04:05:51.000Z","size":2543,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T23:03:30.129Z","etag":null,"topics":["go","golang","google","translate"],"latest_commit_sha":null,"homepage":"","language":"Go","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/utahta.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":"2018-01-28T14:13:11.000Z","updated_at":"2023-02-23T06:49:11.000Z","dependencies_parsed_at":"2025-04-12T02:59:52.415Z","dependency_job_id":null,"html_url":"https://github.com/utahta/trans","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/utahta/trans","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utahta%2Ftrans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utahta%2Ftrans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utahta%2Ftrans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utahta%2Ftrans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utahta","download_url":"https://codeload.github.com/utahta/trans/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utahta%2Ftrans/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261206091,"owners_count":23124835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","golang","google","translate"],"created_at":"2024-11-14T23:11:40.796Z","updated_at":"2025-06-21T23:04:10.016Z","avatar_url":"https://github.com/utahta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trans\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/utahta/trans)](https://goreportcard.com/report/github.com/utahta/trans)\n\nGoogle Translate CLI written in Go.\n\n## Required\n\nYou must first set up authentication by creating a API Key or service account of GCP.\n\n### API Key\n\nThe API Key documentation can be found [here](https://cloud.google.com/translate/docs/auth#using_an_api_key).\n\nSet the environment variable `TRANS_API_KEY` to the API Key.\n\n### Or Service Account\n\nThe service account documentation can be found [here](https://cloud.google.com/iam/docs/creating-managing-service-accounts).\n\nSet the environment variable `GOOGLE_APPLICATION_CREDENTIALS` to the file path of the JSON file that contains your service account key.\n\n## Note\n\nYou need a little bit of money to use google translate API.  \ne.g. it costs $0.06 for 2889 characters.\n\n## Installation\n\n```sh\n$ go get -u github.com/utahta/trans/cmd/trans\n```\n\n## Usage\n\n```sh\n$ trans -t en こんにちは\nHello\n```\n```sh\n$ trans -t ja this is a pen\nこれはペンです\n```\n```sh\n$ trans -t ja -r \"this is a pen\"\nこれはペンです\nthis is a pen\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futahta%2Ftrans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futahta%2Ftrans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futahta%2Ftrans/lists"}