A lightweight, native macOS menu bar translator.
Press a shortcut, translate instantly — without leaving what you're doing.
English | 中文
- Instant popover — a global shortcut opens a warm, focused popover from the menu bar; the result appears without switching apps.
- Two engines in parallel — Google Translate plus any OpenAI-compatible LLM (OpenAI, DeepSeek, OpenRouter, or a self-hosted endpoint), each translating, failing, and retrying independently.
- Smart direction detection — Han-script input resolves to Chinese → English, everything else to English → Chinese; override or swap with one click.
- Clipboard read only when you ask — only the shortcut reads it: up to 500 characters translates immediately, longer text waits for your Enter; menu-bar clicks never read the clipboard.
- Settings that cover it — custom shortcut, Google / LLM groups each with a translation-window visibility switch, per-provider connection tests, LLM prompt presets, launch at login.
- Keys in the Keychain only — never in preferences, logs, or request URLs; no analytics, no telemetry; remote LLM endpoints must use HTTPS (localhost allowed for local models).
- Small and native — pure Swift, no Electron, no WebView: ~2.2 MB to download and ~4 MB installed, with no background polling or telemetry.
- Spends nothing behind your back — clipboard translation is bound to the shortcut, so unrelated copies never trigger a paid request.
- One failure isn't total failure — one provider's error never invalidates what the other already returned.
- Download
Loquat-macOS.zipfrom GitHub Releases and verifySHA256SUMS(shasum -a 256 -c SHA256SUMS). - Unzip it and drag
Loquat.appinto/Applications. - Try Control-click (or right-click)
Loquat.app→ Open. - If macOS still blocks it, open System Settings → Privacy & Security → Open Anyway.
- Only if both UI paths fail, run
xattr -dr com.apple.quarantine /Applications/Loquat.appas a last resort.
The published release is ad-hoc signed and not notarized. These steps let Gatekeeper open this specific downloaded app; they bypass Gatekeeper for it and do not verify notarization. Download the artifact only from GitHub Releases and verify SHA256SUMS before bypassing Gatekeeper. Never disable Gatekeeper globally.
- Click the menu-bar icon, right-click → Settings (or press
⌘,). - Add at least one provider:
- Google — paste a Google Cloud Translation API key.
- LLM — paste an API key and Base URL. Other OpenAI-compatible endpoints require a model name; OpenRouter may leave it blank to use
openrouter/free.
- Record a global shortcut.
- (Optional) enable Translate Clipboard When Opened by Shortcut — it appears once a shortcut is set.
- Press the shortcut to open the popover, then type, or let the clipboard fill it in.
- Go to Google Cloud Console and create or select a project.
- Enable the Cloud Translation API (requires a billing account).
- Open APIs & Services → Credentials → Create credentials → API key.
- (Recommended) restrict the key to the Cloud Translation API.
- Copy the key and paste it into Loquat → Settings → Google → API Key.
| Action | Shortcut |
|---|---|
| Open popover | your global shortcut (set in Settings; the Delete key clears it) |
| Open Settings | right-click the menu-bar icon → Settings |
The release is ad-hoc signed and not notarized, so macOS may flag it. First try Control-click → Open, then System Settings → Privacy & Security → Open Anyway. If both fail, xattr -dr com.apple.quarantine /Applications/Loquat.app is the last fallback — it bypasses Gatekeeper for this app and does not verify notarization. Download the ZIP only from GitHub Releases, delete the quarantined copy, and verify SHA256SUMS before proceeding.
In the macOS file-based Keychain, under com.instanttranslation.macos.credentials.v3. Keys are never written to UserDefaults, logs, or request URLs.
Older releases used the v1/v2 Keychain services. Loquat never reads, migrates, updates, or deletes those old items, so they keep their previous authorization behavior. Enter each credential once in Settings after installing; you may remove the old items manually in Keychain Access after confirming the new ones work.
Loquat does not read Keychain at startup; prompts, if any, happen only after you open Settings or submit a translation — choose Allow or Always Allow to store and read your API keys. The legacy macOS Keychain ACL may also ask for access again after you replace the app with a newer ad-hoc build; that is expected and separate from Gatekeeper. Loquat does not need Documents access for this workflow.
Google and LLM credentials are separate Keychain items, so macOS may ask once for each item when authorization is required. Two dialogs do not mean duplicate keys were created or that Loquat can access the entire Keychain.
git clone git@github.com:Moolan-d/Loquat.git
cd Loquat
swift test # run the test suite
swift run InstantTranslation # run from source
bash scripts/package-app.sh # build ad-hoc-signed build/Loquat.app
bash scripts/package-release.sh # build/release/Loquat-macOS.zip + SHA256SUMSNo certificate, Team ID, provisioning profile, or notarization credentials are required. package-release.sh prints the final ZIP path after verifying its checksum.

