Set and Get Language and Country Settings of Device
# Set and Get Language and Country Settings of Device
# Set Language and Country Settings of Device
Path:
/api/locale
Method: PUT
Content-type: application/json; charset=utf-8
API Description: This can be used to set the language and country of the device. New settings will take effect after power cycling the device.
Request
Name | Type | Example | Description |
---|---|---|---|
language | String | zh | Language settings. Reference: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes |
country | String | CN | Country settings. Reference: https://en.wikipedia.org/wiki/ISO_3166-2 |
Example
{
"language ": "zh",
"country": "CN"
}
# Get Language and Country Settings of Device
Path:
/api/locale.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to get the language and country settings of the device.
Response
Name | Type | Example | Description |
---|---|---|---|
language | String | zh | Language settings. Reference: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes |
country | String | CN | Country settings. Reference: https://en.wikipedia.org/wiki/ISO_3166-2 |
Example
{
"language ": "zh",
"country": "CN"
}