# Get translations by language code

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

Źródło: https://propertly.io/dokumentacja/api/tlumaczenia/get-translations
Ostatnia aktualizacja: 2026-10-15

`GET https://headless-cms.propertly.io/api/v1/translations/{language}`

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

Wymaga nagłówka `Authorization: <klucz API>`. Odwołania `$ref` wskazują na `components` w specyfikacji OpenAPI: https://propertly.io/openapi.json

```json
{
  "tags": [
    "Internationalization"
  ],
  "summary": "Get translations by language code",
  "description": "Returns translations (enumerations and field labels) for the specified language",
  "operationId": "get_translations_api_v1_translations__language__get",
  "security": [
    {
      "APIKeyHeader": []
    }
  ],
  "parameters": [
    {
      "name": "language",
      "in": "path",
      "required": true,
      "schema": {
        "$ref": "#/components/schemas/LanguageCode"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful response with translation data",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TranslationResponseDto"
          },
          "example": {
            "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"
            }
          }
        }
      }
    },
    "401": {
      "description": "Unauthorized",
      "content": {
        "application/json": {
          "examples": {
            "MissingKey": {
              "summary": "No key provided",
              "value": {
                "detail": "API key is required"
              }
            },
            "InvalidKey": {
              "summary": "Invalid key",
              "value": {
                "detail": "Invalid API key"
              }
            },
            "InactiveKey": {
              "summary": "Inactive key",
              "value": {
                "detail": "API key is not active"
              }
            }
          }
        }
      }
    },
    "404": {
      "description": "Translations not found for language code: LanguageCode.EN"
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "500": {
      "description": "Error retrieving translations: Exception thrown during translation retrieval"
    }
  }
}
```
