Skip to content
strouhaljanPublic

About

A lightweight macOS menu bar app for translating selected text with a global keyboard shortcut. Uses Claude Haiku for translation with auto-detected source language. Supports configurable favorite languages, editable source text, and a floating popup that stays out of your way.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Translate

A macOS menu bar app that translates the currently selected text via a global keyboard shortcut, using the Claude API.

  • Default shortcut: ⌃⌘C (Ctrl+Cmd+C) — rebindable from the menu bar
  • Source language: auto-detected
  • Target language: Czech / English, toggleable
  • Model: claude-haiku-4-5-20251001

Run

swift run

On first launch:

  1. The app will prompt for Accessibility permission (System Settings → Privacy & Security → Accessibility). Grant it, then quit and relaunch.
  2. Click the Translate menu bar icon → Settings… → paste your Anthropic API key.

The menu bar icon also lets you change the default target language, trigger a translation, or quit.

Use

  1. Select text in any app.
  2. Press ⌃⌘C.
  3. A floating panel shows the translation. Toggle the target language inside the panel to re-translate. Click Copy to copy the result. Your previous clipboard contents are restored automatically.

Notes

  • The API key is stored in the app's settings (UserDefaults). Set it via the menu bar → Settings….
  • The app sets its activation policy to .accessory so it has no Dock icon.
  • To package as a distributable .app bundle later, wrap the built binary in a bundle with an Info.plist setting LSUIElement = true.

About

A lightweight macOS menu bar app for translating selected text with a global keyboard shortcut. Uses Claude Haiku for translation with auto-detected source language. Supports configurable favorite languages, editable source text, and a floating popup that stays out of your way.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages