{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Internationalisation",
    "name": "i18n",
    "description": "Internationalisation configuration options",
    "type": "object",
    "properties": {
        "i18n": {
            "type": "object",
            "properties": {
                "enableAdminBookingTimeZonePicker": {
                    "type": "boolean",
                    "description": "Whether to show the time zone picker in the booking journey or not"
                },
                "enableMultiLanguageSupport": {
                    "type": "boolean",
                    "description": "Turns on multi language support from the API"
                },
                "language": {
                    "type": "object",
                    "properties": {
                        "default_language": {
                            "type": "string",
                            "default": "en"
                        },
                        "use_browser_language": {
                            "type": "boolean",
                             "default": true
                        },
                        "available_languages": {
                            "type": "array",
                            "items": [
                                {
                                    "type": "string"
                                }
                            ]
                        },
                        "available_language_associations": {
                            "type": "object",
                            "properties": {
                                "en_*": {
                                    "type": "string",
                                    "default": "en"
                                },
                                "fr_*": {
                                    "type": "string",
                                    "default": "fr"
                                }
                            }
                        }
                    }
                },
                "timezonePicker": {
                    "type": "object",
                    "properties": {
                        "defaultZone": {
                            "type": "string",
                            "default": "Europe/London"
                        },
                        "useBrowser": {
                            "type": "boolean",
                            "default": false
                        },
                        "useCompany": {
                            "type": "boolean",
                            "default": true
                        },
                        "useCustomList": {
                            "type": "boolean",
                            "default": true
                        },
                        "replaceBrowser": {
                            "type": "object",
                            "properties": {
                                "replace": {
                                    "type": "string",
                                    "default": ""
                                },
                                "replaceWith": {
                                    "type": "string",
                                    "default": ""
                                }
                            }
                        },
                        "filters": {
                            "type": "object",
                            "properties": {
                                "limitTo": {
                                    "type": "array"
                                },
                                "limitDaylightSaving": {
                                    "type": "array"
                                },
                                "limitStandard": {
                                    "type": "array"
                                },
                                "exclude": {
                                    "type": "array"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
