Skip to content

Commit 571c6d2

Browse files
authored
Add language attribute to translation entity (#1784)
1 parent 432e71c commit 571c6d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/en/entities/Translation.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Translation of status with content warning and media
1818
{
1919
"content": "<p>Hello world</p>",
2020
"spoiler_text": "Greatings ahead",
21+
"language": "en",
2122
"media_attachments": [
2223
{
2324
"id": "22345792",
@@ -35,6 +36,7 @@ Translation of status with poll:
3536
{
3637
"content": "<p>Should I stay or should I go?</p>",
3738
"spoiler_text": "",
39+
"language": "en",
3840
"media_attachments": [],
3941
"poll": {
4042
"id": "34858",
@@ -69,6 +71,13 @@ Translation of status with poll:
6971
**Version history:**\
7072
4.2.0 - added
7173

74+
### `language` {#language}
75+
76+
**Description:** The resulting language the text was translated into.\
77+
**Type:** String\
78+
**Version history:**\
79+
4.0.0 - added
80+
7281
### `poll` {{%optional%}} {#poll}
7382

7483
**Description:** The translated poll of the status.\

0 commit comments

Comments
 (0)