propertly.io
DokumentacjaAPILista zmian

Get translations by language code

GET
/api/v1/translations/{language}

Returns translations (enumerations and field labels) for the specified language

Authorization

APIKeyHeader
headerAuthorization<token>

Path Parameters

language*LanguageCode

Supported language codes

Value in"en""pl"

Response Body

Successful response with translation data

application/json
  1. response

DTO for translations response

enums*

Dictionary of enum translations grouped by enum type

labels*

Dictionary of field label translations

curl -X GET 'https://headless-cms.propertly.io/api/v1/translations/en'
{  "enums": {    "property_type": {      "apartment": "Apartment",      "house": "House",      "commercial": "Commercial property",      "land": "Land"    },    "transaction_type": {      "sale": "For sale",      "rent": "For rent"    }  },  "labels": {    "price": "Price",    "area": "Area",    "rooms": "Number of rooms",    "floor": "Floor",    "year_built": "Year built",    "description": "Description",    "contact": "Contact"  }}

Ostatnia aktualizacja