Weblate · Schema

Weblate user data export

LocalizationTranslationInternationalizationOpen SourceContinuous LocalizationVersion Control

Properties

Name Type Description
basic object
profile object
auditlog array
View JSON Schema on GitHub

JSON Schema

weblate-userdata.schema.json Raw ↑
{
  "$id": "https://weblate.org/schemas/weblate-userdata.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "definitions": {},
  "title": "Weblate user data export",
  "required": [
    "basic",
    "profile",
    "auditlog"
  ],
  "properties": {
    "basic": {
      "$id": "#root/basic",
      "title": "Basic",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "username",
        "full_name",
        "email",
        "date_joined"
      ],
      "properties": {
        "username": {
          "$id": "#root/basic/username",
          "title": "Username",
          "type": "string",
          "default": "",
          "examples": [
            "admin"
          ]
        },
        "full_name": {
          "$id": "#root/basic/full_name",
          "title": "Full name",
          "type": "string",
          "default": "",
          "examples": [
            "Weblate Admin"
          ]
        },
        "email": {
          "$id": "#root/basic/email",
          "title": "E-mail",
          "type": "string",
          "format": "email",
          "default": "",
          "examples": [
            "[email protected]"
          ]
        },
        "date_joined": {
          "$id": "#root/basic/date_joined",
          "title": "Date joined",
          "type": "string",
          "format": "date-time",
          "default": "",
          "examples": [
            "2019-11-18T18:53:54.862Z"
          ]
        }
      }
    },
    "profile": {
      "$id": "#root/profile",
      "title": "Profile",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "language",
        "suggested",
        "translated",
        "uploaded",
        "hide_completed",
        "secondary_in_zen",
        "hide_source_secondary",
        "editor_link",
        "translate_mode",
        "zen_mode",
        "special_chars",
        "dashboard_view",
        "dashboard_component_list",
        "languages",
        "secondary_languages",
        "watched"
      ],
      "properties": {
        "language": {
          "$id": "#root/profile/language",
          "title": "Language",
          "type": "string",
          "default": "",
          "examples": [
            "cs"
          ],
          "pattern": "^[^ ]*$"
        },
        "suggested": {
          "$id": "#root/profile/suggested",
          "title": "Number of suggested strings",
          "type": "integer",
          "examples": [
            1
          ],
          "default": 0
        },
        "translated": {
          "$id": "#root/profile/translated",
          "title": "Number of translated strings",
          "type": "integer",
          "examples": [
            24
          ],
          "default": 0
        },
        "uploaded": {
          "$id": "#root/profile/uploaded",
          "title": "Number of uploaded screenshots",
          "type": "integer",
          "examples": [
            1
          ],
          "default": 0
        },
        "hide_completed": {
          "$id": "#root/profile/hide_completed",
          "title": "Hide completed translations on the dashboard",
          "type": "boolean",
          "examples": [
            false
          ],
          "default": true
        },
        "secondary_in_zen": {
          "$id": "#root/profile/secondary_in_zen",
          "title": "Show secondary translations in the Zen mode",
          "type": "boolean",
          "examples": [
            true
          ],
          "default": true
        },
        "hide_source_secondary": {
          "$id": "#root/profile/hide_source_secondary",
          "title": "Hide source if a secondary translation exists",
          "type": "boolean",
          "examples": [
            false
          ],
          "default": true
        },
        "editor_link": {
          "$id": "#root/profile/editor_link",
          "title": "Editor link",
          "type": "string",
          "default": "",
          "examples": [
            ""
          ],
          "pattern": "^.*$"
        },
        "translate_mode": {
          "$id": "#root/profile/translate_mode",
          "title": "Translation editor mode",
          "type": "integer",
          "examples": [
            0
          ],
          "default": 0
        },
        "zen_mode": {
          "$id": "#root/profile/zen_mode",
          "title": "Zen editor mode",
          "type": "integer",
          "examples": [
            0
          ],
          "default": 0
        },
        "special_chars": {
          "$id": "#root/profile/special_chars",
          "title": "Special characters",
          "type": "string",
          "default": "",
          "examples": [
            "  "
          ],
          "pattern": "^.*$"
        },
        "theme": {
          "$id": "#root/profile/theme",
          "title": "Theme",
          "type": "string",
          "default": "auto",
          "examples": [
            "auto"
          ],
          "pattern": "^(auto|dark|light)$"
        },
        "dashboard_view": {
          "$id": "#root/profile/dashboard_view",
          "title": "Default dashboard view",
          "type": "integer",
          "examples": [
            1
          ],
          "default": 0
        },
        "dashboard_component_list": {
          "$id": "#root/profile/dashboard_component_list",
          "title": "Default component list",
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "integer"
            }
          ],
          "default": null
        },
        "languages": {
          "$id": "#root/profile/languages",
          "title": "Translated languages",
          "type": "array",
          "default": [],
          "items": {
            "$id": "#root/profile/languages/items",
            "title": "Language code",
            "type": "string",
            "default": "",
            "examples": [
              "cs"
            ],
            "pattern": "^.*$"
          }
        },
        "secondary_languages": {
          "$id": "#root/profile/secondary_languages",
          "title": "Secondary languages",
          "type": "array",
          "default": [],
          "items": {
            "$id": "#root/profile/secondary_languages/items",
            "title": "Language code",
            "type": "string",
            "default": "",
            "examples": [
              "sk"
            ],
            "pattern": "^.*$"
          }
        },
        "watched": {
          "$id": "#root/profile/watched",
          "title": "Watched projects",
          "type": "array",
          "default": [],
          "items": {
            "$id": "#root/profile/watched/items",
            "title": "Project slug",
            "type": "string",
            "default": "",
            "examples": [
              "weblate"
            ],
            "pattern": "^.*$"
          }
        }
      }
    },
    "auditlog": {
      "$id": "#root/auditlog",
      "title": "Audit log",
      "type": "array",
      "default": [],
      "items": {
        "$id": "#root/auditlog/items",
        "title": "Items",
        "type": "object",
        "required": [
          "address",
          "user_agent",
          "timestamp",
          "activity"
        ],
        "additionalProperties": false,
        "properties": {
          "address": {
            "$id": "#root/auditlog/items/address",
            "title": "IP address",
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "default": "",
                "examples": [
                  "127.0.0.1"
                ],
                "pattern": "^.*$"
              }
            ]
          },
          "user_agent": {
            "$id": "#root/auditlog/items/user_agent",
            "title": "User agent",
            "type": "string",
            "default": "",
            "examples": [
              "PC / Linux / Firefox 70.0"
            ],
            "pattern": "^.*$"
          },
          "timestamp": {
            "$id": "#root/auditlog/items/timestamp",
            "title": "Timestamp",
            "type": "string",
            "format": "date-time",
            "default": "",
            "examples": [
              "2019-11-18T18:58:30.845Z"
            ]
          },
          "activity": {
            "$id": "#root/auditlog/items/activity",
            "title": "Activity",
            "type": "string",
            "default": "",
            "examples": [
              "login"
            ],
            "pattern": "^.*$"
          }
        }
      }
    }
  }
}