Repository navigation
v0.1.6 — Configurable translation languages
Configurable translation languages
Set Preferred target (target_language) and Secondary language (secondary_language) in Configure Workflow. Text translates to the preferred target; if the detected source matches that language, it translates to the secondary language instead. Choose two different codes: zh, en, ja, ko, fr, de, es, it, pt, ru, ar.
Defaults remain zh/en. Explicit prefixes such as :fr override both settings.
With en/ja, ed 你好 → Hello, ed hello → こんにちは, and ed :fr hello → Bonjour.
Both settings are included in the cache key so a configuration change does not reuse translations for a different language pair. Invalid settings return configuration guidance.
Youdao definitions and prefix suggestions remain English–Chinese and can be disabled separately by removing Youdao from providers. UI hints remain primarily Chinese.
Installation
Requires macOS, Alfred 5 with Powerpack, and Node.js 18+. Download the .alfredworkflow asset below and double-click to import/update. Preserve workflow customisations when updating.
Updated Chinese and English documentation is included. Online translation requires network access; no translation API key or running Easydict/Raycast app is required.
Validation: 22 Node tests and 4 Python tests passed; live Google and detached-worker checks passed. Local Alfred import confirmed v0.1.6 and both language settings. Bing live requests remain unverified.
MIT licensed; portions adapted from Raycast Easydict, credited in THIRD_PARTY.md. Developed with AI assistance.