Download the PHP package levmyshkin/google-translate without Composer
On this page you can find all versions of the php package levmyshkin/google-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download levmyshkin/google-translate
More information about levmyshkin/google-translate
Files in levmyshkin/google-translate
Package google-translate
Short Description Node.js service for Google Translate
License MIT
Informations about the package google-translate
Google Translate service
It's a Drupal library for getting translation from Node.js service. It depends on iamtraction/google-translate npm package: https://www.npmjs.com/package/@iamtraction/google-translate https://github.com/iamtraction/google-translate
Installation and run Node.js service
Run these commands:
Usage
See Translator.postman_collection.json with POST request: http://localhost:8000
Langcodes must be ISO-639 codes: https://cloud.google.com/translate/docs/languages
with x-www-form-urlencoded data: translateText: Hello translateFrom: en translateTo: ru
Run node.js service in background
You can run translation node.js service in background or even on system start up:
More info about PM2: https://pm2.keymetrics.io/
Saving the app list to be restored at reboot.
Once you have started all desired apps, save the app list, so it will respawn after reboot: