JSPM

  • Created
  • Published
  • Downloads 1044
  • Score
    100M100P100Q115752F
  • License MIT

DeepL provider for translate plugin in Strapi 4

Package Exports

  • strapi-provider-translate-deepl
  • strapi-provider-translate-deepl/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strapi-provider-translate-deepl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DeepL provider for Strapi Translate Plugin

Configure the provider through the pluginOptions:

module.exports = {
  // ...
  translate: {
    enabled: true,
    config: {
      // Choose one of the available providers
      provider: 'deepl',
      // 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: 'https://api-free.deepl.com',
      },
      // other options ...
    },
  },
  // ...
}

or use the default environment variables:

  • DEEPL_API_KEY - default undefined
  • DEEPL_API_URL - default undefined

To get an API key, register for free at www.deepl.com/pro#developer.

Limitations: