Use l tag for languages

This commit is contained in:
Daniele Tonon 2024-03-18 20:53:56 +01:00
parent 0050e17b4c
commit a13f5453de

12
52.md
View File

@ -32,8 +32,7 @@ The list of tags are as follows:
* `address` (optional) address of the calendar event following ISO 19160:2015 and splitting the elements in the array; the country is specified in ISO 3166
* `place` (optional) name of the place of the calendar event. e.g. university, building, business, public space
* `g` (optional) [geohash](https://en.wikipedia.org/wiki/Geohash) to associate calendar event with a searchable physical location
* `languages` (optional) list
of [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag) indicating the major languages used in the event
* `l` (optional, repeated) [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) indicating the language used in the event
* `p` (optional, repeated) 32-bytes hex pubkey of a participant, optional recommended relay URL, and participant's role in the meeting
* `t` (optional, repeated) hashtag to categorize calendar event
* `r` (optional, repeated) references / links to web pages, documents, video calls, recorded videos, etc.
@ -68,7 +67,8 @@ The following tags are deprecated:
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "<role>"],
// Languages
["languages", "<lang>", "<lang>"]
["l", "<lang>"]
["l", "<lang>"]
// Hashtags
["t", "<tag>"],
@ -103,8 +103,7 @@ The list of tags are as follows:
* `place` (recommended if `type` is _onsite_) name of the place of the calendar event. e.g. university, building, business, public space
* `g` (optional) [geohash](https://en.wikipedia.org/wiki/Geohash) to associate calendar event with a searchable physical location
* `url` (recommended if `type` is _online_) the url where the user can access the calendar event; it can be a nostr:naddr1xxx (preferably a NIP-53 event) or an http(s)://xxx endpoint
* `languages` (optional) list
of [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag) indicating the major languages used in the event
* `l` (optional, repeated) [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) indicating the language used in the event
* `p` (optional, repeated) 32-bytes hex pubkey of a participant, optional recommended relay URL, and participant's role in the meeting
* `t` (optional, repeated) hashtag to categorize calendar event
* `r` (optional, repeated) references / links to web pages, documents, video calls, recorded videos, etc.
@ -140,7 +139,8 @@ The following tags are deprecated:
["url", "<nostr:naddr1xxx or a http(s)://xxx>"],
// Languages
["languages", "<lang>", "<lang>"]
["l", "<lang>"]
["l", "<lang>"]
// Participants
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "<role>"],