0.0.0-development • Published 1 year ago
@shawnvogt/strapi-provider-translate-gct v0.0.0-development
Google Cloud Translate provider for Strapi Translate Plugin
Configure the provider through the pluginOptions:
module.exports = {
// ...
translate: {
enabled: true,
config: {
// Choose one of the available providers
provider: 'gct',
// Pass credentials and other options to the provider
providerOptions: {
// your API key - required and wil cause errors if not provided
apiKey: 'key',
// use custom api url - optional
apiUrl: 'translation.googleapis.com',
},
// other options ...
},
},
// ...
}
or use the default environment variables:
GCT_API_KEY
- defaultundefined
GCT_API_URL
- defaultundefined
To get an API key, follow the quickstart guide at googleapis.dev.
Limitations:
- Only the google cloud translate supported languages can be translated
- The API-Limits of Google Cloud Translate vary depending on your project setup (the docs
0.0.0-development
1 year ago