{"id":20052415,"url":"https://github.com/hyperjiang/translate","last_synced_at":"2025-08-01T13:13:06.679Z","repository":{"id":126841747,"uuid":"376300049","full_name":"hyperjiang/translate","owner":"hyperjiang","description":"Translation tool and file converter","archived":false,"fork":false,"pushed_at":"2021-07-27T16:08:24.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T08:46:02.324Z","etag":null,"topics":[],"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/hyperjiang.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}},"created_at":"2021-06-12T13:44:59.000Z","updated_at":"2021-07-27T16:08:27.000Z","dependencies_parsed_at":"2023-06-18T07:07:17.395Z","dependency_job_id":null,"html_url":"https://github.com/hyperjiang/translate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hyperjiang/translate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjiang%2Ftranslate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjiang%2Ftranslate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjiang%2Ftranslate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjiang%2Ftranslate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperjiang","download_url":"https://codeload.github.com/hyperjiang/translate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjiang%2Ftranslate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268229879,"owners_count":24217017,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":"2024-11-13T12:17:34.284Z","updated_at":"2025-08-01T13:13:06.644Z","avatar_url":"https://github.com/hyperjiang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# translate\n\n[![](https://goreportcard.com/badge/github.com/hyperjiang/translate)](https://goreportcard.com/report/github.com/hyperjiang/translate)\n[![License](https://img.shields.io/github/license/hyperjiang/translate.svg)](https://github.com/hyperjiang/translate)\n\nThis is a tool for translation and file format converting.\n\nFor file format, we currently support `json`, `yaml`, `properties` and `typescript`.\n\nFor translation client, we currently use Aliyun machine translation.\n\n## Installation\n\n```\ngo get -u github.com/hyperjiang/translate\n```\n\n## File converter\n\n```\ntranslate file -i \"input-file\" -o \"output-file\"\n```\n\n## Translator\n\nFor translation, we only support simple single-layer key-value format, e.g.\n\n```\n{\n    \"key1\": \"value1\",\n    \"key2\": \"value2\",\n}\n```\n\nor\n\n```\nkey1: value1\nkey2: value2\n```\n\nor\n\n```\nkey1=value1\nkey2=value2\n```\n\n### Use Aliyun machine translation\n\nSetup environment variables:\n\n```\nexport ALI_REGION_ID=\"cn-hangzhou\"\nexport ALI_ACCESS_KEY_ID=\"your-key\"\nexport ALI_ACCESS_SECRET=\"your-secret\"\n```\n\n```\ntranslate aliyun -i \"input-file\" -o \"output-file\" -s source-language -t target-language\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperjiang%2Ftranslate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperjiang%2Ftranslate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperjiang%2Ftranslate/lists"}