{"id":21971215,"url":"https://github.com/xcodebuild/gtrans","last_synced_at":"2025-10-10T04:10:25.581Z","repository":{"id":19911377,"uuid":"23177007","full_name":"xcodebuild/gtrans","owner":"xcodebuild","description":"VIm 的谷歌翻译插件(A google translater for vim)","archived":false,"fork":false,"pushed_at":"2014-08-22T09:08:47.000Z","size":164,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T23:09:31.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xcodebuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-21T06:40:50.000Z","updated_at":"2021-01-29T15:21:15.000Z","dependencies_parsed_at":"2022-08-24T17:51:01.041Z","dependency_job_id":null,"html_url":"https://github.com/xcodebuild/gtrans","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xcodebuild/gtrans","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fgtrans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fgtrans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fgtrans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fgtrans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcodebuild","download_url":"https://codeload.github.com/xcodebuild/gtrans/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fgtrans/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002692,"owners_count":26083442,"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-10-10T02:00:06.843Z","response_time":62,"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-29T14:49:27.800Z","updated_at":"2025-10-10T04:10:25.554Z","avatar_url":"https://github.com/xcodebuild.png","language":"Python","readme":"# gtrans\n\n## Introduction 介绍\n\ngtrans is a vim plugin which allow you to translate words or sentences by using Google Translate.\n\ngtrans 是一个基于 Google Translate 的 vim 插件，可以翻译词语和句子。\n\n## Requirements 要求\n\n- vim compiled with python (+python option) \n\n    包含 python 支持的 vim\n\n## Install 安装\n\n`Plugin 'CodeFalling/gtrans'` \n\n## Variables 变量\n\n    let g:gtrans_input_language = 'en'      # 要翻译的语言，默认为英文\n    let g:gtrans_output_language = 'zh-CN'  # 翻译为，默认为简体中文\n\n## Usage 使用\n\nAdd below to your .vimrc to bind key \n\n将下面的代码加入你的  .vimrc 以绑定按键\n\n```\nnmap \u003cC-t\u003e :Gtrans\u003cCR\u003e\nimap \u003cC-t\u003e \u003cESC\u003e:Gtrans\u003cCR\u003ei\nvmap \u003cC-t\u003e :call Gtrans()\u003cCR\u003e\n```\n\n## Features 特性\n\n- Show result with new window. \n\n用一个弹出窗口显示翻译结果\n\n- Auto exit Vim when only translate window \n\n当只剩下翻译窗口时自动退出 Vim\n\n## ScreenShot 截屏\n\n![word](http://falling-static.qiniudn.com/v0.2gtrans.jpg.jpg)\n\n![sentence](http://falling-static.qiniudn.com/v0.2gtrans_sen.jpg.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcodebuild%2Fgtrans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcodebuild%2Fgtrans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcodebuild%2Fgtrans/lists"}