Hotkey: translate your clipboard

fulton · copycat ●●○

Copy foreign text, press a hotkey, get a translation with the detected language. Uses structured output so the result is always clean JSON.

$ fulton --key "cmd+shift+t" --exec \ "copycat read public.utf8-plain-text | llm -m apple \ 'detect the language and translate to English' \ --schema '{\"type\":\"object\",\"properties\":{\"language\":{\"type\":\"string\"},\"translation\":{\"type\":\"string\"}},\"required\":[\"language\",\"translation\"]}'"
{"language":"French", "translation":"The President has announced a new economic plan to boost growth. The measures include tax cuts for small businesses and an investment of 50 billion euros."}
Requires: fulton, copycat, llm