Files
chrome_plus_Transly/README.md
2026-03-29 20:17:45 +08:00

37 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Transly极简 Chrome 直译插件)
## 本次界面更新
- popup 重做为轻量卡片布局,强化主操作按钮层级与状态反馈。
- options 重做为双分区配置面板,输入焦点、保存态与提示信息更清晰。
- 新增扩展图标:`icons/icon16.png``icons/icon32.png``icons/icon48.png``icons/icon128.png`
## 配置入口
- 入口1点击浏览器工具栏里的 Transly 图标,在弹窗点 `打开配置(模型/API`
- 入口2`chrome://extensions` -> Transly -> `扩展程序选项`
- 首次安装会自动打开配置页
- 配置页支持 `测试连接`(校验 API Key/Model`清除配置`(删除浏览器已保存配置)
## 需要填写
- `API Base URL`:例如 `https://api.openai.com`
- `API Key`:你的密钥
- `Model`:例如 `gpt-4o-mini`
- `目标语言`:默认 `zh-CN`
## 存储说明
- `baseUrl/model/targetLang` 存在 `chrome.storage.sync`
- `apiKey` 存在 `chrome.storage.local`(不走跨设备同步,更安全)
## 使用
- 选中文本后:
- 右键 `Transly: 翻译选中文本`,或
- 点击插件弹窗里的 `翻译选中文本`
- 整页翻译:弹窗点 `整页翻译(随滚动)`
- 只翻译当前可视区域
- 向下滚动时自动继续翻译新进入可视区域的文本
- 恢复原文:弹窗点 `恢复原文`
## 加载方式
1. 打开 `chrome://extensions`
2. 开启“开发者模式”
3. 点击“加载已解压的扩展程序”并选择本目录