{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/browser.i18n.json",
  "additionalProperties": false,
  "definitions": {
    "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": "#/definitions/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": "#/definitions/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
    }
  },
  "patternProperties": {
    "^(?!@@)[@a-zA-Z0-9_-]+$": {
      "$ref": "#/definitions/translationEntry"
    }
  },
  "title": "browser.i18n messages.json translation file",
  "type": "object"
}
