{
  "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "$schema": { "type": "string" },
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "propertyNames": { "type": "string" },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "setId": {
              "type": "string",
              "minLength": 1,
              "description": "Identifier of the set."
            },
            "lessonTitles": {
              "type": "object",
              "propertyNames": { "type": "string" },
              "additionalProperties": { "type": "string" },
              "description": "Mapping of lessonId to localized lesson title."
            },
            "pauseAndDiscuss": {
              "type": "string",
              "description": "Localized text for 'Pause and Discuss' prompts. Used for lesson videos."
            },
            "sectionBodies": {
              "type": "object",
              "propertyNames": { "type": "string" },
              "additionalProperties": { "type": "string" },
              "description": "Mapping of sectionId to localized section body text."
            },
            "sectionHeaders": {
              "type": "object",
              "propertyNames": { "type": "string" },
              "additionalProperties": { "type": "string" },
              "description": "Mapping of sectionId to localized section header text."
            },
            "setDescription": {
              "type": "string",
              "description": "Localized description for the set."
            },
            "setTag": {
              "type": "string",
              "minLength": 1,
              "description": "Optional topical tag for the set."
            },
            "setTitle": {
              "type": "string",
              "description": "Localized title for the set."
            }
          },
          "required": ["setId", "lessonTitles", "setTitle"],
          "additionalProperties": false
        },
        "description": "Array of translated sets for a given 3-letter language id (ISO-ish)."
      },
      "description": "Record of language ids to arrays of translated sets used by the app. Produced by scripts/prep/combine.ts (setTranslations.json). Each set item merges metadata translation fields (setTitle, setDescription, lessonTitles, etc.) under a setId."
    }
  },
  "required": ["$schema", "data"]
}
