diff --git a/CHANGELOG.md b/CHANGELOG.md index e564b56..8764e5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [0.2.6] +- 支持固定时双击选词翻译 - 托盘菜单模式选项显示当前模式 - ![tran-mode](https://cdn.jsdelivr.net/gh/Borber/PublicPic1/tran/v1/tran-mode.png) diff --git a/README.md b/README.md index 6a244df..febf365 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ - 选中文本之后, 快速按下快捷键 `CapsLock` 键 **两次**. 你可以通过点击其他地方使 `Tran` 失去焦点, 自动关闭 - 双击 CapsLock. 我知道这可能会一些非常出色的工具产生不可调和的快捷键冲突, 在此提前抱歉. - 多次翻译 - - 在单次翻译之后, 拖动翻译面板, 使 `Tran` 自动固定 - - 固定面板后, 依次选中其它文本 `Tran` 将自动翻译, 无需按快捷键 + - 在单次翻译之后, 拖动翻译面板, 使 `Tran` 固定 + - 固定面板后, 双击单词或选中长文本 `Tran` 将自动翻译 - 选中面板, 按 `Esc` 键关闭 - 复制译文 - 双击翻译结果即可将译文到剪切板 @@ -105,6 +105,8 @@ vercel proxy google translate +- 仅消耗流量, 不消耗函数运行次数 + [![vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/Borber/v2g) > 因 vercel 默认域名无法直接访问, 如果您没有域名,可以提 issue , 我将提供域名供您绑定。 diff --git a/README_EN.md b/README_EN.md index fe5cd92..e945a26 100644 --- a/README_EN.md +++ b/README_EN.md @@ -58,8 +58,8 @@ If you are a Chinese user but need to read in English, you can choose the instal - single translation - After selecting the text, quickly press the `CapsLock` key **twice**. You can make `Tran` lose focus and close automatically by clicking elsewhere. - Multiple translations - - After a single translation, drag the translation panel to make `Tran` automatically fixed - - After fixing the panel, select other texts in turn and `Tran` will be automatically translated without pressing shortcut keys. + - After a single translation, drag the translation panel to make `Tran` fixed + - After pinning the panel, double-click a word or select long text `Tran` will be automatically translated - Double-click the translation result to save the translation to the clipboard ## Recommend @@ -102,6 +102,8 @@ More mirrors can support more people, so you are encouraged to create mirrors. vercel proxy google translate +- Only consumes traffic, not the number of function runs + [![vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/Borber/v2g) > Because the default domain name of vercel cannot be directly accessed in China, if you do not have a domain name, you can raise an issue and I will provide a domain name for you to bind. diff --git a/package.json b/package.json index 884e81f..1db48f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tran", - "version": "0.2.5", + "version": "0.2.6", "description": "简洁, 快速, 划词翻译", "type": "module", "scripts": { diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 27ac1d2..739253a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tran" -version = "0.2.5" +version = "0.2.6" description = "Tran translate the selected words" authors = ["Borber"] license = "MIT" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index ca8416c..0867cbf 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "productName": "Tran", - "version": "0.2.5", + "version": "0.2.6", "identifier": "com.borber.tran", "build": { "beforeDevCommand": "pnpm dev", diff --git a/src/App.tsx b/src/App.tsx index 2edb383..c70030f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -89,7 +89,7 @@ const App = () => { await fetch("https://key.borber.top/TRAN_VERSION").then( async (resp) => { const version = await resp.text() - Update(version != "0.2.5") + Update(version != "0.2.6") } ) })