用户设置UI语言偏好。
Request
HTTP request
POST /api/language-locale/set-language/
Authorization
本接口需要用户登录认证
Request body
Name | Type | Desc | Notes |
---|---|---|---|
必填参数 | |||
language_code | string | 语言代码,详情请查看LanguageLocale.languages |
Response
200
调用范例:POST /api/language-locale/set-language/
Payload:
{
"language_code": "zh-Hans"
}
返回结果:
{
"data": {
"language_code": "zh-Hans",
"language_local": "中文(简体)",
"language_continent_region": "asia-pacific"
}
}