update language attributes in API

This commit is contained in:
yheuhtozr 2023-03-29 12:29:24 +09:00 committed by GitHub
parent ad28620313
commit c3418bd50b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 24 additions and 15 deletions

View File

@ -388,9 +388,10 @@ aliases: [
#### `source[language]` {#source-language} #### `source[language]` {#source-language}
**Description:** The default posting language for new statuses.\ **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:**\ **Version history:**\
2.4.2 - added 2.4.2 - added
4.1.0 - accept BCP 47
#### `source[follow_requests_count]` {#follow_requests_count} #### `source[follow_requests_count]` {#follow_requests_count}

View File

@ -131,9 +131,10 @@ aliases: [
### `locale` {#locale} ### `locale` {#locale}
**Description:** The locale of the account.\ **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:**\ **Version history:**\
2.9.1 - added 2.9.1 - added
4.1.0 - accept BCP 47
### `invite_request` {#invite_request} ### `invite_request` {#invite_request}

View File

@ -265,9 +265,10 @@ aliases: [
### `languages` {#languages} ### `languages` {#languages}
**Description:** Primary languages of the website and its staff.\ **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:**\ **Version history:**\
4.0.0 - added 4.0.0 - added
4.1.0 - accept BCP 47
### `configuration` {#configuration} ### `configuration` {#configuration}

View File

@ -47,9 +47,10 @@ aliases: [
### `posting:default:language` {#posting-default-language} ### `posting:default:language` {#posting-default-language}
**Description:** Default language for new posts. Equivalent to [CredentialAccount#source\[language\]]({{< relref "entities/Account#source-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:**\ **Version history:**\
2.8.0 - added 2.8.0 - added
4.1.0 - accept BCP 47
### `reading:expand:media` {#reading-expand-media} ### `reading:expand:media` {#reading-expand-media}

View File

@ -65,9 +65,10 @@ aliases: [
### `languages` {#languages} ### `languages` {#languages}
**Description:** Which languages are you following from this user?\ **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:**\ **Version history:**\
4.0.0 - added 4.0.0 - added
4.1.0 - accept BCP 47
### `followed_by` {#followed_by} ### `followed_by` {#followed_by}

View File

@ -169,9 +169,10 @@ Returned from `GET /api/v1/scheduled_statuses`:
#### `params[language]` {#params-language} #### `params[language]` {#params-language}
**Description:** The language that will be used for the status.\ **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:**\ **Version history:**\
2.7.0 - added 2.7.0 - added
4.1.0 - accept BCP 47
#### `params[application_id]` {#params-application_id} #### `params[application_id]` {#params-application_id}

View File

@ -278,9 +278,10 @@ aliases: [
### `language` {#language} ### `language` {#language}
**Description:** Primary language of this status.\ **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:**\ **Version history:**\
1.4.0 - added 1.4.0 - added
4.1.0 - accept BCP 47
### `text` {#text} ### `text` {#text}

View File

@ -32,9 +32,10 @@ aliases: [
### `detected_source_language` {#detected_source_language} ### `detected_source_language` {#detected_source_language}
**Description:** The language of the source text, as auto-detected by the machine translation provider.\ **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:**\ **Version history:**\
4.0.0 - added 4.0.0 - added
4.1.0 - accept BCP 47
### `provider` {#provider} ### `provider` {#provider}

View File

@ -240,9 +240,10 @@ aliases: [
### `languages` {#languages} ### `languages` {#languages}
**Description:** Primary languages of the website and its staff.\ **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:**\ **Version history:**\
2.3.0 - added 2.3.0 - added
4.1.0 - accept BCP 47
### `registrations` {#registrations} ### `registrations` {#registrations}

View File

@ -361,7 +361,7 @@ source[sensitive]
: Boolean. Whether to mark authored statuses as sensitive by default. : Boolean. Whether to mark authored statuses as sensitive by default.
source[language] 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 #### Response
@ -1200,7 +1200,7 @@ notify
: Boolean. Receive notifications when this account posts a status? Defaults to false. : Boolean. Receive notifications when this account posts a status? Defaults to false.
languages 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 #### Response
##### 200: OK ##### 200: OK

View File

@ -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. : Boolean. Forces the user to re-login, which is necessary for authorizing with multiple accounts from the same instance.
lang 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 #### Response
##### 200: OK ##### 200: OK

View File

@ -75,7 +75,7 @@ visibility
: String. Sets the visibility of the posted status to `public`, `unlisted`, `private`, `direct`. : String. Sets the visibility of the posted status to `public`, `unlisted`, `private`, `direct`.
language 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 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. : 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.
@ -546,7 +546,7 @@ Translate the status content into some language.
##### Form data parameters ##### Form data parameters
lang 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 ##### Headers
@ -1478,7 +1478,7 @@ sensitive
: Boolean. Whether the status should be marked as sensitive. : Boolean. Whether the status should be marked as sensitive.
language 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[] media_ids[]
: Array of String. Include Attachment IDs to be attached as media. If provided, `status` becomes optional, and `poll` cannot be used. : Array of String. Include Attachment IDs to be attached as media. If provided, `status` becomes optional, and `poll` cannot be used.