DeepLTranslateTextASync Method

call DeepL API to translate the text from source_lang to target_lang (asynchrone - don't freeze current thread)

Unit: OlfSoftware.DeepL.ClientLib
procedure DeepLTranslateTextASync(auth_key: string; source_lang: string; target_lang: string; text: string; onTexTranslatedEvent: TOnTextTranslatedEvent; onTexTranslatedErrorEvent: TOnTextTranslatedErrorEvent = 0; split_sentences: string = '1'; preserve_formatting: string = '0'; formality: string = 'default')

Parameters

auth_key
Type: System.string

source_lang
Type: System.string

target_lang
Type: System.string

text
Type: System.string

onTexTranslatedEvent
Type: OlfSoftware.DeepL.ClientLib.TOnTextTranslatedEvent

onTexTranslatedErrorEvent
Type: OlfSoftware.DeepL.ClientLib.TOnTextTranslatedErrorEvent

split_sentences
Type: System.string

preserve_formatting
Type: System.string

formality
Type: System.string

look at https://www.deepl.com/docs-api/translating-text/response/