{
    "additionalProperties": false,
    "description": "Generate translate from ts interface.",
    "properties": {
        "$schema": {
            "type": "string"
        },
        "$tool": {
            "const": "ts-trans",
            "description": "Must be set to ts-trans.",
            "type": "string"
        },
        "dist": {
            "description": "The output root path (relative to the pwd).",
            "type": "string"
        },
        "langs": {
            "description": "Langs to exrtact. Field name will be used if lang not set.",
            "items": {
                "pattern": "^[a-z]{2}(-[A-Z]{2})?$",
                "type": "string"
            },
            "minItems": 1,
            "type": "array"
        },
        "pipePrefix": {
            "default": "",
            "description": "Prefix to pipe name, pipe name is used as file name.",
            "type": "string"
        },
        "src": {
            "description": "Input go files(Glob), expand with env first.",
            "items": {
                "preproccess": "env",
                "type": "string"
            },
            "minItems": 1,
            "type": "array"
        },
        "tag": {
            "default": "tr",
            "description": "Field with this tag content will be parsed.",
            "type": "string"
        }
    },
    "required": [
        "$tool",
        "src",
        "dist",
        "tag",
        "langs",
        "pipePrefix"
    ],
    "title": "ts-trans Config",
    "type": "object"
}