{
"id": "eu.leksis.language",
"defs": {
"main": {
"key": "any",
"type": "record",
"record": {
"type": "object",
"required": [
"tag",
"translations",
"createdAt"
],
"properties": {
"tag": {
"type": "string",
"maxLength": 64,
"description": "Well-formed IETF BCP 47 language tag, normalized to lowercase (e.g. \"br\", \"br-gw\")."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared creation time of this record version."
},
"translations": {
"type": "array",
"items": {
"ref": "#translation",
"type": "ref"
},
"minLength": 1,
"description": "Names of this language in other languages. Must contain the endonym: an item whose languageID equals this record's tag, giving the language's name in itself."
}
}
},
"description": "A language of the Leksis dictionary, identified by its IETF (BCP 47) tag. Records prove authorship, not ownership: any user may publish a record for any tag, and the AppView treats the latest record for a tag as the current version, archiving previous ones. By convention the record key is the normalized (lowercase) tag."
},
"translation": {
"type": "object",
"required": [
"languageID",
"translation"
],
"properties": {
"languageID": {
"type": "string",
"maxLength": 64,
"description": "BCP 47 tag of the language this name is written in."
},
"translation": {
"type": "string",
"maxLength": 256,
"description": "The language's name written in the language identified by languageID.",
"maxGraphemes": 128
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}