Package org.eclnt.ccee.deepl
Class DeeplFreeTranslation
java.lang.Object
org.eclnt.ccee.deepl.DeeplFreeTranslation
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
For making Deepl work you need to pass an API key.static void
initializeInstance
(DeeplFreeTranslation instance) static DeeplFreeTranslation
instance()
String[]
translateLiterals
(String[] literals, String fromLanguage, String toLanguage, String context)
-
Constructor Details
-
DeeplFreeTranslation
public DeeplFreeTranslation()
-
-
Method Details
-
initializeInstance
-
initializeDeeplAPIKey
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 nameConfig.CONFIG_deepl_apikey
or you directly call this method and pass the key by API. -
instance
-
translateLiterals
-