---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/locale
additionalProperties: false
type: object
properties:
    region: { type: string,
        enum: [
            Africa,
            America,
            Antarctica,
            Arctic,
            Asia,
            Atlantic,
            Australia,
            Europe,
            Indian,
            Pacific
            ]
        }
    zone: { type: string }
    useSystemTimezone: { type: boolean, default: false }

    adjustLiveTimezone: { type: boolean, default: true }

    localeGenPath: { type: string }

    # TODO: refactor, this is reused in welcome
    geoip:
        additionalProperties: false
        type: object
        properties:
            style: { type: string, enum: [ none, fixed, xml, json ] }
            url: { type: string }
            selector: { type: string }
        required: [ style, url, selector ]

required: [ region, zone ]