Repository navigation
Add a Translate window backed by translate-shell - #40
Open
msegoviadev wants to merge 1 commit into
Open
msegoviadev wants to merge 1 commit into
msegoviadev wants to merge 1 commit into
Conversation
Adds the Translate overlay, the translate RPC namespace, the built-in Translate command, the oma-cast translate subcommand, and docs. Shortcut hints use plus signs to match the new window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A two-pane Translate window for oma-cast. It opens from
oma-cast translate [text], the built-in Translate command, theoma-cast:translateshortcut, or IPC. It runstranslate-shelllocally, so there is no API key and no account.Behaviour
trans -id. A successful detection replaces Auto, so the next translation keeps the same source.db/settings.jsonasgeneral.translateTargetLanguage(settings migration 2, default English).wl-copyand closes the window. Esc closes it.translateRPC namespace:getTarget,setTarget,translate,cancel. Text is capped at 8000 characters.oma-cast doctorreports whethertransis installed.Requirements
translate-shell(thetranscommand) andwl-clipboard. translate-shell sends the text to its own engine, Google by default, so the text leaves the machine. Other engines come from translate-shell's own configuration.Shortcut
The plugin declares
oma-cast:translate. Bind it in~/.config/hypr/oma-cast.lua:oma-cast setup hyprlandadds only the launcher bind, so an existing chord is never overwritten. Super+S opens Omarchy's System menu here, so the swap chord is Ctrl+S.Notes
Ctrl+K) to match the new window.README.mdandCLAUDE.md.node --test tests/*.test.jspasses 112 tests, including new coverage for the translate module, language mapping, the settings migration and root-search ordering.