1.65 Internationalization

In order to retrieve key-value pairs for translated strings you can use the i18n resource.

/api/26/i18n

The endpoint is located at api/i18n and the request format is a simple array of the key-value pairs:

[
  "access_denied",
  "uploading_data_notification"
]

The request must be of type POST and use application/json as content-type. An example using curl, assuming the request data is saved as a file keys.json:

curl -d @keys.json "play.dhis2.org/demo/api/26/i18n" -X POST
  -H "Content-Type: application/json" -u admin:district -v

The result will look like this:

{
  "access_denied":"Access denied",
  "uploading_data_notification":"Uploading locally stored data to the server"
}