Package-level declarations
Types
Link copied to clipboard
class DeeplClient(authKey: String, httpClientEngine: HttpClientEngine = defaultHttpClientEngine, apiUrl: String? = null, retryConfig: RetryConfig.() -> Unit? = null)
An HTTP Client that allows interaction with the DeepL API.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, from: SourceLang): TranslateResponse
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, options: TranslateOptions = TranslateOptions()): TranslateResponse
suspend fun DeeplClient.translate(text: String, to: TargetLang, options: TranslateOptions = TranslateOptions()): Translation
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, context: String, options: TranslateOptions = TranslateOptions()): TranslateResponse
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, from: SourceLang, context: String): TranslateResponse
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, from: SourceLang? = null, buildOptions: TranslateOptions.() -> Unit = {}): TranslateResponse
suspend fun DeeplClient.translate(text: String, to: TargetLang, context: String, options: TranslateOptions = TranslateOptions()): Translation
suspend fun DeeplClient.translate(text: String, to: TargetLang, from: SourceLang, context: String): Translation
suspend fun DeeplClient.translate(text: String, to: TargetLang, from: SourceLang? = null, buildOptions: TranslateOptions.() -> Unit = {}): Translation
suspend fun DeeplClient.translate(text: String, to: TargetLang, from: SourceLang? = null, options: TranslateOptions = TranslateOptions()): Translation
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, from: SourceLang? = null, context: String, buildOptions: TranslateOptions.() -> Unit = {}): TranslateResponse
suspend fun DeeplClient.translate(vararg texts: String, to: TargetLang, from: SourceLang? = null, context: String, options: TranslateOptions = TranslateOptions()): TranslateResponse
suspend fun DeeplClient.translate(text: String, to: TargetLang, from: SourceLang? = null, context: String, buildOptions: TranslateOptions.() -> Unit = {}): Translation
suspend fun DeeplClient.translate(text: String, to: TargetLang, from: SourceLang? = null, context: String, options: TranslateOptions = TranslateOptions()): Translation
Link copied to clipboard
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, from: SourceLang): List<String>
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, options: TranslateOptions = TranslateOptions()): List<String>
suspend fun DeeplClient.translateText(text: String, to: TargetLang, options: TranslateOptions = TranslateOptions()): String
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, context: String, options: TranslateOptions = TranslateOptions()): List<String>
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, from: SourceLang, context: String): List<String>
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, from: SourceLang? = null, buildOptions: TranslateOptions.() -> Unit = {}): List<String>
suspend fun DeeplClient.translateText(text: String, to: TargetLang, context: String, options: TranslateOptions = TranslateOptions()): String
suspend fun DeeplClient.translateText(text: String, to: TargetLang, from: SourceLang, context: String): String
suspend fun DeeplClient.translateText(text: String, to: TargetLang, from: SourceLang? = null, buildOptions: TranslateOptions.() -> Unit = {}): String
suspend fun DeeplClient.translateText(text: String, to: TargetLang, from: SourceLang? = null, options: TranslateOptions = TranslateOptions()): String
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, from: SourceLang? = null, context: String, buildOptions: TranslateOptions.() -> Unit = {}): List<String>
suspend fun DeeplClient.translateText(vararg texts: String, to: TargetLang, from: SourceLang? = null, context: String, options: TranslateOptions = TranslateOptions()): List<String>
suspend fun DeeplClient.translateText(text: String, to: TargetLang, from: SourceLang? = null, context: String, buildOptions: TranslateOptions.() -> Unit = {}): String
suspend fun DeeplClient.translateText(text: String, to: TargetLang, from: SourceLang? = null, context: String, options: TranslateOptions = TranslateOptions()): String