Show HN: DragomanD – local language translator for Linux
12 hours ago
- Dragomand 是一个面向用户的 Linux 守护进程,通过 D-Bus 为桌面应用程序提供离线机器翻译,使用来自 Firefox Translations 的 Mozilla Bergamot/Marian 模型。
- 首次翻译调用会下载模型(通过 SHA-256 验证),并通过 D-Bus 激活启动守护进程;之后翻译完全离线,守护进程空闲时退出。
- 它是一项共享服务,为所有应用程序提供统一的 D-Bus API,每个模型只加载一次以节省内存,并使用来自 Firefox Remote Settings 的相同当前模型。
- 隐私至关重要:文本永不离开本机,网络仅用于下载模型,并且仅在请求时检查更新。
- 0.1.0 版本包含 dragomanctl、按需安装模型、带内存压力淘汰的 LRU 保持唤醒、KRunner/GNOME Shell 集成、LibreOffice 扩展和 KTextEditor 插件,保加利亚语-英语为首个端到端语言对。