-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quick-translate Package to translate between many languages using translate-shell #97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fairly straightforward package.
Makes use of an external command, trans
, available from GitHub. I'm not in a position to verify its safety. This is called by two type: shell
cmd:
s.
Linux & macOS users need to be advised in README.md
to change the two shell: wsl
lines to shell: bash
, and this could be facilitated by setting a global variable in defaultlang.yml
, e.g.:
- name: shell
type: echo
params:
echo: bash # or wsl
and changing the lines in package.yml
to shell: "{{shell}}"
, so that defaultlang.yml
is the only file needing editing by users.
Probably safe to merge.
Edit: Ignore most of my comments above - @p0ly60n has pointed out (and I have checked) that if WSL isn't present then Linux & macOS will use the default shell automatically, so Espanso will effectively ignore the line.
Merging this. |
This expansion uses the translate-shell CLI-tool to do in-line translations from and to many languages. The default source and target languages of the user can be defined within
defaultlang.yml
as this file serves as the global variable definition of them