A CLI to translate between languages in the terminal.
~$ tran --help
Usage: tran <lang_name> sentence to be translated
Options:
--version Show version number. [boolean]
-l, --languages List all languages. [boolean]
--help Show help. [boolean]
⚠️ You can also use the ISO-639-1 code of the language instead of writing the full language name
- Clone the repository and then navigate to it.
- Run
npm install
to install the dependencies. - Run
npm install -g .
to install the CLI.
⚠️ This might cause an error which can be resolved easily by usingsudo
with the command, however, usingsudo
withnpm
is not recommended because it might cause permission issues later. So instead put the code below in your .bashrc file and then run the above command again.
npm set prefix ~/.npm
PATH="$HOME/.npm/bin:$PATH"
PATH="./node_modules/.bin:$PATH"
- Now you are good to go and can use the CLI globally!
Type tran
or tran --help
to get started.
MIT © termTranslate