Applipress documentation 1.0 Help

auto-translate-config.json

This file is located in the ./config/auto-translate/ directory and is used to configure the automatic translation feature in Applipress. By default, the automatic translation feature is disabled. To enable it, you must modify the .auto-translate-config.json file and provide the necessary API keys for the translation service you wish to use.

Initially, the file contains the following settings:

{ "automaticTranslation": false, "translatorProvider": "google", "azureTranslateKey": "please enter your key here", "googleTranslateKey": "please enter your key here" }

To enable automatic translation, follow these steps:

  • set the automaticTranslation field to true

  • provide the API key for the translation service you wish to use and set the translatorProvider field accordingly. Valid values for translatorProvider are google and azure.

  • currently, Applipress supports Google Translate and Microsoft Azure Translation services

Here's an example of how the .auto-translate-config.json file should look after enabling automatic translation with Google Translate:

{ "automaticTranslation": true, "translatorProvider": "google", "azureTranslateKey": "please enter your key here", "googleTranslateKey": "your_google_translate_api_key_here" }
Last modified: 18 March 2024