diff --git a/src/components/ContentPreview/index.tsx b/src/components/ContentPreview/index.tsx index 44c8940..5cf0759 100644 --- a/src/components/ContentPreview/index.tsx +++ b/src/components/ContentPreview/index.tsx @@ -110,5 +110,13 @@ export default function ContentPreview({ return } - return
[{t('Cannot handle event of kind k', { k: event.kind })}]
+ return ( +
+ [ + {event.kind === kinds.EncryptedDirectMessage + ? t('Encrypted direct messages not supported') + : t('Cannot handle event of kind k', { k: event.kind })} + ] +
+ ) } diff --git a/src/components/Note/UnknownNote.tsx b/src/components/Note/UnknownNote.tsx index fa8e183..518a1f3 100644 --- a/src/components/Note/UnknownNote.tsx +++ b/src/components/Note/UnknownNote.tsx @@ -1,5 +1,5 @@ import { cn } from '@/lib/utils' -import { Event } from 'nostr-tools' +import { Event, kinds } from 'nostr-tools' import { useTranslation } from 'react-i18next' import ClientSelect from '../ClientSelect' @@ -13,7 +13,11 @@ export default function UnknownNote({ event, className }: { event: Event; classN className )} > -
{t('Cannot handle event of kind k', { k: event.kind })}
+
+ {event.kind === kinds.EncryptedDirectMessage + ? t('Encrypted direct messages not supported') + : t('Cannot handle event of kind k', { k: event.kind })} +
) diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index d3af665..99b3f39 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -178,6 +178,7 @@ export default { 'Supported NIPs': 'NIPs المدعومة', 'Open in a': 'فتح في {{a}}', 'Cannot handle event of kind k': 'لا يمكن معالجة الحدث من النوع {{k}}', + 'Encrypted direct messages not supported': 'الرسائل المباشرة المشفرة غير مدعومة', 'Sorry! The note cannot be found 😔': 'عذراً! لا يمكن العثور على الملاحظة 😔', 'This user has been muted': 'تم كتم هذا المستخدم', Wallet: 'المحفظة', diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index d8df8a4..b203d98 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -182,6 +182,7 @@ export default { 'Supported NIPs': 'Unterstützte NIPs', 'Open in a': 'Öffnen in {{a}}', 'Cannot handle event of kind k': 'Ereignis des Typs {{k}} kann nicht verarbeitet werden', + 'Encrypted direct messages not supported': 'Verschlüsselte Direktnachrichten werden nicht unterstützt', 'Sorry! The note cannot be found 😔': 'Entschuldigung! Die Notiz wurde nicht gefunden 😔', 'This user has been muted': 'Dieser Benutzer wurde stummgeschaltet', Wallet: 'Wallet', diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index ff0abb8..3dc725f 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -179,6 +179,7 @@ export default { 'Supported NIPs': 'Supported NIPs', 'Open in a': 'Open in {{a}}', 'Cannot handle event of kind k': 'Cannot handle event of kind {{k}}', + 'Encrypted direct messages not supported': 'Encrypted direct messages not supported', 'Sorry! The note cannot be found 😔': 'Sorry! The note cannot be found 😔', 'This user has been muted': 'This user has been muted', Wallet: 'Wallet', diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 72f27f3..397eb45 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -182,6 +182,7 @@ export default { 'Supported NIPs': 'NIPs soportados', 'Open in a': 'Abrir en {{a}}', 'Cannot handle event of kind k': 'No se puede manejar el evento de tipo {{k}}', + 'Encrypted direct messages not supported': 'Mensajes directos cifrados no compatibles', 'Sorry! The note cannot be found 😔': '¡Lo siento! No se pudo encontrar la nota 😔', 'This user has been muted': 'Este usuario ha sido silenciado', Wallet: 'Billetera', diff --git a/src/i18n/locales/fa.ts b/src/i18n/locales/fa.ts index e3de57a..f277363 100644 --- a/src/i18n/locales/fa.ts +++ b/src/i18n/locales/fa.ts @@ -180,6 +180,7 @@ export default { 'Supported NIPs': 'NIPهای پشتیبانی شده', 'Open in a': 'باز کردن در {{a}}', 'Cannot handle event of kind k': 'نمی‌توان رویداد از نوع {{k}} را پردازش کرد', + 'Encrypted direct messages not supported': 'پیام‌های مستقیم رمزگذاری‌شده پشتیبانی نمی‌شوند', 'Sorry! The note cannot be found 😔': 'متأسفانه! یادداشت یافت نشد 😔', 'This user has been muted': 'این کاربر بی‌صدا شده است', Wallet: 'کیف پول', diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 3e14bf5..dbcdd35 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -181,6 +181,7 @@ export default { 'Supported NIPs': 'NIPs supportés', 'Open in a': 'Ouvrir dans {{a}}', 'Cannot handle event of kind k': "Impossible de traiter l'événement de type {{k}}", + 'Encrypted direct messages not supported': 'Messages directs chiffrés non pris en charge', 'Sorry! The note cannot be found 😔': 'Désolé ! La note est introuvable 😔', 'This user has been muted': 'Cet utilisateur a été mis en sourdine', Wallet: 'Portefeuille', diff --git a/src/i18n/locales/hi.ts b/src/i18n/locales/hi.ts index 7fcf690..e1275bf 100644 --- a/src/i18n/locales/hi.ts +++ b/src/i18n/locales/hi.ts @@ -181,6 +181,7 @@ export default { 'Supported NIPs': 'समर्थित NIPs', 'Open in a': '{{a}} में खोलें', 'Cannot handle event of kind k': 'प्रकार {{k}} के इवेंट को हैंडल नहीं कर सकते', + 'Encrypted direct messages not supported': 'एन्क्रिप्टेड डायरेक्ट मैसेज समर्थित नहीं हैं', 'Sorry! The note cannot be found 😔': 'माफ करें! नोट नहीं मिल सका 😔', 'This user has been muted': 'इस उपयोगकर्ता को म्यूट कर दिया गया है', Wallet: 'वॉलेट', diff --git a/src/i18n/locales/hu.ts b/src/i18n/locales/hu.ts index ed7ce09..916cef0 100644 --- a/src/i18n/locales/hu.ts +++ b/src/i18n/locales/hu.ts @@ -180,6 +180,7 @@ export default { 'Supported NIPs': 'Támogatott NIP-ek', 'Open in a': 'Megnyitás itt: {{a}}', 'Cannot handle event of kind k': 'Nem támogatott ez a fajta esemény: {{k}}', + 'Encrypted direct messages not supported': 'A titkosított közvetlen üzenetek nem támogatottak', 'Sorry! The note cannot be found 😔': 'Ejj! A poszt nem található 😔', 'This user has been muted': 'Ez a felhasználó némítva van', Wallet: 'Tárca', diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index 3cbca05..ff1965f 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -181,6 +181,7 @@ export default { 'Supported NIPs': 'NIP supportati', 'Open in a': 'Apri in {{a}}', 'Cannot handle event of kind k': 'Impossibile gestire un evento di tipo {{k}}', + 'Encrypted direct messages not supported': 'Messaggi diretti crittografati non supportati', 'Sorry! The note cannot be found 😔': 'Spiacente! La nota non può essere trovata 😔', 'This user has been muted': 'Questo utente è stato zittito', Wallet: 'Wallet', diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index 98427cf..301c0aa 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -180,6 +180,7 @@ export default { 'Supported NIPs': '対応NIP', 'Open in a': '{{a}}で開く', 'Cannot handle event of kind k': '種類{{k}}のイベントは処理できません', + 'Encrypted direct messages not supported': '暗号化ダイレクトメッセージには対応していません', 'Sorry! The note cannot be found 😔': '申し訳ありません!ノートが見つかりません 😔', 'This user has been muted': 'このユーザーはミュートされています', Wallet: 'ウォレット', diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index 7744c02..3401dbc 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -181,6 +181,7 @@ export default { 'Supported NIPs': '지원 NIP', 'Open in a': '{{a}}에서 열기', 'Cannot handle event of kind k': '{{k}} 유형의 이벤트를 처리할 수 없습니다', + 'Encrypted direct messages not supported': '암호화된 다이렉트 메시지는 지원되지 않습니다', 'Sorry! The note cannot be found 😔': '죄송합니다! 해당 노트를 찾을 수 없습니다 😔', 'This user has been muted': '이 사용자는 차단되었습니다', Wallet: '지갑', diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index 315493c..56469c9 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -178,6 +178,7 @@ export default { 'Supported NIPs': 'Obsługiwane NIP-y', 'Open in a': 'Otwórz w {{a}}', 'Cannot handle event of kind k': 'Nie można obsłużyć zdarzenia typu {{k}}', + 'Encrypted direct messages not supported': 'Szyfrowane wiadomości bezpośrednie nie są obsługiwane', 'Sorry! The note cannot be found 😔 ': 'Przepraszam! Nie można znaleźć wpisu 😔', 'This user has been muted': 'Ten użytkownik został przyblokowany', Wallet: 'Portfel', diff --git a/src/i18n/locales/pt-BR.ts b/src/i18n/locales/pt-BR.ts index b21762e..dee71bc 100644 --- a/src/i18n/locales/pt-BR.ts +++ b/src/i18n/locales/pt-BR.ts @@ -181,6 +181,7 @@ export default { 'Supported NIPs': 'NIPs Suportados', 'Open in a': 'Abrir em {{a}}', 'Cannot handle event of kind k': 'Não é possível lidar com o evento do tipo {{k}}', + 'Encrypted direct messages not supported': 'Mensagens diretas criptografadas não suportadas', 'Sorry! The note cannot be found 😔': 'Desculpe! A nota não pode ser encontrada 😔', 'This user has been muted': 'Este usuário foi silenciado', Wallet: 'Carteira', diff --git a/src/i18n/locales/pt-PT.ts b/src/i18n/locales/pt-PT.ts index 6afc003..a53a73d 100644 --- a/src/i18n/locales/pt-PT.ts +++ b/src/i18n/locales/pt-PT.ts @@ -181,6 +181,7 @@ export default { 'Supported NIPs': 'NIPs Suportados', 'Open in a': 'Abrir em {{a}}', 'Cannot handle event of kind k': 'Não é possível lidar com o evento do tipo {{k}}', + 'Encrypted direct messages not supported': 'Mensagens diretas encriptadas não suportadas', 'Sorry! The note cannot be found 😔': 'Desculpe! A nota não pode ser encontrada 😔', 'This user has been muted': 'Este usuário foi silenciado', Wallet: 'Carteira', diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index d1911f9..9eac8d6 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -183,6 +183,7 @@ export default { 'Supported NIPs': 'Поддерживаемые NIP', 'Open in a': 'Открыть в {{a}}', 'Cannot handle event of kind k': 'Невозможно обработать событие типа {{k}}', + 'Encrypted direct messages not supported': 'Зашифрованные личные сообщения не поддерживаются', 'Sorry! The note cannot be found 😔': 'Извините! Заметка не найдена 😔', 'This user has been muted': 'Этот пользователь заглушен', Wallet: 'Кошелёк', diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index 3bdf76f..4c37d9d 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -178,6 +178,7 @@ export default { 'Supported NIPs': 'NIP ที่รองรับ', 'Open in a': 'เปิดใน {{a}}', 'Cannot handle event of kind k': 'ไม่สามารถจัดการเหตุการณ์ประเภท {{k}}', + 'Encrypted direct messages not supported': 'ไม่รองรับข้อความส่วนตัวที่เข้ารหัส', 'Sorry! The note cannot be found 😔': 'ขออภัย! ไม่พบโน้ต 😔', 'This user has been muted': 'ผู้ใช้นี้ถูกปิดเสียง', Wallet: 'กระเป๋าสตางค์', diff --git a/src/i18n/locales/zh-TW.ts b/src/i18n/locales/zh-TW.ts index 813c699..15b916d 100644 --- a/src/i18n/locales/zh-TW.ts +++ b/src/i18n/locales/zh-TW.ts @@ -180,6 +180,7 @@ export default { 'Supported NIPs': '支援的 NIP', 'Open in a': '在 {{a}} 中開啟', 'Cannot handle event of kind k': '無法處理類型為 {{k}} 的事件', + 'Encrypted direct messages not supported': '不支援加密私訊', 'Sorry! The note cannot be found 😔': '抱歉!找不到該筆記 😔', 'This user has been muted': '該使用者已被封鎖', Wallet: '錢包', diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index fc4ab94..9821a15 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -180,6 +180,7 @@ export default { 'Supported NIPs': '支持的 NIP', 'Open in a': '在 {{a}} 中打开', 'Cannot handle event of kind k': '无法处理类型为 {{k}} 的事件', + 'Encrypted direct messages not supported': '不支持加密私信', 'Sorry! The note cannot be found 😔': '抱歉!找不到该笔记 😔', 'This user has been muted': '该用户已被屏蔽', Wallet: '钱包',