You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2023. It is now read-only.
Termit is an easy way to translate stuff in your terminal. You can check out its node.js npm version normit.
Installation
gem install termit
Usage
termit 'source_language''target_language''text'
Example:
termit en es "hey cowboy where is your horse?"
=>"Hey vaquero dónde está tu caballo?"
termit fr en "qui est votre papa?"
=>"Who's Your Daddy?"
Quotation marks are not necessary for text data input:
termit fr ru qui est votre papa
=>"Кто твой папочка?"
Speech synthesis
Specify a -t (talk) flag to use speech synthesis (requires mpg123):
termit en fr "hey cowboy where is your horse?" -t
=>"Hey cowboy où est votre cheval ?"# and a french voice says something about a horse
You can use termit as a speech synthesizer of any supported language without having to translate anything:
termit en en "hold your horses cowboy !" -t
=>"hold your horses cowboy !"# and an english voice asks you to hold on
Learning language when committing to git
Idea by Nedomas. See and hear your messages translated to target lang every time you commit. You can do this two ways: overriding the git command, and using a post-commit hook in git.