DeepLTranslateTextSync Method
Definition
call DeepL API to translate the text from source_lang to target_lang (synchrone - current thread is freezed during process)
Delphi
function DeepLTranslateTextSync(auth_key: string; source_lang: string; target_lang: string; text: string; split_sentences: string = '1'; preserve_formatting: string = '0'; formality: string = 'default'): string
Parameters
- auth_key
- string
- source_lang
- string
- target_lang
- string
- text
- string
- split_sentences
- string
- preserve_formatting
- string
- formality
- string
Returns
string
Remarks
look at https://developers.deepl.com/api-reference/translate