Download the PHP package collab/module-google-translate-service without Composer
On this page you can find all versions of the php package collab/module-google-translate-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download collab/module-google-translate-service
More information about collab/module-google-translate-service
Files in collab/module-google-translate-service
Package module-google-translate-service
Short Description Magento 2 module which provides service for Google Translate API usage.
License MIT
Homepage https://github.com/collabpl/magento2-module-google-translate-service
Informations about the package module-google-translate-service
Magento 2 Google Translate Service Extension
The Collab_GoogleTranslateService module allows You to use its service to translate texts using Google Translate API.
Basic usage
Service's translate
method accepts two string arguments:
$text
- text to be translated$targetLanguage
- desired language code
Installation details
Configuration
In order to use the service, You need to configure following fields in the Stores -> Configuration -> Collab Extensions -> Google Translate Service
:
Tab | Config Field | Description |
---|---|---|
General | API Key (string: Text) | Key should be obtained form Google's Dev Console and Cloud Translation API should be enabled How To Enable Cloud Translation API |
General | Referer (string: Text) | Referer used by service in order to obtain API responses in case of website limitation setup for Google's API usage. |
Google's Cloud Translation API requires You to have billing enabled so please keep in mind that some additional costs may apply (according to: Google Cloud Translation Pricing).