Returns the locale for the user.If the user has no language preference set (which is the default setting) or this resource is accessed anonymous, the browser locale detected by Jira is returned. Jira detects the browser locale using the Accept-Language header in the request. However, if this doesn't match a locale available Jira, the site default locale is returned.This operation can be accessed anonymously.Permissions required: None.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'http:///rest/api/3/mypreferences/locale'
响应示例响应示例
200 - 成功示例
{"locale":"en_US"}
请求参数
无
返回响应
🟢200Returned if the request is successful.
application/json
Body
🟠401Returned if the authentication credentials are incorrect or missing.