Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Icon by A’Design Award & Competition, Onur Müştak Çobanlı and Farhat Datta
Toloko is Sesotho for interpreter.
Toloko is a text translation tool for the command line that supports dozens of source and target languages. It requires a terminal emulator that supports UTF-8 encoding; I prefer Terminator. For more info, see the wiki.
Looking for testers on OSX. Developed and tested on Linux. Works on Windows, see Windows below.
Supported Node.js versions:
To initialize the config file and load themes, your NODE_PATH environment variable must point to the lib/node_modules directory of the Node.js installation. You can set this path automatically like this:
export NP=$(which node)
export BP=${NP%bin/node} #this replaces the string '/bin/node'
export LP="${BP}lib/node_modules"
export NODE_PATH="$LP"
Provided these lines are towards the end of the shell initialization file (at least after any NVM stuff) this should work for a system installation of Node.js and nvm.
Add all of this to .bashrc, .zshrc, etc. then:
npm install -g toloko
toloko config init
I highly recommend using nodist to install Node.js on Windows. It automatically sets %NODE_PATH% for you, though you may have to edit it to make sure it doesn't contain itself (i.e. C:......\node_modules;%NODE_PATH%). If you install Node.js manually, npm install --global leximaven
will install the package in C:\Users\username\AppData\Roaming\npm\node_modules. And if you just do npm install leximaven
then it will install the package to a subfolder of the Node.js installation, but that won't be the NODE_PATH folder unless you manually set it. Either way, you're going to have to mess around with Windows environment variables to get it to work. And don't forget to put your Yandex API key into an environment variable YANDEX
As for getting the ANSI color escape codes to work, Cmder seems to be the easiest way. It doesn't install a full linux environment like Cygwin, but you can still use some linux commands like which, cat, and ls.
toloko has a built-in help system for CLI parameters and options. Access it with toloko -h|--help [command] [subcommand]
. There is also the wiki.
Here are some examples:
// Get a translated sentence with the word 'tree' in German from Glosbe
toloko glosbe example --source eng --target deu tree
// Translate 'despues' from Spanish to English using Hablaa
toloko hablaa translate -s spa -t eng despues
// List Hablaa's supported languages
toloko hablaa list
// Translate 'hello' from English to Russian using Yandex
toloko yandex translate --dir en-ru hello
// Detect language using Yandex
toloko yandex detect привет
// List Yandex's supported languages
toloko yandex list
See the tests for more.
These following links can help you use Toloko or perform related tasks.
MIT :copyright: 2017 Andrew Prentice
Glosbe, Hablaa, and Yandex.Translate
See take-command.
FAQs
A command line tool for translating words.
The npm package toloko receives a total of 0 weekly downloads. As such, toloko popularity was classified as not popular.
We found that toloko demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.