{"id":19198267,"url":"https://github.com/borber/tran","last_synced_at":"2025-05-09T00:57:53.521Z","repository":{"id":206459583,"uuid":"716501182","full_name":"Borber/Tran","owner":"Borber","description":"简洁, 快速, 划词翻译","archived":false,"fork":false,"pushed_at":"2025-05-06T07:30:06.000Z","size":1665,"stargazers_count":564,"open_issues_count":27,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-09T00:57:44.341Z","etag":null,"topics":["rust","solidjs","tauri","translation"],"latest_commit_sha":null,"homepage":"https://tran.borber.top","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Borber.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-11-09T09:19:10.000Z","updated_at":"2025-05-06T13:59:53.000Z","dependencies_parsed_at":"2023-11-10T11:18:30.585Z","dependency_job_id":"8215f12a-3557-44ab-bce4-f54bde055559","html_url":"https://github.com/Borber/Tran","commit_stats":null,"previous_names":["borber/tran"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borber%2FTran","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borber%2FTran/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borber%2FTran/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borber%2FTran/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Borber","download_url":"https://codeload.github.com/Borber/Tran/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171250,"owners_count":21865290,"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":["rust","solidjs","tauri","translation"],"created_at":"2024-11-09T12:20:53.887Z","updated_at":"2025-05-09T00:57:53.492Z","avatar_url":"https://github.com/Borber.png","language":"Rust","readme":"\u003ca href=\"https://github.com/Borber/tran\"\u003e\u003cimg width=\"200px\" src=\"https://cdn.jsdelivr.net/gh/Borber/tran/public/icon.png\" align=\"left\"/\u003e\u003c/a\u003e\n\n# Tran\n\n简洁, 快速, 划词翻译\n\n[![EN_README](https://img.shields.io/badge/-EN_README-yellow?color=%2307baf3\u0026style=for-the-badge\u0026logoColor=white)](./README_EN.md)\n[![Rust](https://img.shields.io/badge/-Rust-orange?logo=rust\u0026style=for-the-badge\u0026logoColor=white)](https://www.rust-lang.org/)\n[![Tauri](https://img.shields.io/badge/Tauri-blue?logo=tauri\u0026color=1B1B1D\u0026style=for-the-badge)](https://tauri.app/)\n[![Windows](https://img.shields.io/badge/-Windows-blue?logo=windows\u0026style=for-the-badge\u0026logoColor=white)](https://github.com/Borber/tran/releases)\n[![MacOS](https://img.shields.io/badge/-macOS-black?\u0026logo=apple\u0026style=for-the-badge\u0026logoColor=white)](https://github.com/Borber/tran/releases)\n[![Linux](https://img.shields.io/badge/-Linux-yellow?logo=linux\u0026style=for-the-badge\u0026logoColor=white)](https://github.com/Borber/tran/releases)\n[![LICENSE](https://img.shields.io/github/license/borber/tran?color=%2398cbed\u0026logo=rust\u0026style=for-the-badge)](https://github.com/Borber/tran?tab=GPL-3.0-1-ov-file)\n[![Downloads](https://img.shields.io/github/downloads/Borber/tran/total.svg?style=for-the-badge\u0026color=82E0AA\u0026logo=github)](https://github.com/Borber/tran/releases)\n[![Telegram](https://img.shields.io/badge/-Telegram-yellow?style=for-the-badge\u0026color=25a3e1\u0026logo=telegram)](https://t.me/tran_rust)\n[![Cloudflare](https://img.shields.io/badge/-Cloudflare-yellow?style=for-the-badge\u0026color=555555\u0026logo=cloudflare)](https://www.cloudflare.com/)\n\n\u003e **Keep it simple，stupid.**\n\n# 你好\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Borber/tran\" target=\"_blank\" alt=\"Tran\"\u003e\n        \u003cimg src=\"https://fastly.jsdelivr.net/gh/Borber/PublicPic1/tran/v1/tran.png\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n-   开箱即用\n-   永久免费使用\n-   谷歌翻译镜像\n\n# 如何选择?\n\n\u003cdiv align=\"center\"\u003e\n\n| **To \\ Form** | **ZH** | **JA** |\n| :-----------: | :----: | :----: |\n|    **ZH**     |        |   ✅   |\n|    **EN**     |   ✅   |        |\n|    **JA**     |   ✅   |        |\n\n\u003c/div\u003e\n\n\u003e `Form` 为第一语言, 非第一语言将翻译为第一语言\n\u003e\n\u003e `To` 为第二语言, 第一语言将翻译为第二语言\n\n**Q: 为什么要分别构建, 而不是一个程序支持所有语言呢?**\n\n因为每多一种语言类型, 构建的包就会增大, 若支持大多数语言，程序将增大到数十 m,而这对于仅需要两种语言(~~就是我~~)的人不太友好, 并且也会导致识别语言类型时花费更多的时间. 所以`tran`将分别构建\n\n如果你是中文用户, 但需要进行英语阅读, 则对应的选择 `zh_en` 的安装包即可. 同理选择适合你的安装包, **如果你没有安装 `webview`, 或不知道 `webview` 是什么。 请不要选择 `portable` 版本.**\n\n**如果你有其他语言的需要, 请提 `issue` 我将添加构建**\n\n# 使用\n\n-   单次翻译\n    -   选中文本之后, 快速按下快捷键 `Shift` 键 **两次**. 你可以通过点击其他地方使 `Tran` 失去焦点, 自动关闭\n        -   双击 `Shift`. 我知道这可能会一些非常出色的工具产生不可调和的快捷键冲突, 在此提前抱歉.\n-   多次翻译\n    -   在单次翻译之后, 拖动翻译面板, 使 `Tran` 固定\n    -   固定面板后, 双击单词或选中长文本 `Tran` 将自动翻译\n    -   选中面板， 按 `Esc` 键关闭\n-   复制译文\n    -   双击翻译结果即可将译文到剪切板\n\n## 推荐\n\n推荐安装以下字体:\n\n-   [FiraCode Nerd Font Mono](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/FiraCode.zip)\n-   [LXGW WenKai](https://github.com/lxgw/LxgwWenKai)\n\n## 自动启动\n\n-   [Windows](https://support.microsoft.com/zh-cn/windows/%E5%9C%A8-windows-10-%E4%B8%AD%E6%B7%BB%E5%8A%A0%E5%9C%A8%E5%90%AF%E5%8A%A8%E6%97%B6%E8%87%AA%E5%8A%A8%E8%BF%90%E8%A1%8C%E7%9A%84%E5%BA%94%E7%94%A8-150da165-dcd9-7230-517b-cf3c295d89dd)\n-   [MacOS](https://support.apple.com/zh-cn/guide/mac-help/mh15189/mac)\n-   Linux wiki 是你最好的教程\n\n# 贡献\n\n## 参与开发\n\n### 准备环境\n\n| 工具                                            | 备注       |\n| ----------------------------------------------- | ---------- |\n| [rust](https://www.rust-lang.org/tools/install) | Rust 开发  |\n| [pnpm](https://pnpm.io/installation)            | 前端包管理 |\n| [nodejs](https://nodejs.org/)                   | 前端开发   |\n\n### 提交\n\n1. 如果想新加一个功能, 请先提 `issue`, 讨论一下, 避免无效工作\n2. 对原有功能进行改进\n3. 削减无用的代码, 关闭无用的 `feature`\n4. 使用更轻量的`lib`实现功能\n5. 添加测试与文档\n6. 升级, 更新依赖的提交也会被接受\n\n## 积极使用\n\n理论上，更多人使用则 `tran` 翻译速度会保持在很快的速度，因为 `vercel` 冷启动耗时很长。频繁的请求能使它一直运行。所以鼓励您频繁使用 `tran`. **同理也拜托您推广 `tran`**\n\n## 创建镜像\n\n更多的镜像能支持更多的人使用，所以鼓励您创建镜像。\n\n### [V2G](https://github.com/Borber/v2g)\n\nvercel proxy google translate\n\n-   消耗 Edge Requests\n\n[![vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/Borber/v2g)\n\n\u003e 因 vercel 默认域名无法直接访问, 如果您没有域名,可以提 issue , 我将提供域名供您绑定。\n\n**部署后可 PR 到 [MIRROR](https://github.com/Borber/tran/blob/master/resource/mirror.json) 来贡献你的力量**\n\n# 感谢\n\n-   **[Pot](https://github.com/pot-app/pot-desktop)** : [Selection](https://github.com/pot-app/Selection)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborber%2Ftran","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborber%2Ftran","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborber%2Ftran/lists"}