Mikage Posted May 28, 2023 Share Posted May 28, 2023 Convenient translation of texts in en-ru ru-en directions. Features Translates Russian text into English. English text to Russian. You do not need to indicate the direction of the translation. Works with both input text and selected text. Shows translation options for one word. Spell check for one word. Translates both words and sentences. Copies the translation result to the clipboard. Installation Requirements MacOS 12.4 and above Requires node at least version 14 Internet connection Alfred Powerpack Download and import Download the latest version from the releases page. Import the downloaded file to Alfred. Commands Translation of a word, starting from Alfred string on the keyword: t or e: Hotkey to call: Option ⌥ + Command ⌘ + T Link to comment
vitor Posted May 29, 2023 Share Posted May 29, 2023 (edited) Welcome @Mikage, A few short notes: You should always prefer with input as argv over with input as {query}. While you can suggest a Hotkey, those are stripped on import so as to not conflict with something else the user may have. You don’t need to repeat the Script Filter. As of version 5.1, Alfred supports multiple keywords. If you plan on submitting the workflow for the Alfred Gallery, they keyword has to be longer than one character. Or better yet, make it configurable. Also on the subject of the Gallery, for a submission the code must not be minimised/obfuscated. As a final Gallery note, the workflow’s name is a tad generic seeing as it only translates between two languages, so it should be a bit more specific. If anything is unclear, please let me know! Edited May 29, 2023 by vitor Link to comment
Mikage Posted June 8, 2023 Author Share Posted June 8, 2023 Thank you @vitor! I have implemented the necessary fixes Link to comment
vitor Posted June 8, 2023 Share Posted June 8, 2023 Thank you @Mikage, I should’ve been a bit clearer regarding the keyword. Please make the default longer than one character, and make it a single keyword (without the ||). That will allow users to have a sensible default and change it to whatever they like. Modified configuration is not exported with the workflow so you can set the default to something like trus (or something else, your choice) but then change your own configuration to t||е thus allowing the best of both world for both yourself and other users. Other than that, everything looks good. Link to comment
TomBenz Posted June 9, 2023 Share Posted June 9, 2023 On 5/28/2023 at 10:08 PM, Mikage said: Convenient translation of texts in en-ru ru-en directions. Features Translates Russian text into English. English text to Russian. You do not need to indicate the direction of the translation. Works with both input text and selected text. Shows translation options for one word. Spell check for one word. Translates both words and sentences. Copies the translation result to the clipboard. Installation Requirements MacOS 12.4 and above Requires node at least version 14 Internet connection Alfred Powerpack Download and import Download the latest version from the releases page. Import the downloaded file to Alfred. Commands Translation of a word, starting from Alfred string on the keyword: t or e: Hotkey to call: Option ⌥ + Command ⌘ + T Request for making the language selection as configuration settings Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now