Class DeeplFreeTranslation

java.lang.Object
org.eclnt.ccee.deepl.DeeplFreeTranslation

public class DeeplFreeTranslation extends Object
Java API to access Deepl free translation services in a simple way.

For using this class you need to register with Deepl and obtain an API key. Passing the API key into the processing is described with method initializeDeeplAPIKey(String).
  • Constructor Details

    • DeeplFreeTranslation

      public DeeplFreeTranslation()
  • Method Details

    • initializeInstance

      public static void initializeInstance(DeeplFreeTranslation instance)
    • initializeDeeplAPIKey

      public static void initializeDeeplAPIKey(String key)
      For making Deepl work you need to pass an API key. There are two ways: either you define the key within the ccee_config.properties file using the name Config.CONFIG_deepl_apikey or you directly call this method and pass the key by API.
    • instance

      public static DeeplFreeTranslation instance()
    • translateLiterals

      public String[] translateLiterals(String[] literals, String fromLanguage, String toLanguage, String context)