{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/browser-i18n-json/latest.json",
  "title": "browser.i18n messages.json translation file",
  "x-lintel": {
    "source": "https://www.schemastore.org/browser.i18n.json",
    "sourceSha256": "a3cbb5d3fa605deaa2e0b7b6da7e11e519f246d99f7be07a51cf7fd22be1b073",
    "fileMatch": [
      "messages.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "additionalProperties": false,
  "patternProperties": {
    "^(?!@@)[@a-zA-Z0-9_-]+$": {
      "$ref": "#/$defs/translationEntry"
    }
  },
  "$defs": {
    "translationEntry": {
      "description": "Translation key",
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "Translation string"
        },
        "description": {
          "type": "string",
          "description": "(optional): Description of this string for the translator team"
        },
        "placeholders": {
          "$ref": "#/$defs/placeholders"
        }
      },
      "required": [
        "message"
      ],
      "additionalProperties": false
    },
    "placeholders": {
      "type": "object",
      "description": "(optional): List of placeholders that can be used in the message.",
      "additionalProperties": false,
      "patternProperties": {
        "^(?!@@)[@a-zA-Z0-9_-]+$": {
          "$ref": "#/$defs/placeholder"
        }
      }
    },
    "placeholder": {
      "description": "Placeholder key",
      "type": "object",
      "properties": {
        "content": {
          "type": "string",
          "description": "Value to insert. It can contain a variable $1"
        },
        "example": {
          "type": "string",
          "description": "(optional) example of this placeholder"
        }
      },
      "required": [
        "content"
      ],
      "additionalProperties": false
    }
  }
}
