Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/en/entities/Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,10 @@ aliases: [
#### `source[language]` {#source-language}

**Description:** The default posting language for new statuses.\
**Type:** String (ISO 639-1 language two-letter code) or empty string\
**Type:** String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded) or empty string\
**Version history:**\
2.4.2 - added
4.1.0 - accept BCP 47

#### `source[follow_requests_count]` {#follow_requests_count}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/Admin_Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ aliases: [
### `locale` {#locale}

**Description:** The locale of the account.\
**Type:** String (ISO 639 Part 1 two-letter language code)\
**Type:** String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded)\
**Version history:**\
2.9.1 - added
4.1.0 - accept BCP 47

### `invite_request` {#invite_request}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/Instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,10 @@ aliases: [
### `languages` {#languages}

**Description:** Primary languages of the website and its staff.\
**Type:** Array of String (ISO 639-1 two-letter code)\
**Type:** Array of String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded)\
**Version history:**\
4.0.0 - added
4.1.0 - accept BCP 47

### `configuration` {#configuration}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/Preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ aliases: [
### `posting:default:language` {#posting-default-language}

**Description:** Default language for new posts. Equivalent to [CredentialAccount#source\[language\]]({{< relref "entities/Account#source-language" >}})\
**Type:** {{<nullable>}} String (ISO 639-1 language two-letter code), or null\
**Type:** {{<nullable>}} String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded), or null\
**Version history:**\
2.8.0 - added
4.1.0 - accept BCP 47

### `reading:expand:media` {#reading-expand-media}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/Relationship.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ aliases: [
### `languages` {#languages}

**Description:** Which languages are you following from this user?\
**Type:** Array of String (ISO 639-1 language two-letter code)\
**Type:** Array of String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded)\
**Version history:**\
4.0.0 - added
4.1.0 - accept BCP 47

### `followed_by` {#followed_by}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/ScheduledStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@ Returned from `GET /api/v1/scheduled_statuses`:
#### `params[language]` {#params-language}

**Description:** The language that will be used for the status.\
**Type:** {{<nullable>}} String (ISO 639-1 two-letter language code)\
**Type:** {{<nullable>}} String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded)\
**Version history:**\
2.7.0 - added
4.1.0 - accept BCP 47

#### `params[application_id]` {#params-application_id}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/Status.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,10 @@ aliases: [
### `language` {#language}

**Description:** Primary language of this status.\
**Type:** {{<nullable>}} String (ISO 639 Part 1 two-letter language code) or null\
**Type:** {{<nullable>}} String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded) or null\
**Version history:**\
1.4.0 - added
4.1.0 - accept BCP 47

### `text` {#text}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/Translation.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ aliases: [
### `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)\
**Type:** String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded)\
**Version history:**\
4.0.0 - added
4.1.0 - accept BCP 47

### `provider` {#provider}

Expand Down
3 changes: 2 additions & 1 deletion content/en/entities/V1_Instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,10 @@ aliases: [
### `languages` {#languages}

**Description:** Primary languages of the website and its staff.\
**Type:** Array of String (ISO 639-1 two-letter code)\
**Type:** Array of String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded)\
**Version history:**\
2.3.0 - added
4.1.0 - accept BCP 47

### `registrations` {#registrations}

Expand Down
4 changes: 2 additions & 2 deletions content/en/methods/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ source[sensitive]
: Boolean. Whether to mark authored statuses as sensitive by default.

source[language]
: String. Default language to use for authored statuses (ISO 6391)
: String. Default language to use for authored statuses (in well-formed BCP 47 language tag, but parts other than language subtag may be discarded by the system).

#### Response

Expand Down Expand Up @@ -1200,7 +1200,7 @@ notify
: Boolean. Receive notifications when this account posts a status? Defaults to false.

languages
: Array of String (ISO 639-1 language two-letter code). Filter received statuses for these languages. If not provided, you will receive this account's posts in all languages.
: Array of String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded). Filter received statuses for these languages. If not provided, you will receive this account's posts in all languages.

#### Response
##### 200: OK
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ force_login
: Boolean. Forces the user to re-login, which is necessary for authorizing with multiple accounts from the same instance.

lang
: String. The ISO 639-1 two-letter language code to use while rendering the authorization form.
: String. The well-formed BCP 47 language tag (parts other than language subtag may be discarded by the system) to use while rendering the authorization form.

#### Response
##### 200: OK
Expand Down
6 changes: 3 additions & 3 deletions content/en/methods/statuses.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ visibility
: String. Sets the visibility of the posted status to `public`, `unlisted`, `private`, `direct`.

language
: String. ISO 639 language code for this status.
: String. Well-formed BCP 47 language tag for this status (parts other than language subtag may be discarded by the system).

scheduled_at
: String. ISO 8601 Datetime at which to schedule a status. Providing this parameter will cause ScheduledStatus to be returned instead of Status. Must be at least 5 minutes in the future.
Expand Down Expand Up @@ -546,7 +546,7 @@ Translate the status content into some language.
##### Form data parameters

lang
: String (ISO 639 language code). The status content will be translated into this language. Defaults to the user's current locale.
: String (well-formed BCP 47 language tag, but parts other than language subtag may be discarded). The status content will be translated into this language. Defaults to the user's current locale.

##### Headers

Expand Down Expand Up @@ -1478,7 +1478,7 @@ sensitive
: Boolean. Whether the status should be marked as sensitive.

language
: String. ISO 639 language code for the status.
: String. Well-formed BCP 47 language tag for the status (parts other than language subtag may be discarded by the system).

media_ids[]
: Array of String. Include Attachment IDs to be attached as media. If provided, `status` becomes optional, and `poll` cannot be used.
Expand Down