Skip to content

Locale ​

Manage and retrieve translations for various text strings used across the Amili platform. Each locale entry contains translations for multiple languages and can be associated with specific applications.

Available Endpoints ​

MethodEndpointDescription
GET/localesRetrieve a list of locale entries
GET/locales/{id}Retrieve a specific locale entry

Example Request ​

Below is an example of retrieving a specific locale entry. Other operations follow similar request/response patterns with the same data structure.

URL: GET /locales/61b21dc50e8820cff2c5d888

Headers:

x-api-key: {your_access_token}

Response Code: 200 OK

Response Body:

json
{
  "_id": "61b21dc50e8820cff2c5d888",
  "application": "ada_agreement",
  "locale_tag": "common__case_cancel",
  "description": "",
  "translations": {
    "en": {
      "translation": "Revoked case",
      "comment": ""
    },
    "sv": {
      "translation": "Återkallat ärende",
      "comment": ""
    }
  },
  "machine_translations": {
    "fi": {
      "translation": "Peruutettu tapaus",
      "comment": "language: finnish"
    },
    "da": {
      "translation": "Ophævet sag",
      "comment": "language: danish"
    }
  },
  "_updated": "Tue, 04 Jan 2022 14:54:05 GMT",
  "_created": "Thu, 09 Dec 2021 15:16:21 GMT",
  "translation_pending": false,
  "_etag": "05bd52bbdd9946cd878520e64647b118"
}

Response Properties ​

PropertyTypeRequiredDescription
_idstringYesUnique identifier for the locale entry
applicationstringYesApplication identifier (e.g. "ada_agreement")*
locale_tagstringYesUnique tag identifying the translation string
descriptionstringNoOptional description of the translation's usage
translationsobjectYesManual translations in different languages
machine_translationsobjectNoAutomatically generated translations
translation_pendingbooleanYesWhether translation updates are pending
_createdstringYesCreation timestamp
_updatedstringYesLast update timestamp
_etagstringYesEntity tag for concurrency control

Translation Properties ​

PropertyTypeRequiredDescription
translationstringYesThe translated text
commentstringNoOptional comment about the translation

*) For complete list of values and details, please see Locale