{"id":"e51888820aafa4bb1f0a35abde37a1adbcda7f073f53bf7d6c621a6274aff5e6","pubkey":"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c","created_at":1768085717,"kind":30817,"tags":[["d","trusted-translations"],["title","Trusted Translations"],["k","1011"],["k","10041"],["client","nostrhub.io"]],"content":"Trusted Translations\n--------------------\n\n`draft` `optional`\n\nThis NIP allows anyone to post a translation for any source event by using  `kind:76`.\n\n```js\n{\n  \"kind\": 76,\n  \"tags\": [\n    // source event and kind\n    [\"e\", \"<event_id>\", \"<relay>\"]\n    [\"k\", \"<event_kind>\"]\n\n    // language codes\n    [\"l\", \"<lang_code>\"], // e.g. \"en\"\n    [\"l\", \"<lang_code>\"], // e.g. \"en-us\"\n\n    // tag translations\n    [\"s\", \"title\", \"translated title tag\"]\n    [\"s\", \"summary\", \"translated summary tag\"]\n  ],\n  \"content\": \"this is a translated version of the original content\",\n  // ...other fields\n}\n```\n\n`e` tag points to the event being translated, `k` tag points to the kind of that event.\n\n`l` tags define the language this was translated to in lowercase codes as defined by ISO 639-1. \n\n`s` tags are the translations for tags in the source event. \n\n`.content` contains the translation of the original `.content`\n\nClients SHOULD request translations by `e` and `l` tags spoken by their user. For every tag being rendered, Clients SHOULD look for their translated versions.\n\nProviders SHOULD use the event id in the filter to know which events need translations.\n\nProviders MAY store their translations behind a paid relay with NIP-42 auth.\n\n## Declaring Translation Providers\n\nKind `10041` lists the user's authorized translation providers. Each `p` tag is followed by the `pubkey` of the service publishing kind 76s, and the relay translations can be found. Users can specify these publicly or privately by JSON-stringifying and encrypting the tag list in the `.content` using NIP-44. \n\n```js\n{\n  \"kind\": 10041,\n  \"tags\": [\n    [\"p\", \"<service_pubkey>\", \"<relay_hint>\"],\n\n    // languages spoken by this user\n    [\"l\", \"<lang_code>\"], // e.g. \"en\"\n    [\"l\", \"<lang_code>\"], // e.g. \"en-us\"\n  ]\n  //...\n}\n```\n\n`l` tags in this event are the languages the user understands and wants translations to.\n\nProviders SHOULD create the `10041` event and post to the user's outbox relay.","sig":"d7746487baa9ccaefc75454d3ab1a40cbebf083e70dae34bf77a6f1b0a0acb1d568928a257ebd882a0971be028be678578bfe70eed8614633aafb388ab95d5b8"}