1.2 KiB
1.2 KiB
title | description | menu | aliases | ||||||
---|---|---|---|---|---|---|---|---|---|
Translation | Represents the result of machine translating some status content |
|
|
Example
{
"content": "<p>Hola mundo</p>",
"detected_source_language": "en",
"provider": "DeepL.com"
}
Attributes
content
Description: The translated text of the status.
Type: String (HTML)
Version history:
4.0.0 - added
detected_source_language
Description: The language of the source text, as auto-detected by the machine translation provider.
Type: String (ISO 639 language code)
Version history:
4.0.0 - added
provider
Description: The service that provided the machine translation.
Type: String
Version history:
4.0.0 - added
See also
{{< page-relref ref="methods/statuses#translate" caption="POST /api/v1/statuses/:id/translate" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/translation_serializer.rb" caption="app/serializers/rest/translation_serializer.rb" >}}