{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.simplelocalize.io/schemas/translation",
  "title": "SimpleLocalize Translation",
  "description": "A translation string managed by SimpleLocalize, associated with a key, language, and optional namespace or customer segment.",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "Translation key identifier used to reference this translation in code"
    },
    "namespace": {
      "type": "string",
      "description": "Namespace for organizing translation keys into logical groups"
    },
    "language": {
      "type": "string",
      "description": "Language identifier (e.g., en, fr, de, ja) for this translation"
    },
    "text": {
      "type": "string",
      "description": "The translated text content"
    },
    "reviewStatus": {
      "type": "string",
      "description": "Review status indicating whether the translation has been reviewed",
      "enum": ["REVIEWED", "NOT_REVIEWED"]
    },
    "customerId": {
      "type": "string",
      "description": "Associated customer identifier for customer-specific translation overrides"
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of the last modification"
    }
  },
  "required": ["key", "language"]
}
