{"id":13496044,"url":"https://github.com/sainnhe/tmux-translator","last_synced_at":"2025-05-14T14:32:49.753Z","repository":{"id":46233102,"uuid":"275269499","full_name":"sainnhe/tmux-translator","owner":"sainnhe","description":"Tmux translation plugin powered by popup window.","archived":false,"fork":false,"pushed_at":"2022-12-16T03:00:46.000Z","size":13,"stargazers_count":23,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T21:44:27.863Z","etag":null,"topics":["google-translate","tmux","tmux-plugins","translate","translation"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/sainnhe.png","metadata":{"files":{"readme":"README-zh.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}},"created_at":"2020-06-27T00:05:21.000Z","updated_at":"2025-03-23T03:25:50.000Z","dependencies_parsed_at":"2023-01-29T07:45:16.897Z","dependency_job_id":null,"html_url":"https://github.com/sainnhe/tmux-translator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainnhe%2Ftmux-translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainnhe%2Ftmux-translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainnhe%2Ftmux-translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainnhe%2Ftmux-translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sainnhe","download_url":"https://codeload.github.com/sainnhe/tmux-translator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160648,"owners_count":22024574,"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":["google-translate","tmux","tmux-plugins","translate","translation"],"created_at":"2024-07-31T19:01:41.401Z","updated_at":"2025-05-14T14:32:49.508Z","avatar_url":"https://github.com/sainnhe.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"![](https://gitlab.com/sainnhe/img/-/raw/master/translator.png)\n\n# 安装\n\n## 依赖\n\n- tmux \u003e= 3.2\n- [skywind3000/translator#requirements](https://github.com/skywind3000/translator#requirements)\n\n## 通过 [TPM](https://github.com/tmux-plugins/tpm/) 安装\n\n把这一行添加到 `~/.tmux.conf`\n\n```tmux\nset -g @plugin 'sainnhe/tmux-translator'\n```\n\n重新加载配置，然后按 `prefix` + `I`\n\n# 使用方法\n\n进入 Copy Mode 选中一些文本，然后按 `t` 即可翻译，按回车或 Ctrl-C 退出翻译窗口。\n\n你可以通过以下选项来定制这个插件：\n\n```tmux\n# 触发划词翻译的键\nset -g @tmux-translator \"t\"\n\n# 浮动窗口宽度\nset -g @tmux-translator-width \"38%\"\n\n# 浮动窗口高度\nset -g @tmux-translator-height \"38%\"\n\n# 从什么语言翻译\nset -g @tmux-translator-from \"en\"\n\n# 翻译到什么语言\nset -g @tmux-translator-to \"zh\"\n\n# 翻译引擎\nset -g @tmux-translator-engine \"google\"\n# 多个翻译引擎\nset -g @tmux-translator-engine \"google|ciba|youdao\"\n```\n\n这里列出了所有可用引擎：[skywind3000/translator#engines](https://github.com/skywind3000/translator#engines)\n\n# 更多插件\n\n- [sainnhe/tmux-fzf](https://github.com/sainnhe/tmux-fzf): 用 FZF 管理 tmux sessions, windows, panes 等等。\n\n# 许可\n\n`/engine` 目录下的代码参考 [skywind3000/translator](https://github.com/skywind3000/translator)\n\n其余部分的代码以 [MIT](./LICENSE) 许可分发。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainnhe%2Ftmux-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsainnhe%2Ftmux-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainnhe%2Ftmux-translator/lists"}