How can we help?

Searching:

0 results found

Locales/[locale]

GET /api/Locales/[locale]

Description

Retrieves the dictionary (keys and values) of the requested language.

See the following for request and response details ‒

See Also

Request ‒ Locales/[locale]

This request can be called in two different ways, as follows –

  • Without specifying the language, such as – GET /api/locale, which returns the dictionary of the default language of the Application (as specified by the appId in the request header). The default language of an Application is defined by the Applications/Post endpoint in the cultureInfo.

– OR –

  • By specifying the language as a two-letter property in the request, such as – GET /api/locale/de, which requests the Axonize dictionary in German.
Example JSON Locales/[locale] Request

curl -X GET \

https://api.stg.axonize.com/api/locales \

-H ‘Content-Type: application/json’ \

-H ‘Authorization: Token’ \

-H ‘appId: be517433-c4b8-4788-9258-1ba220123456’ \

Example JSON Locales/[locale] by Language Request

curl -X GET \

https://api.stg.axonize.com/api/locales/de \

-H ‘Content-Type: application/json’ \

-H ‘Authorization: Token’ \

-H ‘appId: be517433-c4b8-4788-9258-1ba220123456’ \

 

{

“msg_delete”: “Löschen”,

“msg_device”: “Gerät”,

“msg_day(s)”: “Tag(e)”,

“msg_door_close”: “Geschlossen”

.

.

.

}

 

Response ‒ Locales/[locale]

The response contains the dictionary of a specific language, which consists of keys and values of each of the textual strings used in Axonize.

Example JSON Locales/[locale] Response

Status 200 – OK

{

“msg_delete”: “Delete”,

“msg_device”: “Device”,

“msg_day(s)”: “day(s)”,

“msg_door_close”: “Close”

.

.

.

}