Text Translation (stable:3.0)

2025/09/05 • 6 new methods

FindSentenceBoundaries (new)
Description Find Sentence Boundaries
Reference Link ¶

⚼ Request

POST:  /breaksentence
{
X-ClientTraceId: string ,
language: string ,
script: string ,
api-version: string ,
body:
{
text: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
detectedLanguage:
{
language: string ,
score: number ,
}
,
sentLen:
[
integer ,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
error:
{
code: integer ,
message: string ,
}
,
}
,
}
LookupDictionaryExamples (new)
Description Lookup Dictionary Examples
Reference Link ¶

⚼ Request

POST:  /dictionary/examples
{
X-ClientTraceId: string ,
from: string ,
to: string ,
api-version: string ,
body:
{
translation: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
normalizedSource: string ,
normalizedTarget: string ,
examples:
[
{
sourcePrefix: string ,
sourceTerm: string ,
sourceSuffix: string ,
targetPrefix: string ,
targetTerm: string ,
targetSuffix: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
error:
{
code: integer ,
message: string ,
}
,
}
,
}
LookupDictionaryEntries (new)
Description Lookup Dictionary Entries
Reference Link ¶

⚼ Request

POST:  /dictionary/lookup
{
X-ClientTraceId: string ,
from: string ,
to: string ,
api-version: string ,
body:
{
text: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
normalizedSource: string ,
displaySource: string ,
translations:
[
{
normalizedTarget: string ,
displayTarget: string ,
posTag: string ,
confidence: number ,
prefixWord: string ,
backTranslations:
[
{
normalizedText: string ,
displayText: string ,
numExamples: integer ,
frequencyCount: integer ,
}
,
]
,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
error:
{
code: integer ,
message: string ,
}
,
}
,
}
GetSupportedLanguages (new)
Description Gets the set of languages currently supported by other operations of the Translator.
Reference Link ¶

⚼ Request

GET:  /languages
{
X-ClientTraceId: string ,
scope: string ,
Accept-Language: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
x-requestid: string ,
}
,
$schema:
{
translation: object ,
transliteration: object ,
dictionary: object ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
error:
{
code: integer ,
message: string ,
}
,
}
,
}
Translate (new)
Description Translate Text
Reference Link ¶

⚼ Request

POST:  /translate
{
X-ClientTraceId: string ,
to: array ,
from: string ,
textType: string ,
category: string ,
profanityAction: string ,
profanityMarker: string ,
includeAlignment: boolean ,
includeSentenceLength: boolean ,
suggestedFrom: string ,
fromScript: string ,
toScript: string ,
allowFallback: boolean ,
api-version: string ,
body:
{
text: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-requestid: string ,
x-metered-usage: integer ,
x-mt-system: string ,
}
,
$schema:
{
detectedLanguage:
{
language: string ,
score: number ,
}
,
translations:
[
{
to: string ,
text: string ,
transliteration:
{
text: string ,
script: string ,
}
,
alignment:
{
proj: string ,
}
,
sentLen:
{
srcSentLen:
[
integer ,
]
,
transSentLen:
[
integer ,
]
,
}
,
}
,
]
,
sourceText:
{
text: string ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
error:
{
code: integer ,
message: string ,
}
,
}
,
}
Transliterate (new)
Description Transliterate Text
Reference Link ¶

⚼ Request

POST:  /transliterate
{
X-ClientTraceId: string ,
language: string ,
fromScript: string ,
toScript: string ,
api-version: string ,
body:
{
text: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
text: string ,
script: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-requestid: string ,
}
,
$schema:
{
error:
{
code: integer ,
message: string ,
}
,
}
,
}