Download the PHP package level51/silverstripe-fluent-autotranslate without Composer
On this page you can find all versions of the php package level51/silverstripe-fluent-autotranslate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download level51/silverstripe-fluent-autotranslate
More information about level51/silverstripe-fluent-autotranslate
Files in level51/silverstripe-fluent-autotranslate
Package silverstripe-fluent-autotranslate
Short Description Module for auto translation using Google Translate or OpenAI for Silverstripe with Fluent
License MIT
Informations about the package silverstripe-fluent-autotranslate
Silverstripe Fluent Autotranslate
Module for auto translation using Google Cloud Translation for Silverstripe with Fluent.
Content
- Requirements
- Installation
- Setup Google Cloud Translation API
- Setup OpenAI API
- Maintainer
- Disable extension for specific field types
Requirements
- Silverstripe ^4 || ^5
- Fluent >=4
- PHP >= 7.1
- ext-json
Installation
composer require level51/silverstripe-fluent-autotranslate
Setup Google Cloud Translation API
Define the API key for the Google Cloud Translation API like this:
See https://cloud.google.com/translate/docs/setup for setup instructions.
Setup OpenAI API
See https://platform.openai.com/docs/quickstart/create-and-export-an-api-key for setup instructions and how to get an API key.
Define the API key for the OpenAI API like this in your config.yml
:
For Open AI you can specify terms to avoid translation by adding them to the openai_translation_blacklist
in the backend admin settings.
If you want to use this feature you have to add the BlackListExtension to the SiteConfig class.
Maintainer
- Level51 [email protected]
Disable extension for specific field types
All versions of silverstripe-fluent-autotranslate with dependencies
ext-json Version *
ext-intl Version *
silverstripe/framework Version ^4 || ^5