Capabilities
Get a Capability Localization by Locale
Changed onRetrieve translated values in a desired language (i.e. locale) for a Capability. A locale is the abbreviated, internationalization code for the requested language.
get/capabilities/{capabilityId}/{capabilityVersion}/i18n/{locale}
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.com
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
manufacturerNamestring
Secondary namespacing key for grouping presentations (formerly mnmn)
presentationIdstring required
System generated identifier that corresponds to a device presentation (formerly vid)
Response
successful return of a Capability localization
Example response
{
"tag": "en",
"label": "Modo de ar condicionado",
"description": "Modo de ar condicionado",
"attributes": {
"airConditionerMode": {
"displayTemplate": "é suposto {{device.label}} a palavra {{attribute}} igual a {{value}}.",
"label": "Este é o modo de ar condicionado",
"i18n": {
"value": {
"auto": {
"label": "Auto",
"description": "Este é o modo automático"
},
"cool": {
"label": "Frio",
"description": "Este é o modo frio"
}
}
}
}
},
"commands": {
"setAirConditionerMode": {
"arguments": {
"mode": {
"i18n": {
"auto": {
"label": "Auto"
},
"cool": {
"label": "Frio"
}
}
}
}
}
}
}Changes
- breaking
added the new required
queryrequest parameterpresentationId - info
added the new optional
queryrequest parametermanufacturerName
- breaking