Operations with Specific LocaleSettings
This resource lets you work with the system language settings of your YouTrack service.
Resource |
|
---|---|
Returned entity | LocaleSettings. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
Represents the System Language settings.
Below you can find the list of resources that let you work with this entity.
This table describes attributes of the LocaleSettings
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the LocaleSettings. |
locale | Current locale of YouTrack. | |
isRTL | Boolean | Indicates whether the current system language is right-to-left. |
Read the current system language of your YouTrack service.
GET /api/admin/globalSettings/localeSettings?{fields}
null | Database ID of LocaleSettings |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of LocaleSettings attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/globalSettings/localeSettings?fields=locale(name,community,locale,language),isRTL
{
"locale": {
"name": "English",
"locale": "en_US",
"community": false,
"id": "en_US",
"language": "en",
"$type": "LocaleDescriptor"
},
"isRTL": false,
"$type": "LocaleSettings"
}
Change the system language of your YouTrack service.
Required parameters: Database id
of the target locale. It usually has the same value as the locale
attribute.
Requires permissions: Low-level Admin Write
POST /api/admin/globalSettings/localeSettings?{fields}
null | Database ID of LocaleSettings |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of LocaleSettings attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/globalSettings/localeSettings?fields=locale(id,name,community,locale,language),isRTL
{
"locale": {
"id": "de_DE"
}
}
{
"locale": {
"name": "Deutsch",
"locale": "de_DE",
"community": false,
"id": "de_DE",
"language": "de",
"$type": "LocaleDescriptor"
},
"isRTL": false,
"$type": "LocaleSettings"
}