5.9.3 api display language

The GET /api/display/language returns language of the current end-user session, default end-user language, supported languages by the device, and languages configured for selection on display.

The function is part of the Display service and the user must be assigned the Display Monitoring privilege for authentication if required. 

The GET method can be used for this function.

The function has no parameters.


The reply is in the application/json format and includes:

Parameter

Description

sessionCurrently

Currently selected language for the session (Sentrio Cabin only)

default

Language selected in the configuration of the device as default

supported

All languages supported by the device display, contains system languages (fixed) and custom (configurable texts by user)

enabled[]

languages configured for the menu on the display (can be selected by the the end-user when interacting with the device), the list is ordered in the order the device presents these options to the end user (Sentrio Cabin only)

Example:

GET /api/display/language
{
    "session": "en",
    "default": "en",
    "supported": {
        "system": [
            "en",
            "cs",
            "nl"
        ],
        "custom": "en"
    },
    "enabled": [
        "en",
        "cx-en",
        "nl"
    ]
}