V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
ShikiSuen
V2EX  ›  iDev

macOS 内建的右键选单翻译功能有没有对应的 API?

  •  
  •   ShikiSuen · 247 天前 · 1159 次点击
    这是一个创建于 247 天前的主题,其中的信息可能已经有所发展或是发生改变。

    这翻译品质能跟 DeepL 有一拼,但是只能一段一段地翻译。 我想写个自己私用的 App 、利用这个 API 实现整段文章翻译。 但问题是这个 API 有没有还很难讲,所以就先上来问一下。 (我用 macOS 13 没发现与这个功能有关的系统内建独立应用,只能从右键选单叫出来、或者 Safari 整页翻译。)

    7 条回复    2023-08-26 14:34:14 +08:00
    ShikiSuen
        1
    ShikiSuen  
    OP
       247 天前
    喔我找到整篇翻译了:也在右键选单内,只不过不太显眼。
    touchmii
        2
    touchmii  
       247 天前
    啥意思没有听明白, 右键选单翻译? 如果是鼠标右键菜单栏翻译只能放到二级菜单服务里面, 使用 workflow 的方式可以.
    ShikiSuen
        3
    ShikiSuen  
    OP
       247 天前
    @touchmii 对。但我想知道这个翻译服务有没有 Swift API 。
    touchmii
        4
    touchmii  
       247 天前
    @ShikiSuen 应该是没有, 不过有个折中的方式使用捷径调取, 就是经常会失败, Bob 这款翻译软件就是这么做的.
    goodryb
        5
    goodryb  
       247 天前
    easydict 也很好用, 浏览器的话一般划词翻译扩展够用了
    bybyte
        6
    bybyte  
       246 天前
    借一下楼,浏览器悬词翻译插件,https://github.com/golangboy/fasttranslate
    7v9TEc53
        7
    7v9TEc53  
       246 天前
    可以但比较麻烦,要用私有 API ,而且得把 SIP 禁用掉
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3238 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 11:49 · PVG 19:49 · LAX 04:49 · JFK 07:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.