Appearance
Init locale
About 156 wordsLess than 1 minute
apiSystem Settings
2025-09-15
MethodPOST
Request URL
/plugin/datafor/api/core/initLocaleAuthorization
Use of this API requires authentication. For details about the authentication method, see
Authorization.
Content Typeapplication/x-www-form-urlencoded
Preconditions
- This API should be called immediately after login to initialize the locale settings.
Request Example
clientLocale: zh-CNParameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | no | Request body |
| ├── clientLocale | body | string | no | Locale setting in BCP47 format |
Response Examples
{
"islogged": true,
"locale": "en-US",
"success": true
}HTTP Responses
| HTTP Status Code | Meaning | Description | Data schema |
|---|---|---|---|
| 200 | OK | Request was successful | Inline |
Response Data Schema (HTTP 200)
| Name | Type | Required | Description |
|---|---|---|---|
islogged | boolean | No | Indicates if the user is logged in |
locale | string | Yes | The effective locale after initialization |
success | boolean | Yes | Indicates whether the request was successful |