tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
6.68k stars 338 forks source link

🚀 功能建议:希望增加 Amazon translate 的 API #417

Open brilliantwf opened 5 months ago

brilliantwf commented 5 months ago

请先确认以下事项

功能描述

希望增加 Amazon translate 的 API

使用场景

希望增加 Amazon translate 的 API,Amazon translate在特定场景翻译效果不错

实现方案(可选)

https://aws.amazon.com/cn/translate/

是否愿意提交 PR 实现该功能

github-actions[bot] commented 5 months ago

Hello brilliantwf, Thank you for your first issue contribution 🎉

tisfeng commented 5 months ago

可以加,但我很少使用 Amazon 的服务,看你勾选了这个,你要来提交 PR 吗?

image
brilliantwf commented 5 months ago

可以加,但我很少使用 Amazon 的服务,看你勾选了这个,你要来提交 PR 吗?

image

我对 swift 不熟,可能没法直接贡献pr,但是我可以提供例子代码和测试.

  1. 官方 API 参考:https://awslabs.github.io/aws-sdk-swift/reference/0.x/AWSTranslate/Home
  2. 类似例子代码:https://github.com/adam-fowler/soto/blob/42e1cbecf0afeb4c73fa5bce2f91496bd8f777c9/Sources/AWSSDKSwift/Services/Translate/Translate_API.swift#L3
  3. 需要测试可以联系我
tisfeng commented 5 months ago

简单了解一下,Amazon 好像只提供 12 个月的免费额度,并且之后翻译价格是每百万字符 15.00 USD,相比 Easydict 已有的其他服务好像没有什么优势 😓

目前我们有其他更优先的任务需要处理,这个暂时先放一下,欢迎 PR。

https://aws.amazon.com/cn/translate/pricing/

image