Dictionary translator

approved

by Grover

Helps you to quickly underline word translations and insert word cards in your notes.

24 stars2,614 downloadsUpdated 1y agoMIT
View on GitHub

Obsidian-Dictionary-translator

English Doc

我能帮你做什么?

这是一个简单的插件,帮助你在完成你的知识库的同时可以快速的翻译陌生的单词或句子,并将其生成单词卡插入笔记本中。 此外,你还可以将翻译引擎的发音文件保存到你的vault,如果你想,你也可以录制自己的发音。

如何使用

  1. 配置翻译引擎 setting.png
  2. 右键划词翻译 (你可以录制自己的发音) translator.gif

翻译引擎支持

  • 有道翻译

    2024-04-23
    由于有道文本翻译接口返回内容更新,依赖的词典相关数据缺失,导致插件体验不完整,只能展示基础的释义链接基础发音等。

  • 百度智能云翻译
  • 谷歌翻译
  • 微软翻译

自定义翻译引擎

  1. 自定义策略类: 实现TranslationStrategy抽象类
  2. TranslateEngines中添加自定义的策略类
    1. 请求自定义的翻译引擎
    2. 解析响应结果,封装为TranslateResponse类型的响应
  3. 为你的翻译引擎在setting.ts中添加独特的配置项

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.