Miscellaneous fixes (#1110)
* Fix typos in method examples * Fix broken link to sanitize_config (#1115) * Add SIDEKIQ_CONCURRENCY * Fix relref to FilterResult (#1114) * Fix status_ids and rule_ids description (#1126) * fix typo (#1129) * clarify confusing example (mastodon/mastodon#22854) * fix formatting on linked headings (#1139) * fix placeholder entity names (#1157) * better wording * fix scheduledstatus#params.visibility * fix missing: tootctl accounts modify --remove-role * add: status/translate * add deprecation/removal warning to microformats page * clarify further how link verification works * clarify mastodon requirements for webfinger * fix: push param policy -> data[policy]pull/1051/head^2
parent
5b0cd8b7f0
commit
b458498d25
@ -0,0 +1,50 @@
|
||||
---
|
||||
title: Translation
|
||||
description: Represents the result of machine translating some status content
|
||||
menu:
|
||||
docs:
|
||||
parent: entities
|
||||
aliases: [
|
||||
"/api/entities/Translation",
|
||||
"/api/entities/translation",
|
||||
]
|
||||
---
|
||||
|
||||
## Example
|
||||
|
||||
```json
|
||||
{
|
||||
"content": "<p>Hola mundo</p>",
|
||||
"detected_source_language": "en",
|
||||
"provider": "DeepL.com"
|
||||
}
|
||||
```
|
||||
|
||||
## Attributes
|
||||
|
||||
### `content` {#content}
|
||||
|
||||
**Description:** The translated text of the status.\
|
||||
**Type:** String (HTML)\
|
||||
**Version history:**\
|
||||
4.0.0 - added
|
||||
|
||||
### `detected_source_language` {#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` {#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" >}}
|
Loading…
Reference in new issue