# eu.leksis.language

> Published by [lexicons.leksis.eu](https://lexicon.garden/identity/did:plc:nidmwiy3qhrf3idipbfjt6b6)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:nidmwiy3qhrf3idipbfjt6b6/eu.leksis.language)
- [Documentation](https://lexicon.garden/lexicon/did:plc:nidmwiy3qhrf3idipbfjt6b6/eu.leksis.language/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:nidmwiy3qhrf3idipbfjt6b6/eu.leksis.language/examples)

## Definitions

### `eu.leksis.language`

**Type**: `record`

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.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes | Well-formed IETF BCP 47 language tag, normalized to lowercase (e.g. "br", "br-gw"). |
| `createdAt` | `string` (datetime) | Yes | Client-declared creation time of this record version. |
| `translations` | `array` | Yes | 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. |

### `eu.leksis.language#translation`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `languageID` | `string` | Yes | BCP 47 tag of the language this name is written in. |
| `translation` | `string` | Yes | The language's name written in the language identified by languageID. |

## Raw Schema

```json
{
  "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
}
```
