From faed8736a876bd9281b081f489a82f49137d55ef Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 15:58:04 +0100 Subject: [PATCH 1/7] fix(author sidebar): handle nullish values in karma calculation to prevent NaN --- src/components/author-sidebar/author-sidebar.tsx | 3 +-- src/lib/utils/user-utils.ts | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/author-sidebar/author-sidebar.tsx b/src/components/author-sidebar/author-sidebar.tsx index 8b2a1ddc..a3fcb85c 100644 --- a/src/components/author-sidebar/author-sidebar.tsx +++ b/src/components/author-sidebar/author-sidebar.tsx @@ -83,8 +83,7 @@ const AuthorSidebar = () => { const address = isAuthorPage ? params?.authorAddress : isProfilePage ? profileAccount?.author?.shortAddress : ''; const karma = isAuthorPage ? estimatedAuthorKarma : isProfilePage ? profileAccount?.karma : ''; - const postScore = isNaN(karma?.postScore) ? 0 : karma?.postScore; - const replyScore = isNaN(karma?.replyScore) ? 0 : karma?.replyScore; + const { postScore, replyScore } = karma; const oldestCommentTimestamp = isAuthorPage ? authorOldestCommentTimestamp : isProfilePage ? profileOldestAccountTimestamp : Date.now(); const displayName = isAuthorPage ? authorAccount?.author?.displayName : isProfilePage ? profileAccount?.author?.displayName : ''; diff --git a/src/lib/utils/user-utils.ts b/src/lib/utils/user-utils.ts index c6461449..dfee847f 100644 --- a/src/lib/utils/user-utils.ts +++ b/src/lib/utils/user-utils.ts @@ -42,7 +42,11 @@ export const estimateAuthorKarma = (accountComments: (Comment | undefined)[]): S accountComments.forEach((comment) => { if (comment) { - const score = comment.upvoteCount - comment.downvoteCount; + // Ensure upvoteCount and downvoteCount are treated as numbers, defaulting to 0 if null or undefined + const upvotes = comment.upvoteCount ?? 0; + const downvotes = comment.downvoteCount ?? 0; + const score = upvotes - downvotes; + if (comment.parentCid) { replyScore += score; } else { From d4f2b12001844fcaed3baa2d09b0d21c7fbfa676 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 16:40:13 +0100 Subject: [PATCH 2/7] chore(translations): old, copy link, link copied, don't translate permalink and embed --- public/translations/ar/default.json | 5 ++- public/translations/bn/default.json | 5 ++- public/translations/cs/default.json | 5 ++- public/translations/da/default.json | 5 ++- public/translations/de/default.json | 5 ++- public/translations/el/default.json | 5 ++- public/translations/en/default.json | 5 ++- public/translations/es/default.json | 5 ++- public/translations/fa/default.json | 5 ++- public/translations/fi/default.json | 5 ++- public/translations/fil/default.json | 5 ++- public/translations/fr/default.json | 5 ++- public/translations/he/default.json | 5 ++- public/translations/hi/default.json | 5 ++- public/translations/hu/default.json | 5 ++- public/translations/id/default.json | 5 ++- public/translations/it/default.json | 5 ++- public/translations/ja/default.json | 5 ++- public/translations/ko/default.json | 5 ++- public/translations/mr/default.json | 5 ++- public/translations/nl/default.json | 5 ++- public/translations/no/default.json | 5 ++- public/translations/pl/default.json | 5 ++- public/translations/pt/default.json | 5 ++- public/translations/ro/default.json | 5 ++- public/translations/ru/default.json | 5 ++- public/translations/sq/default.json | 5 ++- public/translations/sv/default.json | 5 ++- public/translations/te/default.json | 5 ++- public/translations/th/default.json | 5 ++- public/translations/tr/default.json | 5 ++- public/translations/uk/default.json | 5 ++- public/translations/ur/default.json | 5 ++- public/translations/vi/default.json | 5 ++- public/translations/zh/default.json | 5 ++- .../post/comment-tools/comment-tools.tsx | 4 +- .../comment-tools/share-menu/share-menu.tsx | 5 ++- src/views/profile/profile.tsx | 41 +++++++++---------- 38 files changed, 165 insertions(+), 60 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 1c022f17..c058a2d9 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -147,5 +147,8 @@ "unhide": "إظهار", "unblock": "إلغاء الحظر", "undo": "تراجع", - "post_hidden": "المنشور مخفي" + "post_hidden": "المنشور مخفي", + "old": "قديمة", + "copy_link": "انسخ الرابط", + "link_copied": "تم نسخ الرابط" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 12aadc7f..f54a8c4f 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -147,5 +147,8 @@ "unhide": "দেখাও", "unblock": "ব্লক বাতিল", "undo": "পূর্ববর্তী করা", - "post_hidden": "পোস্ট লুকানো" + "post_hidden": "পোস্ট লুকানো", + "old": "পুরাতন", + "copy_link": "লিংক কপি করুন", + "link_copied": "লিংক কপি হয়েছে" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index a0f54355..8d0ef8ea 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -147,5 +147,8 @@ "unhide": "zobrazit", "unblock": "odblokovat", "undo": "vrátit zpět", - "post_hidden": "skrytý příspěvek" + "post_hidden": "skrytý příspěvek", + "old": "staré", + "copy_link": "kopírovat odkaz", + "link_copied": "odkaz byl zkopírován" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 4242caae..394a1878 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -147,5 +147,8 @@ "unhide": "vis", "unblock": "fjern blokering", "undo": "fortryd", - "post_hidden": "skjult indlæg" + "post_hidden": "skjult indlæg", + "old": "gamle", + "copy_link": "kopier linket", + "link_copied": "link kopieret" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 77601b8d..85b15d8e 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -147,5 +147,8 @@ "unhide": "anzeigen", "unblock": "Blockierung aufheben", "undo": "rückgängig machen", - "post_hidden": "versteckter Beitrag" + "post_hidden": "versteckter Beitrag", + "old": "alt", + "copy_link": "Link kopieren", + "link_copied": "Link kopiert" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 93a3fc16..e51ff2c8 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -147,5 +147,8 @@ "unhide": "εμφάνιση", "unblock": "αναίρεση φραγής", "undo": "αναίρεση", - "post_hidden": "κρυφή δημοσίευση" + "post_hidden": "κρυφή δημοσίευση", + "old": "παλιά", + "copy_link": "αντιγραφή συνδέσμου", + "link_copied": "ο σύνδεσμος αντιγράφηκε" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index a505fcf3..eab9a678 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -147,5 +147,8 @@ "unhide": "unhide", "unblock": "unblock", "undo": "undo", - "post_hidden": "post hidden" + "post_hidden": "post hidden", + "old": "old", + "copy_link": "copy link", + "link_copied": "link copied" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 1220d2ae..baf42236 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -147,5 +147,8 @@ "unhide": "mostrar", "unblock": "desbloquear", "undo": "deshacer", - "post_hidden": "publicación oculta" + "post_hidden": "publicación oculta", + "old": "antiguos", + "copy_link": "copiar enlace", + "link_copied": "enlace copiado" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index dcd7f5d5..b3bad6bf 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -147,5 +147,8 @@ "unhide": "نمایش دادن", "unblock": "لغو مسدودیت", "undo": "لغو", - "post_hidden": "پست مخفی" + "post_hidden": "پست مخفی", + "old": "قدیمی", + "copy_link": "کپی کردن لینک", + "link_copied": "لینک کپی شد" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 9c4d18c0..49a1ab10 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -147,5 +147,8 @@ "unhide": "näytä", "unblock": "poista esto", "undo": "peruuta", - "post_hidden": "piilotettu viesti" + "post_hidden": "piilotettu viesti", + "old": "vanhat", + "copy_link": "kopioi linkki", + "link_copied": "linkki kopioitu" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index da9a2044..668df57a 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -147,5 +147,8 @@ "unhide": "ibalik", "unblock": "ibinuka", "undo": "ibalik", - "post_hidden": "post na itinago" + "post_hidden": "post na itinago", + "old": "lumang", + "copy_link": "kopyahin ang link", + "link_copied": "nakopya ang link" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 009e10b7..2d2fb832 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -147,5 +147,8 @@ "unhide": "afficher", "unblock": "débloquer", "undo": "annuler", - "post_hidden": "publication masquée" + "post_hidden": "publication masquée", + "old": "anciens", + "copy_link": "copier le lien", + "link_copied": "lien copié" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index a3962e94..dcebc5ef 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -147,5 +147,8 @@ "unhide": "הצג", "unblock": "ביטול חסימה", "undo": "בטל", - "post_hidden": "הפוסט מוסתר" + "post_hidden": "הפוסט מוסתר", + "old": "ישנים", + "copy_link": "העתק קישור", + "link_copied": "הקישור הועתק" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 52451107..1895d504 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -147,5 +147,8 @@ "unhide": "दिखाएं", "unblock": "ब्लॉक को खोलें", "undo": "पूर्ववत करें", - "post_hidden": "पोस्ट छुपी हुई" + "post_hidden": "पोस्ट छुपी हुई", + "old": "पुराने", + "copy_link": "लिंक कॉपी करें", + "link_copied": "लिंक कॉपी किया गया" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 28244473..dd8f448f 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -147,5 +147,8 @@ "unhide": "megjelenít", "unblock": "blokk feloldása", "undo": "visszavon", - "post_hidden": "elrejtett poszt" + "post_hidden": "elrejtett poszt", + "old": "régi", + "copy_link": "link másolása", + "link_copied": "link másolva" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 5d7044e9..0be27831 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -147,5 +147,8 @@ "unhide": "tampilkan", "unblock": "batalkan blokir", "undo": "batalkan", - "post_hidden": "postingan tersembunyi" + "post_hidden": "postingan tersembunyi", + "old": "lama", + "copy_link": "salin tautan", + "link_copied": "tautan disalin" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 7e08d520..149eb169 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -147,5 +147,8 @@ "unhide": "mostra", "unblock": "sblocca", "undo": "annulla", - "post_hidden": "post nascosto" + "post_hidden": "post nascosto", + "old": "vecchi", + "copy_link": "copia link", + "link_copied": "link copiato" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 99d8f8ad..35b1ba66 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -147,5 +147,8 @@ "unhide": "表示", "unblock": "ブロック解除", "undo": "取り消し", - "post_hidden": "非表示の投稿" + "post_hidden": "非表示の投稿", + "old": "古い", + "copy_link": "リンクをコピー", + "link_copied": "リンクがコピーされました" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 8be19592..e58431ec 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -147,5 +147,8 @@ "unhide": "보이기", "unblock": "차단 해제", "undo": "실행 취소", - "post_hidden": "숨겨진 게시물" + "post_hidden": "숨겨진 게시물", + "old": "오래된", + "copy_link": "링크 복사", + "link_copied": "링크 복사됨" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 417854b6..990a6092 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -147,5 +147,8 @@ "unhide": "दाखवा", "unblock": "ब्लॉक काढा", "undo": "रद्द करा", - "post_hidden": "पोस्ट लपविली" + "post_hidden": "पोस्ट लपविली", + "old": "जुने", + "copy_link": "लिंक कॉपी करा", + "link_copied": "लिंक कॉपी केला गेला" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 6c7ead7b..43b730c9 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -147,5 +147,8 @@ "unhide": "toon", "unblock": "deblokkeren", "undo": "ongedaan maken", - "post_hidden": "verborgen bericht" + "post_hidden": "verborgen bericht", + "old": "oud", + "copy_link": "link kopiëren", + "link_copied": "link gekopieerd" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 634b4747..835bc727 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -147,5 +147,8 @@ "unhide": "vis", "unblock": "opphav blokkering", "undo": "angre", - "post_hidden": "skjult innlegg" + "post_hidden": "skjult innlegg", + "old": "gamle", + "copy_link": "kopier lenken", + "link_copied": "lenken er kopiert" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 0b066dc5..153745fa 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -147,5 +147,8 @@ "unhide": "pokaż", "unblock": "odblokuj", "undo": "cofnij", - "post_hidden": "ukryty post" + "post_hidden": "ukryty post", + "old": "stare", + "copy_link": "skopiuj link", + "link_copied": "skopiowano link" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 61de562e..034c75dc 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -147,5 +147,8 @@ "unhide": "mostrar", "unblock": "desbloquear", "undo": "desfazer", - "post_hidden": "postagem oculta" + "post_hidden": "postagem oculta", + "old": "antigos", + "copy_link": "copiar link", + "link_copied": "link copiado" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 2c9c1d06..960cfbe5 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -147,5 +147,8 @@ "unhide": "afișează", "unblock": "deblochează", "undo": "anulează", - "post_hidden": "postare ascunsă" + "post_hidden": "postare ascunsă", + "old": "vechi", + "copy_link": "copiază linkul", + "link_copied": "link copiat" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 07de7439..759e056c 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -147,5 +147,8 @@ "unhide": "показать", "unblock": "разблокировать", "undo": "отменить", - "post_hidden": "скрытый пост" + "post_hidden": "скрытый пост", + "old": "старые", + "copy_link": "скопировать ссылку", + "link_copied": "ссылка скопирована" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 5b0eb9a8..c547d8df 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -147,5 +147,8 @@ "unhide": "shfaq", "unblock": "zhbllokimi", "undo": "anullo", - "post_hidden": "postimi i fshehtë" + "post_hidden": "postimi i fshehtë", + "old": "e vjetra", + "copy_link": "kopjo lidhjen", + "link_copied": "lidhja u kopjua" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 6fdeea28..8eb7ab73 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -147,5 +147,8 @@ "unhide": "visa", "unblock": "avblockera", "undo": "ångra", - "post_hidden": "dolt inlägg" + "post_hidden": "dolt inlägg", + "old": "gamla", + "copy_link": "kopiera länk", + "link_copied": "länk kopierad" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 179bf74f..477656e5 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -147,5 +147,8 @@ "unhide": "చూపించు", "unblock": "అవివాదించు", "undo": "రద్దు చేయండి", - "post_hidden": "పోస్టు దాచబడింది" + "post_hidden": "పోస్టు దాచబడింది", + "old": "పాత", + "copy_link": "లింక్ ను కాపి చేయండి", + "link_copied": "లింక్ కాపాడబడింది" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 74581e21..09583649 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -147,5 +147,8 @@ "unhide": "แสดง", "unblock": "ยกเลิกการบล็อก", "undo": "เลิกทำ", - "post_hidden": "โพสต์ที่ซ่อนอยู่" + "post_hidden": "โพสต์ที่ซ่อนอยู่", + "old": "เก่า", + "copy_link": "คัดลอกลิงก์", + "link_copied": "คัดลอกลิงก์แล้ว" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index d0a89307..637f3a13 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -147,5 +147,8 @@ "unhide": "göster", "unblock": "engeli kaldır", "undo": "geri al", - "post_hidden": "gizli gönderi" + "post_hidden": "gizli gönderi", + "old": "eski", + "copy_link": "bağlantıyı kopyala", + "link_copied": "bağlantı kopyalandı" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 4e85371f..a476f7be 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -147,5 +147,8 @@ "unhide": "показати", "unblock": "скасувати блокування", "undo": "скасувати", - "post_hidden": "прихований пост" + "post_hidden": "прихований пост", + "old": "старі", + "copy_link": "копіювати посилання", + "link_copied": "посилання скопійовано" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 477c654d..ead60541 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -147,5 +147,8 @@ "unhide": "دکھائیں", "unblock": "بلاک ہٹائیں", "undo": "واپس کریں", - "post_hidden": "پوسٹ چھپی ہوئی" + "post_hidden": "پوسٹ چھپی ہوئی", + "old": "پرانے", + "copy_link": "لنک کو کاپی کریں", + "link_copied": "لنک کاپی ہوگیا" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index d1e0d8a8..1284e3ce 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -147,5 +147,8 @@ "unhide": "hiện", "unblock": "bỏ chặn", "undo": "hoàn tác", - "post_hidden": "bài viết bị ẩn" + "post_hidden": "bài viết bị ẩn", + "old": "cũ", + "copy_link": "sao chép liên kết", + "link_copied": "liên kết đã được sao chép" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 3c567532..bf552c63 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -147,5 +147,8 @@ "unhide": "显示", "unblock": "解锁", "undo": "撤销", - "post_hidden": "隐藏帖子" + "post_hidden": "隐藏帖子", + "old": "旧的", + "copy_link": "复制链接", + "link_copied": "链接已复制" } \ No newline at end of file diff --git a/src/components/post/comment-tools/comment-tools.tsx b/src/components/post/comment-tools/comment-tools.tsx index 51e5e957..a458d760 100644 --- a/src/components/post/comment-tools/comment-tools.tsx +++ b/src/components/post/comment-tools/comment-tools.tsx @@ -59,7 +59,7 @@ const ReplyTools = ({ author, cid, hasLabel, index, isMod, showReplyForm, subple return ( <>
  • - {t('reply_permalink')} + permalink
  • @@ -87,7 +87,7 @@ const SingleReplyTools = ({ author, cid, hasLabel, index, isMod, parentCid, show return ( <>
  • - {t('reply_permalink')} + permalink
  • {t('save')} diff --git a/src/components/post/comment-tools/share-menu/share-menu.tsx b/src/components/post/comment-tools/share-menu/share-menu.tsx index e0f1f60f..af4f32d7 100644 --- a/src/components/post/comment-tools/share-menu/share-menu.tsx +++ b/src/components/post/comment-tools/share-menu/share-menu.tsx @@ -10,6 +10,7 @@ type ShareMenuProps = { }; const ShareButton = ({ cid, subplebbitAddress }: ShareMenuProps) => { + const { t } = useTranslation(); const [hasShared, setHasShared] = useState(false); useEffect(() => { @@ -26,7 +27,7 @@ const ShareButton = ({ cid, subplebbitAddress }: ShareMenuProps) => { copyShareLinkToClipboard(subplebbitAddress, cid); }} > - {hasShared ? 'link copied' : 'copy link'} + {hasShared ? t('link_copied') : t('copy_link')} ); }; @@ -59,7 +60,7 @@ const ShareMenu = ({ cid, subplebbitAddress }: ShareMenuProps) => {
    {t('crosspost')}
    -
    {t('embed')}
    +
    embed
    view on plebchan diff --git a/src/views/profile/profile.tsx b/src/views/profile/profile.tsx index 9248291f..ee3ce605 100644 --- a/src/views/profile/profile.tsx +++ b/src/views/profile/profile.tsx @@ -10,12 +10,17 @@ import Post from '../../components/post'; import Reply from '../../components/reply'; const lastVirtuosoStates: { [key: string]: StateSnapshot } = {}; +const sortTypes: string[] = ['new', 'old']; -const SortDropdown = ({ onSortChange }: { onSortChange: (sortType: string) => void }) => { +type SortDropdownProps = { + onSortChange: (sortType: string) => void; +}; + +const SortDropdown: React.FC = ({ onSortChange }) => { const { t } = useTranslation(); - const sortLabels = ['new', 'old']; - const [selectedSort, setSelectedSort] = useState('new'); - const [isDropdownOpen, setIsDropdownOpen] = useState(false); + const sortLabels: string[] = sortTypes.map((sortType) => t(sortType)); + const [selectedSort, setSelectedSort] = useState(sortTypes[0]); + const [isDropdownOpen, setIsDropdownOpen] = useState(false); const dropdownRef = useRef(null); const dropdownChoicesRef = useRef(null); const dropChoicesClass = isDropdownOpen ? styles.dropChoicesVisible : styles.dropChoicesHidden; @@ -31,12 +36,6 @@ const SortDropdown = ({ onSortChange }: { onSortChange: (sortType: string) => vo } }, []); - const handleSortChange = (sortType: string) => { - setSelectedSort(sortType); - setIsDropdownOpen(false); - onSortChange(sortType); - }; - useEffect(() => { document.addEventListener('mousedown', handleClickOutside); return () => { @@ -44,22 +43,22 @@ const SortDropdown = ({ onSortChange }: { onSortChange: (sortType: string) => vo }; }, [handleClickOutside]); + const handleSortChange = (sortType: string) => { + setSelectedSort(sortType); + setIsDropdownOpen(false); + onSortChange(sortType); + }; + return (
    {t('sorted_by')}: -
    { - setIsDropdownOpen(!isDropdownOpen); - }} - ref={dropdownRef} - > - {selectedSort} +
    setIsDropdownOpen(!isDropdownOpen)} ref={dropdownRef}> + {t(selectedSort)}
    - {sortLabels.map((filter: string, index: number) => ( -
    handleSortChange(filter)}> - {filter} + {sortLabels.map((label, index) => ( +
    handleSortChange(sortTypes[index])}> + {label}
    ))}
    From 6a755a8d0c676c8f9a78d10d0d587a520e5e3447 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 16:52:58 +0100 Subject: [PATCH 3/7] chore(translations): view on, block community, unblock community, block community alerts --- public/translations/ar/default.json | 7 ++++++- public/translations/bn/default.json | 7 ++++++- public/translations/cs/default.json | 7 ++++++- public/translations/da/default.json | 7 ++++++- public/translations/de/default.json | 7 ++++++- public/translations/el/default.json | 7 ++++++- public/translations/en/default.json | 7 ++++++- public/translations/es/default.json | 7 ++++++- public/translations/fa/default.json | 7 ++++++- public/translations/fi/default.json | 7 ++++++- public/translations/fil/default.json | 7 ++++++- public/translations/fr/default.json | 7 ++++++- public/translations/he/default.json | 7 ++++++- public/translations/hi/default.json | 7 ++++++- public/translations/hu/default.json | 7 ++++++- public/translations/id/default.json | 7 ++++++- public/translations/it/default.json | 7 ++++++- public/translations/ja/default.json | 7 ++++++- public/translations/ko/default.json | 7 ++++++- public/translations/mr/default.json | 7 ++++++- public/translations/nl/default.json | 7 ++++++- public/translations/no/default.json | 7 ++++++- public/translations/pl/default.json | 7 ++++++- public/translations/pt/default.json | 7 ++++++- public/translations/ro/default.json | 7 ++++++- public/translations/ru/default.json | 7 ++++++- public/translations/sq/default.json | 7 ++++++- public/translations/sv/default.json | 7 ++++++- public/translations/te/default.json | 7 ++++++- public/translations/th/default.json | 7 ++++++- public/translations/tr/default.json | 7 ++++++- public/translations/uk/default.json | 7 ++++++- public/translations/ur/default.json | 7 ++++++- public/translations/vi/default.json | 7 ++++++- public/translations/zh/default.json | 7 ++++++- .../post/comment-tools/share-menu/share-menu.tsx | 4 ++-- src/components/sidebar/sidebar.tsx | 10 ++++++---- 37 files changed, 218 insertions(+), 41 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index c058a2d9..058643b9 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -150,5 +150,10 @@ "post_hidden": "المنشور مخفي", "old": "قديمة", "copy_link": "انسخ الرابط", - "link_copied": "تم نسخ الرابط" + "link_copied": "تم نسخ الرابط", + "view_on": "عرض على {{destination}}", + "block_community": "حظر المجتمع", + "unblock_community": "إلغاء حظر المجتمع", + "block_community_alert": "هل أنت متأكد أنك تريد حظر هذا المجتمع؟", + "unblock_community_alert": "هل أنت متأكد أنك تريد إلغاء حظر هذا المجتمع؟" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index f54a8c4f..55836af4 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -150,5 +150,10 @@ "post_hidden": "পোস্ট লুকানো", "old": "পুরাতন", "copy_link": "লিংক কপি করুন", - "link_copied": "লিংক কপি হয়েছে" + "link_copied": "লিংক কপি হয়েছে", + "view_on": "{{destination}} দেখুন", + "block_community": "সম্প্রদায় ব্লক করুন", + "unblock_community": "সম্প্রদায় ব্লক আনব্লক করুন", + "block_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি ব্লক করতে চান?", + "unblock_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি অনব্লক করতে চান?" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 8d0ef8ea..37663525 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -150,5 +150,10 @@ "post_hidden": "skrytý příspěvek", "old": "staré", "copy_link": "kopírovat odkaz", - "link_copied": "odkaz byl zkopírován" + "link_copied": "odkaz byl zkopírován", + "view_on": "zobrazit na {{destination}}", + "block_community": "blokovat komunitu", + "unblock_community": "odblokovat komunitu", + "block_community_alert": "Jste si jisti, že chcete tuto komunitu blokovat?", + "unblock_community_alert": "Jste si jisti, že chcete tuto komunitu odblokovat?" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 394a1878..37d1b8ba 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -150,5 +150,10 @@ "post_hidden": "skjult indlæg", "old": "gamle", "copy_link": "kopier linket", - "link_copied": "link kopieret" + "link_copied": "link kopieret", + "view_on": "vis på {{destination}}", + "block_community": "blokér fællesskab", + "unblock_community": "fjern blokering af fællesskab", + "block_community_alert": "Er du sikker på, at du vil blokere dette fællesskab?", + "unblock_community_alert": "Er du sikker på, at du vil fjerne blokeringen af dette fællesskab?" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 85b15d8e..ee293f70 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -150,5 +150,10 @@ "post_hidden": "versteckter Beitrag", "old": "alt", "copy_link": "Link kopieren", - "link_copied": "Link kopiert" + "link_copied": "Link kopiert", + "view_on": "ansehen auf {{destination}}", + "block_community": "Community blockieren", + "unblock_community": "Community-Blockierung aufheben", + "block_community_alert": "Sind Sie sicher, dass Sie diese Community blockieren möchten?", + "unblock_community_alert": "Sind Sie sicher, dass Sie diese Community freischalten möchten?" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index e51ff2c8..cd5d1ee6 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -150,5 +150,10 @@ "post_hidden": "κρυφή δημοσίευση", "old": "παλιά", "copy_link": "αντιγραφή συνδέσμου", - "link_copied": "ο σύνδεσμος αντιγράφηκε" + "link_copied": "ο σύνδεσμος αντιγράφηκε", + "view_on": "προβολή σε {{destination}}", + "block_community": "φραγή κοινότητας", + "unblock_community": "αναίρεση φραγής κοινότητας", + "block_community_alert": "Είστε σίγουροι ότι θέλετε να φράξετε αυτήν την κοινότητα;", + "unblock_community_alert": "Είστε σίγουροι ότι θέλετε να αναιρέσετε το φράγμα αυτής της κοινότητας;" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index eab9a678..5379b0ba 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -150,5 +150,10 @@ "post_hidden": "post hidden", "old": "old", "copy_link": "copy link", - "link_copied": "link copied" + "link_copied": "link copied", + "view_on": "view on {{destination}}", + "block_community": "block community", + "unblock_community": "unblock community", + "block_community_alert": "Are you sure you want to block this community?", + "unblock_community_alert": "Are you sure you want to unblock this community?" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index baf42236..706d4d78 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -150,5 +150,10 @@ "post_hidden": "publicación oculta", "old": "antiguos", "copy_link": "copiar enlace", - "link_copied": "enlace copiado" + "link_copied": "enlace copiado", + "view_on": "ver en {{destination}}", + "block_community": "bloquear comunidad", + "unblock_community": "desbloquear comunidad", + "block_community_alert": "¿Estás seguro de que quieres bloquear esta comunidad?", + "unblock_community_alert": "¿Estás seguro de que quieres desbloquear esta comunidad?" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index b3bad6bf..a65a5c14 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -150,5 +150,10 @@ "post_hidden": "پست مخفی", "old": "قدیمی", "copy_link": "کپی کردن لینک", - "link_copied": "لینک کپی شد" + "link_copied": "لینک کپی شد", + "view_on": "مشاهده در {{destination}}", + "block_community": "بلاک جامعه", + "unblock_community": "لغو مسدود کردن جامعه", + "block_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را مسدود کنید؟", + "unblock_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را از مسدودیت خارج کنید؟" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 49a1ab10..5a0c75f1 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -150,5 +150,10 @@ "post_hidden": "piilotettu viesti", "old": "vanhat", "copy_link": "kopioi linkki", - "link_copied": "linkki kopioitu" + "link_copied": "linkki kopioitu", + "view_on": "näytä kohteessa {{destination}}", + "block_community": "estä yhteisö", + "unblock_community": "poista yhteisön esto", + "block_community_alert": "Oletko varma, että haluat estää tämän yhteisön?", + "unblock_community_alert": "Oletko varma, että haluat poistaa tämän yhteisön estoista?" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 668df57a..b7cf7e5d 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -150,5 +150,10 @@ "post_hidden": "post na itinago", "old": "lumang", "copy_link": "kopyahin ang link", - "link_copied": "nakopya ang link" + "link_copied": "nakopya ang link", + "view_on": "tingnan sa {{destination}}", + "block_community": "i-block ang komunidad", + "unblock_community": "i-unblock ang komunidad", + "block_community_alert": "Sigurado ka bang gusto mong i-block ang komunidad na ito?", + "unblock_community_alert": "Sigurado ka bang gusto mong i-unblock ang komunidad na ito?" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 2d2fb832..b70d76bb 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -150,5 +150,10 @@ "post_hidden": "publication masquée", "old": "anciens", "copy_link": "copier le lien", - "link_copied": "lien copié" + "link_copied": "lien copié", + "view_on": "voir sur {{destination}}", + "block_community": "bloquer la communauté", + "unblock_community": "débloquer la communauté", + "block_community_alert": "Êtes-vous sûr de vouloir bloquer cette communauté ?", + "unblock_community_alert": "Êtes-vous sûr de vouloir débloquer cette communauté ?" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index dcebc5ef..ef118064 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -150,5 +150,10 @@ "post_hidden": "הפוסט מוסתר", "old": "ישנים", "copy_link": "העתק קישור", - "link_copied": "הקישור הועתק" + "link_copied": "הקישור הועתק", + "view_on": "הצג ב-{{destination}}", + "block_community": "חסום קהל", + "unblock_community": "ביטול חסימת הקהל", + "block_community_alert": "האם אתה בטוח שברצונך לחסום את הקהל הזה?", + "unblock_community_alert": "האם אתה בטוח שברצונך לבטל את חסימת הקהל הזו?" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 1895d504..1bfbb439 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -150,5 +150,10 @@ "post_hidden": "पोस्ट छुपी हुई", "old": "पुराने", "copy_link": "लिंक कॉपी करें", - "link_copied": "लिंक कॉपी किया गया" + "link_copied": "लिंक कॉपी किया गया", + "view_on": "{{destination}} पर देखें", + "block_community": "समुदाय को ब्लॉक करें", + "unblock_community": "समुदाय अवरोध को हटाएं", + "block_community_alert": "क्या आप इस समुदाय को ब्लॉक करना चाहते हैं?", + "unblock_community_alert": "क्या आप इस समुदाय को अनब्लॉक करना चाहते हैं?" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index dd8f448f..6331144a 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -150,5 +150,10 @@ "post_hidden": "elrejtett poszt", "old": "régi", "copy_link": "link másolása", - "link_copied": "link másolva" + "link_copied": "link másolva", + "view_on": "megtekintés itt: {{destination}}", + "block_community": "közösség blokkolása", + "unblock_community": "közösség tiltásának feloldása", + "block_community_alert": "Biztos vagy benne, hogy blokkolni szeretnéd ezt a közösséget?", + "unblock_community_alert": "Biztos vagy benne, hogy feloldani szeretnéd ezt a közösséget?" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 0be27831..cc61a01d 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -150,5 +150,10 @@ "post_hidden": "postingan tersembunyi", "old": "lama", "copy_link": "salin tautan", - "link_copied": "tautan disalin" + "link_copied": "tautan disalin", + "view_on": "lihat di {{destination}}", + "block_community": "blokir komunitas", + "unblock_community": "buka blokir komunitas", + "block_community_alert": "Apakah Anda yakin ingin memblokir komunitas ini?", + "unblock_community_alert": "Apakah Anda yakin ingin membuka blokir komunitas ini?" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 149eb169..61c02d42 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -150,5 +150,10 @@ "post_hidden": "post nascosto", "old": "vecchi", "copy_link": "copia link", - "link_copied": "link copiato" + "link_copied": "link copiato", + "view_on": "vedi su {{destination}}", + "block_community": "blocca comunità", + "unblock_community": "sblocca comunità", + "block_community_alert": "Sei sicuro di voler bloccare questa comunità?", + "unblock_community_alert": "Sei sicuro di voler sbloccare questa comunità?" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 35b1ba66..176d3ca9 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -150,5 +150,10 @@ "post_hidden": "非表示の投稿", "old": "古い", "copy_link": "リンクをコピー", - "link_copied": "リンクがコピーされました" + "link_copied": "リンクがコピーされました", + "view_on": "{{destination}} で表示", + "block_community": "コミュニティをブロック", + "unblock_community": "コミュニティのブロック解除", + "block_community_alert": "このコミュニティをブロックしてもよろしいですか?", + "unblock_community_alert": "このコミュニティのブロック解除を確認しますか?" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index e58431ec..7a960758 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -150,5 +150,10 @@ "post_hidden": "숨겨진 게시물", "old": "오래된", "copy_link": "링크 복사", - "link_copied": "링크 복사됨" + "link_copied": "링크 복사됨", + "view_on": "{{destination}}에서 보기", + "block_community": "커뮤니티 차단", + "unblock_community": "커뮤니티 차단 해제", + "block_community_alert": "이 커뮤니티를 차단하시겠습니까?", + "unblock_community_alert": "이 커뮤니티의 차단을 해제하시겠습니까?" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 990a6092..b70b2b3b 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -150,5 +150,10 @@ "post_hidden": "पोस्ट लपविली", "old": "जुने", "copy_link": "लिंक कॉपी करा", - "link_copied": "लिंक कॉपी केला गेला" + "link_copied": "लिंक कॉपी केला गेला", + "view_on": "{{destination}} वर पहा", + "block_community": "समुदाय अवरोधित करा", + "unblock_community": "समुदाय अवरोधन काढा", + "block_community_alert": "क्या आपल्याला आपल्या ही समुदाय ब्लॉक करायचं आहे का?", + "unblock_community_alert": "क्या आपल्याला खात्री आहे की आपल्याला हे समुदाय अनब्लॉक करायचं आहे का?" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 43b730c9..d42bb923 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -150,5 +150,10 @@ "post_hidden": "verborgen bericht", "old": "oud", "copy_link": "link kopiëren", - "link_copied": "link gekopieerd" + "link_copied": "link gekopieerd", + "view_on": "bekijk op {{destination}}", + "block_community": "gemeenschap blokkeren", + "unblock_community": "gemeenschapsblokkering opheffen", + "block_community_alert": "Weet u zeker dat u deze gemeenschap wilt blokkeren?", + "unblock_community_alert": "Weet u zeker dat u deze gemeenschap wilt deblokkeren?" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 835bc727..744b4808 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -150,5 +150,10 @@ "post_hidden": "skjult innlegg", "old": "gamle", "copy_link": "kopier lenken", - "link_copied": "lenken er kopiert" + "link_copied": "lenken er kopiert", + "view_on": "vis på {{destination}}", + "block_community": "blokker samfunnet", + "unblock_community": "fjern samfunnsblokkeringen", + "block_community_alert": "Er du sikker på at du vil blokkere dette samfunnet?", + "unblock_community_alert": "Er du sikker på at du vil fjerne blokkeringen av dette samfunnet?" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 153745fa..48b13cdb 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -150,5 +150,10 @@ "post_hidden": "ukryty post", "old": "stare", "copy_link": "skopiuj link", - "link_copied": "skopiowano link" + "link_copied": "skopiowano link", + "view_on": "zobacz na {{destination}}", + "block_community": "zablokuj społeczność", + "unblock_community": "odblokuj społeczność", + "block_community_alert": "Jesteś pewien, że chcesz zablokować tę społeczność?", + "unblock_community_alert": "Jesteś pewien, że chcesz odblokować tę społeczność?" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 034c75dc..cd07a50f 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -150,5 +150,10 @@ "post_hidden": "postagem oculta", "old": "antigos", "copy_link": "copiar link", - "link_copied": "link copiado" + "link_copied": "link copiado", + "view_on": "ver em {{destination}}", + "block_community": "bloquear comunidade", + "unblock_community": "desbloquear comunidade", + "block_community_alert": "Tem certeza de que deseja bloquear esta comunidade?", + "unblock_community_alert": "Tem certeza de que deseja desbloquear esta comunidade?" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 960cfbe5..61902ff6 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -150,5 +150,10 @@ "post_hidden": "postare ascunsă", "old": "vechi", "copy_link": "copiază linkul", - "link_copied": "link copiat" + "link_copied": "link copiat", + "view_on": "vezi pe {{destination}}", + "block_community": "blochează comunitatea", + "unblock_community": "deblochează comunitatea", + "block_community_alert": "Sunteți sigur că doriți să blocați această comunitate?", + "unblock_community_alert": "Sunteți sigur că doriți să deblocați această comunitate?" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 759e056c..857d4960 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -150,5 +150,10 @@ "post_hidden": "скрытый пост", "old": "старые", "copy_link": "скопировать ссылку", - "link_copied": "ссылка скопирована" + "link_copied": "ссылка скопирована", + "view_on": "просмотреть на {{destination}}", + "block_community": "заблокировать сообщество", + "unblock_community": "разблокировать сообщество", + "block_community_alert": "Вы уверены, что хотите заблокировать это сообщество?", + "unblock_community_alert": "Вы уверены, что хотите разблокировать это сообщество?" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index c547d8df..700ae5d4 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -150,5 +150,10 @@ "post_hidden": "postimi i fshehtë", "old": "e vjetra", "copy_link": "kopjo lidhjen", - "link_copied": "lidhja u kopjua" + "link_copied": "lidhja u kopjua", + "view_on": "shqyrto në {{destination}}", + "block_community": "blloko komunitetin", + "unblock_community": "zhblloko komunitetin", + "block_community_alert": "A jeni të sigurt se dëshironi të bllokoni këtë komunitet?", + "unblock_community_alert": "A jeni të sigurt se dëshironi ta zhbllokoni këtë komunitet?" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 8eb7ab73..64bd87f6 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -150,5 +150,10 @@ "post_hidden": "dolt inlägg", "old": "gamla", "copy_link": "kopiera länk", - "link_copied": "länk kopierad" + "link_copied": "länk kopierad", + "view_on": "visa på {{destination}}", + "block_community": "blockera gemenskapen", + "unblock_community": "avblockera gemenskapen", + "block_community_alert": "Är du säker på att du vill blockera detta samhälle?", + "unblock_community_alert": "Är du säker på att du vill avblockera detta samhälle?" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 477656e5..dce380cb 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -150,5 +150,10 @@ "post_hidden": "పోస్టు దాచబడింది", "old": "పాత", "copy_link": "లింక్ ను కాపి చేయండి", - "link_copied": "లింక్ కాపాడబడింది" + "link_copied": "లింక్ కాపాడబడింది", + "view_on": "లో చూడండి {{destination}}", + "block_community": "కమ్యూనిటీని నిరోధించు", + "unblock_community": "కమ్యూనిటీని అనబ్లాక్ చేయండి", + "block_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని బ్లాక్ చేయాలని ఉందా?", + "unblock_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని అనబ్లాక్ చేయాలని ఉందా?" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 09583649..70842d53 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -150,5 +150,10 @@ "post_hidden": "โพสต์ที่ซ่อนอยู่", "old": "เก่า", "copy_link": "คัดลอกลิงก์", - "link_copied": "คัดลอกลิงก์แล้ว" + "link_copied": "คัดลอกลิงก์แล้ว", + "view_on": "ดูบน {{destination}}", + "block_community": "บล็อกชุมชน", + "unblock_community": "ยกเลิกการบล็อกชุมชน", + "block_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการบล็อกชุมชนนี้?", + "unblock_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการบล็อกชุมชนนี้?" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 637f3a13..ea347e5a 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -150,5 +150,10 @@ "post_hidden": "gizli gönderi", "old": "eski", "copy_link": "bağlantıyı kopyala", - "link_copied": "bağlantı kopyalandı" + "link_copied": "bağlantı kopyalandı", + "view_on": "{{destination}} üzerinde görüntüle", + "block_community": "topluluğu engelle", + "unblock_community": "topluluğu engeli kaldır", + "block_community_alert": "Bu topluluğu engellemek istediğinizden emin misiniz?", + "unblock_community_alert": "Bu topluluğun engelini kaldırmak istediğinizden emin misiniz?" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index a476f7be..e6d17d9b 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -150,5 +150,10 @@ "post_hidden": "прихований пост", "old": "старі", "copy_link": "копіювати посилання", - "link_copied": "посилання скопійовано" + "link_copied": "посилання скопійовано", + "view_on": "переглянути на {{destination}}", + "block_community": "заблокувати спільноту", + "unblock_community": "розблокувати спільноту", + "block_community_alert": "Ви впевнені, що хочете заблокувати цю спільноту?", + "unblock_community_alert": "Ви впевнені, що хочете розблокувати цю спільноту?" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index ead60541..09062026 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -150,5 +150,10 @@ "post_hidden": "پوسٹ چھپی ہوئی", "old": "پرانے", "copy_link": "لنک کو کاپی کریں", - "link_copied": "لنک کاپی ہوگیا" + "link_copied": "لنک کاپی ہوگیا", + "view_on": "{{destination}} پر دیکھیں", + "block_community": "کمیونٹی کو بلاک کریں", + "unblock_community": "کمیونٹی کو ان بلاک کریں", + "block_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کو بلاک کرنا چاہتے ہیں؟", + "unblock_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کی رکاوٹ ہٹانا چاہتے ہیں؟" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 1284e3ce..909edbf2 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -150,5 +150,10 @@ "post_hidden": "bài viết bị ẩn", "old": "cũ", "copy_link": "sao chép liên kết", - "link_copied": "liên kết đã được sao chép" + "link_copied": "liên kết đã được sao chép", + "view_on": "xem trên {{destination}}", + "block_community": "chặn cộng đồng", + "unblock_community": "bỏ chặn cộng đồng", + "block_community_alert": "Bạn có chắc muốn chặn cộng đồng này không?", + "unblock_community_alert": "Bạn có chắc muốn bỏ chặn cộng đồng này không?" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index bf552c63..384afae5 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -150,5 +150,10 @@ "post_hidden": "隐藏帖子", "old": "旧的", "copy_link": "复制链接", - "link_copied": "链接已复制" + "link_copied": "链接已复制", + "view_on": "查看{{destination}}", + "block_community": "封锁社区", + "unblock_community": "解锁社区", + "block_community_alert": "您确定要阻止此社区吗?", + "unblock_community_alert": "您确定要解锁此社区吗?" } \ No newline at end of file diff --git a/src/components/post/comment-tools/share-menu/share-menu.tsx b/src/components/post/comment-tools/share-menu/share-menu.tsx index af4f32d7..2aa27a13 100644 --- a/src/components/post/comment-tools/share-menu/share-menu.tsx +++ b/src/components/post/comment-tools/share-menu/share-menu.tsx @@ -63,12 +63,12 @@ const ShareMenu = ({ cid, subplebbitAddress }: ShareMenuProps) => {
    embed
    diff --git a/src/components/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index 586ad8fb..c9c2aa77 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -98,10 +98,12 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role const { blocked, unblock, block } = useBlock({ address }); const blockConfirm = () => { - if (window.confirm(`Are you sure you want to ${blocked ? 'unblock' : 'block'} this community?`)) { - if (blocked) { + if (blocked) { + if (window.confirm(t('unblock_community_alert'))) { unblock(); - } else { + } + } else if (!blocked) { + if (window.confirm(t('block_community_alert'))) { block(); } } @@ -157,7 +159,7 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role e.preventDefault()}>{`u/${creatorAddress}`} {createdAt && {t('community_for', { date: getFormattedDuration(createdAt) })}}
    - {blocked ? 'Unblock community' : 'Block community'} + {blocked ? t('unblock_community') : t('block_community')}
    From af70611420fa1d2e23ac37ca67bdfd06b8625c66 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 16:57:57 +0100 Subject: [PATCH 4/7] chore(translations): search community address, search feed post --- public/translations/ar/default.json | 4 +++- public/translations/bn/default.json | 4 +++- public/translations/cs/default.json | 4 +++- public/translations/da/default.json | 4 +++- public/translations/de/default.json | 4 +++- public/translations/el/default.json | 4 +++- public/translations/en/default.json | 4 +++- public/translations/es/default.json | 4 +++- public/translations/fa/default.json | 4 +++- public/translations/fi/default.json | 4 +++- public/translations/fil/default.json | 4 +++- public/translations/fr/default.json | 4 +++- public/translations/he/default.json | 4 +++- public/translations/hi/default.json | 4 +++- public/translations/hu/default.json | 4 +++- public/translations/id/default.json | 4 +++- public/translations/it/default.json | 4 +++- public/translations/ja/default.json | 4 +++- public/translations/ko/default.json | 4 +++- public/translations/mr/default.json | 4 +++- public/translations/nl/default.json | 4 +++- public/translations/no/default.json | 4 +++- public/translations/pl/default.json | 4 +++- public/translations/pt/default.json | 4 +++- public/translations/ro/default.json | 4 +++- public/translations/ru/default.json | 4 +++- public/translations/sq/default.json | 4 +++- public/translations/sv/default.json | 4 +++- public/translations/te/default.json | 4 +++- public/translations/th/default.json | 4 +++- public/translations/tr/default.json | 4 +++- public/translations/uk/default.json | 4 +++- public/translations/ur/default.json | 4 +++- public/translations/vi/default.json | 4 +++- public/translations/zh/default.json | 4 +++- src/components/search-bar/search-bar.tsx | 4 ++-- 36 files changed, 107 insertions(+), 37 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 058643b9..317c7d36 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -155,5 +155,7 @@ "block_community": "حظر المجتمع", "unblock_community": "إلغاء حظر المجتمع", "block_community_alert": "هل أنت متأكد أنك تريد حظر هذا المجتمع؟", - "unblock_community_alert": "هل أنت متأكد أنك تريد إلغاء حظر هذا المجتمع؟" + "unblock_community_alert": "هل أنت متأكد أنك تريد إلغاء حظر هذا المجتمع؟", + "search_community_address": "ابحث عن عنوان مجتمع", + "search_feed_post": "ابحث عن منشور في هذا التغذية" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 55836af4..628a694f 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -155,5 +155,7 @@ "block_community": "সম্প্রদায় ব্লক করুন", "unblock_community": "সম্প্রদায় ব্লক আনব্লক করুন", "block_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি ব্লক করতে চান?", - "unblock_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি অনব্লক করতে চান?" + "unblock_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি অনব্লক করতে চান?", + "search_community_address": "একটি সম্প্রদায়ের ঠিকানা খুঁজে পেতে", + "search_feed_post": "এই ফিডে একটি পোস্ট খুঁজুন" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 37663525..a497e210 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -155,5 +155,7 @@ "block_community": "blokovat komunitu", "unblock_community": "odblokovat komunitu", "block_community_alert": "Jste si jisti, že chcete tuto komunitu blokovat?", - "unblock_community_alert": "Jste si jisti, že chcete tuto komunitu odblokovat?" + "unblock_community_alert": "Jste si jisti, že chcete tuto komunitu odblokovat?", + "search_community_address": "Hledat adresu komunity", + "search_feed_post": "Hledejte příspěvek na této návěštce" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 37d1b8ba..1e2b543e 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -155,5 +155,7 @@ "block_community": "blokér fællesskab", "unblock_community": "fjern blokering af fællesskab", "block_community_alert": "Er du sikker på, at du vil blokere dette fællesskab?", - "unblock_community_alert": "Er du sikker på, at du vil fjerne blokeringen af dette fællesskab?" + "unblock_community_alert": "Er du sikker på, at du vil fjerne blokeringen af dette fællesskab?", + "search_community_address": "Søg efter en fællesskabsadresse", + "search_feed_post": "Søg efter et opslag på dette feed" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index ee293f70..3f7eb224 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -155,5 +155,7 @@ "block_community": "Community blockieren", "unblock_community": "Community-Blockierung aufheben", "block_community_alert": "Sind Sie sicher, dass Sie diese Community blockieren möchten?", - "unblock_community_alert": "Sind Sie sicher, dass Sie diese Community freischalten möchten?" + "unblock_community_alert": "Sind Sie sicher, dass Sie diese Community freischalten möchten?", + "search_community_address": "Suche nach einer Community-Adresse", + "search_feed_post": "Suche nach einem Beitrag in diesem Feed" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index cd5d1ee6..a697b4c5 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -155,5 +155,7 @@ "block_community": "φραγή κοινότητας", "unblock_community": "αναίρεση φραγής κοινότητας", "block_community_alert": "Είστε σίγουροι ότι θέλετε να φράξετε αυτήν την κοινότητα;", - "unblock_community_alert": "Είστε σίγουροι ότι θέλετε να αναιρέσετε το φράγμα αυτής της κοινότητας;" + "unblock_community_alert": "Είστε σίγουροι ότι θέλετε να αναιρέσετε το φράγμα αυτής της κοινότητας;", + "search_community_address": "Αναζήτηση διεύθυνσης κοινότητας", + "search_feed_post": "Ψάξτε για μια ανάρτηση σε αυτήν τη ροή" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 5379b0ba..1510b044 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -155,5 +155,7 @@ "block_community": "block community", "unblock_community": "unblock community", "block_community_alert": "Are you sure you want to block this community?", - "unblock_community_alert": "Are you sure you want to unblock this community?" + "unblock_community_alert": "Are you sure you want to unblock this community?", + "search_community_address": "Search a community address", + "search_feed_post": "Search a post in this feed" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 706d4d78..984781ce 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -155,5 +155,7 @@ "block_community": "bloquear comunidad", "unblock_community": "desbloquear comunidad", "block_community_alert": "¿Estás seguro de que quieres bloquear esta comunidad?", - "unblock_community_alert": "¿Estás seguro de que quieres desbloquear esta comunidad?" + "unblock_community_alert": "¿Estás seguro de que quieres desbloquear esta comunidad?", + "search_community_address": "Buscar una dirección de comunidad", + "search_feed_post": "Buscar una publicación en este feed" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index a65a5c14..7f2ffbe7 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -155,5 +155,7 @@ "block_community": "بلاک جامعه", "unblock_community": "لغو مسدود کردن جامعه", "block_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را مسدود کنید؟", - "unblock_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را از مسدودیت خارج کنید؟" + "unblock_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را از مسدودیت خارج کنید؟", + "search_community_address": "جستجوی آدرس یک جامعه", + "search_feed_post": "در این خوراک یک پست جستجو کنید" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 5a0c75f1..15eb71f4 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -155,5 +155,7 @@ "block_community": "estä yhteisö", "unblock_community": "poista yhteisön esto", "block_community_alert": "Oletko varma, että haluat estää tämän yhteisön?", - "unblock_community_alert": "Oletko varma, että haluat poistaa tämän yhteisön estoista?" + "unblock_community_alert": "Oletko varma, että haluat poistaa tämän yhteisön estoista?", + "search_community_address": "Etsi yhteisön osoite", + "search_feed_post": "Etsi viesti tästä syötteestä" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index b7cf7e5d..4faa54da 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -155,5 +155,7 @@ "block_community": "i-block ang komunidad", "unblock_community": "i-unblock ang komunidad", "block_community_alert": "Sigurado ka bang gusto mong i-block ang komunidad na ito?", - "unblock_community_alert": "Sigurado ka bang gusto mong i-unblock ang komunidad na ito?" + "unblock_community_alert": "Sigurado ka bang gusto mong i-unblock ang komunidad na ito?", + "search_community_address": "Maghanap ng address ng komunidad", + "search_feed_post": "Maghanap ng post sa feed na ito" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index b70d76bb..c3d5f417 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -155,5 +155,7 @@ "block_community": "bloquer la communauté", "unblock_community": "débloquer la communauté", "block_community_alert": "Êtes-vous sûr de vouloir bloquer cette communauté ?", - "unblock_community_alert": "Êtes-vous sûr de vouloir débloquer cette communauté ?" + "unblock_community_alert": "Êtes-vous sûr de vouloir débloquer cette communauté ?", + "search_community_address": "Rechercher une adresse de communauté", + "search_feed_post": "Rechercher un article dans ce flux" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index ef118064..5802d5e5 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -155,5 +155,7 @@ "block_community": "חסום קהל", "unblock_community": "ביטול חסימת הקהל", "block_community_alert": "האם אתה בטוח שברצונך לחסום את הקהל הזה?", - "unblock_community_alert": "האם אתה בטוח שברצונך לבטל את חסימת הקהל הזו?" + "unblock_community_alert": "האם אתה בטוח שברצונך לבטל את חסימת הקהל הזו?", + "search_community_address": "חפש כתובת של קהילה", + "search_feed_post": "חפש פוסט בפיד זה" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 1bfbb439..ec41f6b1 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -155,5 +155,7 @@ "block_community": "समुदाय को ब्लॉक करें", "unblock_community": "समुदाय अवरोध को हटाएं", "block_community_alert": "क्या आप इस समुदाय को ब्लॉक करना चाहते हैं?", - "unblock_community_alert": "क्या आप इस समुदाय को अनब्लॉक करना चाहते हैं?" + "unblock_community_alert": "क्या आप इस समुदाय को अनब्लॉक करना चाहते हैं?", + "search_community_address": "एक समुदाय पता खोजें", + "search_feed_post": "इस फ़ीड में एक पोस्ट खोजें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 6331144a..ee416147 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -155,5 +155,7 @@ "block_community": "közösség blokkolása", "unblock_community": "közösség tiltásának feloldása", "block_community_alert": "Biztos vagy benne, hogy blokkolni szeretnéd ezt a közösséget?", - "unblock_community_alert": "Biztos vagy benne, hogy feloldani szeretnéd ezt a közösséget?" + "unblock_community_alert": "Biztos vagy benne, hogy feloldani szeretnéd ezt a közösséget?", + "search_community_address": "Keresse meg egy közösség címét", + "search_feed_post": "Keresse meg a hírt ebben az összefoglalóban" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index cc61a01d..26a9ed26 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -155,5 +155,7 @@ "block_community": "blokir komunitas", "unblock_community": "buka blokir komunitas", "block_community_alert": "Apakah Anda yakin ingin memblokir komunitas ini?", - "unblock_community_alert": "Apakah Anda yakin ingin membuka blokir komunitas ini?" + "unblock_community_alert": "Apakah Anda yakin ingin membuka blokir komunitas ini?", + "search_community_address": "Cari alamat komunitas", + "search_feed_post": "Cari postingan di umpan ini" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 61c02d42..486af0ac 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -155,5 +155,7 @@ "block_community": "blocca comunità", "unblock_community": "sblocca comunità", "block_community_alert": "Sei sicuro di voler bloccare questa comunità?", - "unblock_community_alert": "Sei sicuro di voler sbloccare questa comunità?" + "unblock_community_alert": "Sei sicuro di voler sbloccare questa comunità?", + "search_community_address": "Cerca l'indirizzo di una comunità", + "search_feed_post": "Cerca un post in questa pagina" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 176d3ca9..fb242d60 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -155,5 +155,7 @@ "block_community": "コミュニティをブロック", "unblock_community": "コミュニティのブロック解除", "block_community_alert": "このコミュニティをブロックしてもよろしいですか?", - "unblock_community_alert": "このコミュニティのブロック解除を確認しますか?" + "unblock_community_alert": "このコミュニティのブロック解除を確認しますか?", + "search_community_address": "コミュニティのアドレスを検索", + "search_feed_post": "このフィード内の投稿を検索" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 7a960758..52a2319e 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -155,5 +155,7 @@ "block_community": "커뮤니티 차단", "unblock_community": "커뮤니티 차단 해제", "block_community_alert": "이 커뮤니티를 차단하시겠습니까?", - "unblock_community_alert": "이 커뮤니티의 차단을 해제하시겠습니까?" + "unblock_community_alert": "이 커뮤니티의 차단을 해제하시겠습니까?", + "search_community_address": "커뮤니티 주소 검색", + "search_feed_post": "이 피드에서 게시물 검색" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index b70b2b3b..ca6dd339 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -155,5 +155,7 @@ "block_community": "समुदाय अवरोधित करा", "unblock_community": "समुदाय अवरोधन काढा", "block_community_alert": "क्या आपल्याला आपल्या ही समुदाय ब्लॉक करायचं आहे का?", - "unblock_community_alert": "क्या आपल्याला खात्री आहे की आपल्याला हे समुदाय अनब्लॉक करायचं आहे का?" + "unblock_community_alert": "क्या आपल्याला खात्री आहे की आपल्याला हे समुदाय अनब्लॉक करायचं आहे का?", + "search_community_address": "समुदायाचा पत्ता शोधा", + "search_feed_post": "ह्या फीडमध्ये एक पोस्ट शोधा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index d42bb923..da217f9c 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -155,5 +155,7 @@ "block_community": "gemeenschap blokkeren", "unblock_community": "gemeenschapsblokkering opheffen", "block_community_alert": "Weet u zeker dat u deze gemeenschap wilt blokkeren?", - "unblock_community_alert": "Weet u zeker dat u deze gemeenschap wilt deblokkeren?" + "unblock_community_alert": "Weet u zeker dat u deze gemeenschap wilt deblokkeren?", + "search_community_address": "Zoek een communityadres", + "search_feed_post": "Zoek een bericht in deze feed" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 744b4808..4ad991fd 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -155,5 +155,7 @@ "block_community": "blokker samfunnet", "unblock_community": "fjern samfunnsblokkeringen", "block_community_alert": "Er du sikker på at du vil blokkere dette samfunnet?", - "unblock_community_alert": "Er du sikker på at du vil fjerne blokkeringen av dette samfunnet?" + "unblock_community_alert": "Er du sikker på at du vil fjerne blokkeringen av dette samfunnet?", + "search_community_address": "Søk etter en fellesskapsadresse", + "search_feed_post": "Søk etter en post i denne feeden" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 48b13cdb..4de1bca0 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -155,5 +155,7 @@ "block_community": "zablokuj społeczność", "unblock_community": "odblokuj społeczność", "block_community_alert": "Jesteś pewien, że chcesz zablokować tę społeczność?", - "unblock_community_alert": "Jesteś pewien, że chcesz odblokować tę społeczność?" + "unblock_community_alert": "Jesteś pewien, że chcesz odblokować tę społeczność?", + "search_community_address": "Szukaj adresu społeczności", + "search_feed_post": "Szukaj posta w tym zasobie" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index cd07a50f..ee0cd90c 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -155,5 +155,7 @@ "block_community": "bloquear comunidade", "unblock_community": "desbloquear comunidade", "block_community_alert": "Tem certeza de que deseja bloquear esta comunidade?", - "unblock_community_alert": "Tem certeza de que deseja desbloquear esta comunidade?" + "unblock_community_alert": "Tem certeza de que deseja desbloquear esta comunidade?", + "search_community_address": "Pesquisar um endereço de comunidade", + "search_feed_post": "Pesquisar uma postagem neste feed" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 61902ff6..9228a618 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -155,5 +155,7 @@ "block_community": "blochează comunitatea", "unblock_community": "deblochează comunitatea", "block_community_alert": "Sunteți sigur că doriți să blocați această comunitate?", - "unblock_community_alert": "Sunteți sigur că doriți să deblocați această comunitate?" + "unblock_community_alert": "Sunteți sigur că doriți să deblocați această comunitate?", + "search_community_address": "Caută o adresă de comunitate", + "search_feed_post": "Caută o postare în acest flux" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 857d4960..59f22882 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -155,5 +155,7 @@ "block_community": "заблокировать сообщество", "unblock_community": "разблокировать сообщество", "block_community_alert": "Вы уверены, что хотите заблокировать это сообщество?", - "unblock_community_alert": "Вы уверены, что хотите разблокировать это сообщество?" + "unblock_community_alert": "Вы уверены, что хотите разблокировать это сообщество?", + "search_community_address": "Искать адрес сообщества", + "search_feed_post": "Искать запись в этой ленте" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 700ae5d4..bd7062a3 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -155,5 +155,7 @@ "block_community": "blloko komunitetin", "unblock_community": "zhblloko komunitetin", "block_community_alert": "A jeni të sigurt se dëshironi të bllokoni këtë komunitet?", - "unblock_community_alert": "A jeni të sigurt se dëshironi ta zhbllokoni këtë komunitet?" + "unblock_community_alert": "A jeni të sigurt se dëshironi ta zhbllokoni këtë komunitet?", + "search_community_address": "Kërkoni një adresë komuniteti", + "search_feed_post": "Kërkoni një postim në këtë rrjedhë" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 64bd87f6..3b4d7fd4 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -155,5 +155,7 @@ "block_community": "blockera gemenskapen", "unblock_community": "avblockera gemenskapen", "block_community_alert": "Är du säker på att du vill blockera detta samhälle?", - "unblock_community_alert": "Är du säker på att du vill avblockera detta samhälle?" + "unblock_community_alert": "Är du säker på att du vill avblockera detta samhälle?", + "search_community_address": "Sök efter en gemenskapsadress", + "search_feed_post": "Sök efter ett inlägg i detta flöde" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index dce380cb..0e0b219e 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -155,5 +155,7 @@ "block_community": "కమ్యూనిటీని నిరోధించు", "unblock_community": "కమ్యూనిటీని అనబ్లాక్ చేయండి", "block_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని బ్లాక్ చేయాలని ఉందా?", - "unblock_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని అనబ్లాక్ చేయాలని ఉందా?" + "unblock_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని అనబ్లాక్ చేయాలని ఉందా?", + "search_community_address": "ఒక కమ్యూనిటీ చిరునామా వెతకండి", + "search_feed_post": "ఈ ఫీడ్లో ఒక పోస్టును వెతకండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 70842d53..b4fcd45c 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -155,5 +155,7 @@ "block_community": "บล็อกชุมชน", "unblock_community": "ยกเลิกการบล็อกชุมชน", "block_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการบล็อกชุมชนนี้?", - "unblock_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการบล็อกชุมชนนี้?" + "unblock_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการบล็อกชุมชนนี้?", + "search_community_address": "ค้นหาที่อยู่ของชุมชน", + "search_feed_post": "ค้นหาโพสต์ในฟีดนี้" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index ea347e5a..61fdb2ca 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -155,5 +155,7 @@ "block_community": "topluluğu engelle", "unblock_community": "topluluğu engeli kaldır", "block_community_alert": "Bu topluluğu engellemek istediğinizden emin misiniz?", - "unblock_community_alert": "Bu topluluğun engelini kaldırmak istediğinizden emin misiniz?" + "unblock_community_alert": "Bu topluluğun engelini kaldırmak istediğinizden emin misiniz?", + "search_community_address": "Bir topluluk adresi arayın", + "search_feed_post": "Bu akışta bir gönderi arayın" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index e6d17d9b..ad756184 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -155,5 +155,7 @@ "block_community": "заблокувати спільноту", "unblock_community": "розблокувати спільноту", "block_community_alert": "Ви впевнені, що хочете заблокувати цю спільноту?", - "unblock_community_alert": "Ви впевнені, що хочете розблокувати цю спільноту?" + "unblock_community_alert": "Ви впевнені, що хочете розблокувати цю спільноту?", + "search_community_address": "Пошук адреси спільноти", + "search_feed_post": "Шукайте запис у цьому стрічці" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 09062026..c3c84210 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -155,5 +155,7 @@ "block_community": "کمیونٹی کو بلاک کریں", "unblock_community": "کمیونٹی کو ان بلاک کریں", "block_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کو بلاک کرنا چاہتے ہیں؟", - "unblock_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کی رکاوٹ ہٹانا چاہتے ہیں؟" + "unblock_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کی رکاوٹ ہٹانا چاہتے ہیں؟", + "search_community_address": "ایک کمیونٹی کا پتہ تلاش کریں", + "search_feed_post": "اس فیڈ میں ایک پوسٹ تلاش کریں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 909edbf2..f169b62d 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -155,5 +155,7 @@ "block_community": "chặn cộng đồng", "unblock_community": "bỏ chặn cộng đồng", "block_community_alert": "Bạn có chắc muốn chặn cộng đồng này không?", - "unblock_community_alert": "Bạn có chắc muốn bỏ chặn cộng đồng này không?" + "unblock_community_alert": "Bạn có chắc muốn bỏ chặn cộng đồng này không?", + "search_community_address": "Tìm kiếm địa chỉ của một cộng đồng", + "search_feed_post": "Tìm kiếm một bài viết trong feed này" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 384afae5..74daf344 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -155,5 +155,7 @@ "block_community": "封锁社区", "unblock_community": "解锁社区", "block_community_alert": "您确定要阻止此社区吗?", - "unblock_community_alert": "您确定要解锁此社区吗?" + "unblock_community_alert": "您确定要解锁此社区吗?", + "search_community_address": "搜索社区地址", + "search_feed_post": "在此订阅中搜索帖子" } \ No newline at end of file diff --git a/src/components/search-bar/search-bar.tsx b/src/components/search-bar/search-bar.tsx index 56250cb6..cf42ab7e 100644 --- a/src/components/search-bar/search-bar.tsx +++ b/src/components/search-bar/search-bar.tsx @@ -64,11 +64,11 @@ const SearchBar = ({ isFocused = false }: SearchBarProps) => {
    From 7642d9586228dbdf84b3a96fbc2948090b75f475 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 17:44:17 +0100 Subject: [PATCH 5/7] chore(translations): from, via, sent, unread, comment replies, post replies --- public/translations/ar/default.json | 8 +++++++- public/translations/bn/default.json | 8 +++++++- public/translations/cs/default.json | 8 +++++++- public/translations/da/default.json | 8 +++++++- public/translations/de/default.json | 8 +++++++- public/translations/el/default.json | 8 +++++++- public/translations/en/default.json | 8 +++++++- public/translations/es/default.json | 8 +++++++- public/translations/fa/default.json | 8 +++++++- public/translations/fi/default.json | 8 +++++++- public/translations/fil/default.json | 8 +++++++- public/translations/fr/default.json | 8 +++++++- public/translations/he/default.json | 8 +++++++- public/translations/hi/default.json | 8 +++++++- public/translations/hu/default.json | 8 +++++++- public/translations/id/default.json | 8 +++++++- public/translations/it/default.json | 8 +++++++- public/translations/ja/default.json | 8 +++++++- public/translations/ko/default.json | 8 +++++++- public/translations/mr/default.json | 8 +++++++- public/translations/nl/default.json | 8 +++++++- public/translations/no/default.json | 8 +++++++- public/translations/pl/default.json | 8 +++++++- public/translations/pt/default.json | 8 +++++++- public/translations/ro/default.json | 8 +++++++- public/translations/ru/default.json | 8 +++++++- public/translations/sq/default.json | 8 +++++++- public/translations/sv/default.json | 8 +++++++- public/translations/te/default.json | 8 +++++++- public/translations/th/default.json | 8 +++++++- public/translations/tr/default.json | 8 +++++++- public/translations/uk/default.json | 8 +++++++- public/translations/ur/default.json | 8 +++++++- public/translations/vi/default.json | 8 +++++++- public/translations/zh/default.json | 8 +++++++- src/components/reply/reply.tsx | 7 ++++--- src/views/inbox/inbox.tsx | 10 ++++++---- 37 files changed, 255 insertions(+), 42 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 317c7d36..9065aa42 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -157,5 +157,11 @@ "block_community_alert": "هل أنت متأكد أنك تريد حظر هذا المجتمع؟", "unblock_community_alert": "هل أنت متأكد أنك تريد إلغاء حظر هذا المجتمع؟", "search_community_address": "ابحث عن عنوان مجتمع", - "search_feed_post": "ابحث عن منشور في هذا التغذية" + "search_feed_post": "ابحث عن منشور في هذا التغذية", + "from": "من", + "via": "عبر", + "sent": "أرسل", + "unread": "غير مقروء", + "comment_replies": "ردود التعليقات", + "post_replies": "ردود المنشورات" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 628a694f..df0b70b3 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -157,5 +157,11 @@ "block_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি ব্লক করতে চান?", "unblock_community_alert": "আপনি কি নিশ্চিত যে আপনি এই সম্প্রদায়টি অনব্লক করতে চান?", "search_community_address": "একটি সম্প্রদায়ের ঠিকানা খুঁজে পেতে", - "search_feed_post": "এই ফিডে একটি পোস্ট খুঁজুন" + "search_feed_post": "এই ফিডে একটি পোস্ট খুঁজুন", + "from": "থেকে", + "via": "মাধ্যমে", + "sent": "প্রেরিত", + "unread": "অপঠিত", + "comment_replies": "মন্তব্যের উত্তর", + "post_replies": "পোস্টের উত্তর" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index a497e210..eaccc7f9 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Jste si jisti, že chcete tuto komunitu blokovat?", "unblock_community_alert": "Jste si jisti, že chcete tuto komunitu odblokovat?", "search_community_address": "Hledat adresu komunity", - "search_feed_post": "Hledejte příspěvek na této návěštce" + "search_feed_post": "Hledejte příspěvek na této návěštce", + "from": "od", + "via": "přes", + "sent": "odesláno", + "unread": "nepřečteno", + "comment_replies": "odpovědi na komentáře", + "post_replies": "odpovědi na příspěvky" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 1e2b543e..54e75b9b 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Er du sikker på, at du vil blokere dette fællesskab?", "unblock_community_alert": "Er du sikker på, at du vil fjerne blokeringen af dette fællesskab?", "search_community_address": "Søg efter en fællesskabsadresse", - "search_feed_post": "Søg efter et opslag på dette feed" + "search_feed_post": "Søg efter et opslag på dette feed", + "from": "fra", + "via": "via", + "sent": "sendt", + "unread": "ulæst", + "comment_replies": "kommentarsvar", + "post_replies": "indlægssvar" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 3f7eb224..a0ec78ed 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Sind Sie sicher, dass Sie diese Community blockieren möchten?", "unblock_community_alert": "Sind Sie sicher, dass Sie diese Community freischalten möchten?", "search_community_address": "Suche nach einer Community-Adresse", - "search_feed_post": "Suche nach einem Beitrag in diesem Feed" + "search_feed_post": "Suche nach einem Beitrag in diesem Feed", + "from": "von", + "via": "über", + "sent": "gesendet", + "unread": "ungelesen", + "comment_replies": "Antworten auf Kommentare", + "post_replies": "Antworten auf Beiträge" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index a697b4c5..2f2983a2 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Είστε σίγουροι ότι θέλετε να φράξετε αυτήν την κοινότητα;", "unblock_community_alert": "Είστε σίγουροι ότι θέλετε να αναιρέσετε το φράγμα αυτής της κοινότητας;", "search_community_address": "Αναζήτηση διεύθυνσης κοινότητας", - "search_feed_post": "Ψάξτε για μια ανάρτηση σε αυτήν τη ροή" + "search_feed_post": "Ψάξτε για μια ανάρτηση σε αυτήν τη ροή", + "from": "από", + "via": "μέσω", + "sent": "αποστάλθηκε", + "unread": "αδιάβαστο", + "comment_replies": "απαντήσεις σε σχόλια", + "post_replies": "απαντήσεις σε δημοσιεύσεις" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 1510b044..49e78bd7 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Are you sure you want to block this community?", "unblock_community_alert": "Are you sure you want to unblock this community?", "search_community_address": "Search a community address", - "search_feed_post": "Search a post in this feed" + "search_feed_post": "Search a post in this feed", + "from": "from", + "via": "via", + "sent": "sent", + "unread": "unread", + "comment_replies": "comment replies", + "post_replies": "post replies" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 984781ce..08c89fb7 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -157,5 +157,11 @@ "block_community_alert": "¿Estás seguro de que quieres bloquear esta comunidad?", "unblock_community_alert": "¿Estás seguro de que quieres desbloquear esta comunidad?", "search_community_address": "Buscar una dirección de comunidad", - "search_feed_post": "Buscar una publicación en este feed" + "search_feed_post": "Buscar una publicación en este feed", + "from": "de", + "via": "a través de", + "sent": "enviado", + "unread": "no leído", + "comment_replies": "respuestas a comentarios", + "post_replies": "respuestas a publicaciones" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 7f2ffbe7..72ab578a 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -157,5 +157,11 @@ "block_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را مسدود کنید؟", "unblock_community_alert": "آیا مطمئن هستید که می‌خواهید این جامعه را از مسدودیت خارج کنید؟", "search_community_address": "جستجوی آدرس یک جامعه", - "search_feed_post": "در این خوراک یک پست جستجو کنید" + "search_feed_post": "در این خوراک یک پست جستجو کنید", + "from": "از", + "via": "توسط", + "sent": "ارسال شده", + "unread": "خوانده نشده", + "comment_replies": "پاسخ‌های نظرات", + "post_replies": "پاسخ‌های ارسالی" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 15eb71f4..b0aa3e0f 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Oletko varma, että haluat estää tämän yhteisön?", "unblock_community_alert": "Oletko varma, että haluat poistaa tämän yhteisön estoista?", "search_community_address": "Etsi yhteisön osoite", - "search_feed_post": "Etsi viesti tästä syötteestä" + "search_feed_post": "Etsi viesti tästä syötteestä", + "from": "lähettäjältä", + "via": "kautta", + "sent": "lähetetty", + "unread": "lukemattomat", + "comment_replies": "kommenttivastaukset", + "post_replies": "viestivastaukset" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 4faa54da..ccc32dba 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Sigurado ka bang gusto mong i-block ang komunidad na ito?", "unblock_community_alert": "Sigurado ka bang gusto mong i-unblock ang komunidad na ito?", "search_community_address": "Maghanap ng address ng komunidad", - "search_feed_post": "Maghanap ng post sa feed na ito" + "search_feed_post": "Maghanap ng post sa feed na ito", + "from": "mula sa", + "via": "sa pamamagitan ng", + "sent": "ipinadala", + "unread": "hindi pa nababasa", + "comment_replies": "mga reply sa komento", + "post_replies": "mga reply sa post" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index c3d5f417..d1ea10cd 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Êtes-vous sûr de vouloir bloquer cette communauté ?", "unblock_community_alert": "Êtes-vous sûr de vouloir débloquer cette communauté ?", "search_community_address": "Rechercher une adresse de communauté", - "search_feed_post": "Rechercher un article dans ce flux" + "search_feed_post": "Rechercher un article dans ce flux", + "from": "de", + "via": "via", + "sent": "envoyé", + "unread": "non lu", + "comment_replies": "réponses aux commentaires", + "post_replies": "réponses aux publications" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 5802d5e5..47bc8d4a 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -157,5 +157,11 @@ "block_community_alert": "האם אתה בטוח שברצונך לחסום את הקהל הזה?", "unblock_community_alert": "האם אתה בטוח שברצונך לבטל את חסימת הקהל הזו?", "search_community_address": "חפש כתובת של קהילה", - "search_feed_post": "חפש פוסט בפיד זה" + "search_feed_post": "חפש פוסט בפיד זה", + "from": "מאת", + "via": "דרך", + "sent": "נשלח", + "unread": "לא נקרא", + "comment_replies": "תגובות לתגובות", + "post_replies": "תגובות לפוסטים" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index ec41f6b1..c8bca5bc 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -157,5 +157,11 @@ "block_community_alert": "क्या आप इस समुदाय को ब्लॉक करना चाहते हैं?", "unblock_community_alert": "क्या आप इस समुदाय को अनब्लॉक करना चाहते हैं?", "search_community_address": "एक समुदाय पता खोजें", - "search_feed_post": "इस फ़ीड में एक पोस्ट खोजें" + "search_feed_post": "इस फ़ीड में एक पोस्ट खोजें", + "from": "से", + "via": "के माध्यम से", + "sent": "भेजा गया", + "unread": "अपठित", + "comment_replies": "टिप्पणियों के जवाब", + "post_replies": "पोस्ट के जवाब" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index ee416147..b0ed339b 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Biztos vagy benne, hogy blokkolni szeretnéd ezt a közösséget?", "unblock_community_alert": "Biztos vagy benne, hogy feloldani szeretnéd ezt a közösséget?", "search_community_address": "Keresse meg egy közösség címét", - "search_feed_post": "Keresse meg a hírt ebben az összefoglalóban" + "search_feed_post": "Keresse meg a hírt ebben az összefoglalóban", + "from": "tőle", + "via": "könnyen", + "sent": "küldött", + "unread": "olvasatlan", + "comment_replies": "válaszok a kommentekre", + "post_replies": "válaszok a posztokra" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 26a9ed26..7f362546 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Apakah Anda yakin ingin memblokir komunitas ini?", "unblock_community_alert": "Apakah Anda yakin ingin membuka blokir komunitas ini?", "search_community_address": "Cari alamat komunitas", - "search_feed_post": "Cari postingan di umpan ini" + "search_feed_post": "Cari postingan di umpan ini", + "from": "dari", + "via": "melalui", + "sent": "dikirim", + "unread": "belum dibaca", + "comment_replies": "balasan komentar", + "post_replies": "balasan pos" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 486af0ac..c4900cda 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Sei sicuro di voler bloccare questa comunità?", "unblock_community_alert": "Sei sicuro di voler sbloccare questa comunità?", "search_community_address": "Cerca l'indirizzo di una comunità", - "search_feed_post": "Cerca un post in questa pagina" + "search_feed_post": "Cerca un post in questa pagina", + "from": "da", + "via": "via", + "sent": "inviato", + "unread": "non letti", + "comment_replies": "risposte ai commenti", + "post_replies": "risposte ai post" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index fb242d60..e513edda 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -157,5 +157,11 @@ "block_community_alert": "このコミュニティをブロックしてもよろしいですか?", "unblock_community_alert": "このコミュニティのブロック解除を確認しますか?", "search_community_address": "コミュニティのアドレスを検索", - "search_feed_post": "このフィード内の投稿を検索" + "search_feed_post": "このフィード内の投稿を検索", + "from": "から", + "via": "経由で", + "sent": "送信済み", + "unread": "未読", + "comment_replies": "コメントへの返信", + "post_replies": "投稿への返信" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 52a2319e..2c389362 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -157,5 +157,11 @@ "block_community_alert": "이 커뮤니티를 차단하시겠습니까?", "unblock_community_alert": "이 커뮤니티의 차단을 해제하시겠습니까?", "search_community_address": "커뮤니티 주소 검색", - "search_feed_post": "이 피드에서 게시물 검색" + "search_feed_post": "이 피드에서 게시물 검색", + "from": "보낸 사람", + "via": "을 통해", + "sent": "보냄", + "unread": "읽지 않음", + "comment_replies": "댓글 답글", + "post_replies": "게시물 답글" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index ca6dd339..2c38749c 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -157,5 +157,11 @@ "block_community_alert": "क्या आपल्याला आपल्या ही समुदाय ब्लॉक करायचं आहे का?", "unblock_community_alert": "क्या आपल्याला खात्री आहे की आपल्याला हे समुदाय अनब्लॉक करायचं आहे का?", "search_community_address": "समुदायाचा पत्ता शोधा", - "search_feed_post": "ह्या फीडमध्ये एक पोस्ट शोधा" + "search_feed_post": "ह्या फीडमध्ये एक पोस्ट शोधा", + "from": "पासून", + "via": "मार्फत", + "sent": "पाठविला", + "unread": "अपठित", + "comment_replies": "टिप्पणी उत्तरे", + "post_replies": "पोस्ट उत्तरे" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index da217f9c..9d3eec26 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Weet u zeker dat u deze gemeenschap wilt blokkeren?", "unblock_community_alert": "Weet u zeker dat u deze gemeenschap wilt deblokkeren?", "search_community_address": "Zoek een communityadres", - "search_feed_post": "Zoek een bericht in deze feed" + "search_feed_post": "Zoek een bericht in deze feed", + "from": "van", + "via": "via", + "sent": "verzonden", + "unread": "ongelezen", + "comment_replies": "reacties op opmerkingen", + "post_replies": "reacties op berichten" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 4ad991fd..d14f0ef3 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Er du sikker på at du vil blokkere dette samfunnet?", "unblock_community_alert": "Er du sikker på at du vil fjerne blokkeringen av dette samfunnet?", "search_community_address": "Søk etter en fellesskapsadresse", - "search_feed_post": "Søk etter en post i denne feeden" + "search_feed_post": "Søk etter en post i denne feeden", + "from": "fra", + "via": "via", + "sent": "sendt", + "unread": "ulest", + "comment_replies": "kommentarsvar", + "post_replies": "innleggssvar" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 4de1bca0..4ba34f44 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Jesteś pewien, że chcesz zablokować tę społeczność?", "unblock_community_alert": "Jesteś pewien, że chcesz odblokować tę społeczność?", "search_community_address": "Szukaj adresu społeczności", - "search_feed_post": "Szukaj posta w tym zasobie" + "search_feed_post": "Szukaj posta w tym zasobie", + "from": "od", + "via": "przez", + "sent": "wysłane", + "unread": "nieprzeczytane", + "comment_replies": "odpowiedzi na komentarze", + "post_replies": "odpowiedzi na posty" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index ee0cd90c..3bfc831b 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Tem certeza de que deseja bloquear esta comunidade?", "unblock_community_alert": "Tem certeza de que deseja desbloquear esta comunidade?", "search_community_address": "Pesquisar um endereço de comunidade", - "search_feed_post": "Pesquisar uma postagem neste feed" + "search_feed_post": "Pesquisar uma postagem neste feed", + "from": "de", + "via": "via", + "sent": "enviado", + "unread": "não lido", + "comment_replies": "respostas aos comentários", + "post_replies": "respostas às postagens" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 9228a618..484c2bfc 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Sunteți sigur că doriți să blocați această comunitate?", "unblock_community_alert": "Sunteți sigur că doriți să deblocați această comunitate?", "search_community_address": "Caută o adresă de comunitate", - "search_feed_post": "Caută o postare în acest flux" + "search_feed_post": "Caută o postare în acest flux", + "from": "de la", + "via": "prin", + "sent": "trimis", + "unread": "necitit", + "comment_replies": "răspunsuri la comentarii", + "post_replies": "răspunsuri la postări" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 59f22882..12956cee 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Вы уверены, что хотите заблокировать это сообщество?", "unblock_community_alert": "Вы уверены, что хотите разблокировать это сообщество?", "search_community_address": "Искать адрес сообщества", - "search_feed_post": "Искать запись в этой ленте" + "search_feed_post": "Искать запись в этой ленте", + "from": "от", + "via": "через", + "sent": "отправлено", + "unread": "непрочитанные", + "comment_replies": "ответы на комментарии", + "post_replies": "ответы на посты" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index bd7062a3..bd858309 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -157,5 +157,11 @@ "block_community_alert": "A jeni të sigurt se dëshironi të bllokoni këtë komunitet?", "unblock_community_alert": "A jeni të sigurt se dëshironi ta zhbllokoni këtë komunitet?", "search_community_address": "Kërkoni një adresë komuniteti", - "search_feed_post": "Kërkoni një postim në këtë rrjedhë" + "search_feed_post": "Kërkoni një postim në këtë rrjedhë", + "from": "nga", + "via": "përmes", + "sent": "dërguar", + "unread": "pa lexuar", + "comment_replies": "përgjigje te komentet", + "post_replies": "përgjigje te postimet" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 3b4d7fd4..e5f7fb80 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Är du säker på att du vill blockera detta samhälle?", "unblock_community_alert": "Är du säker på att du vill avblockera detta samhälle?", "search_community_address": "Sök efter en gemenskapsadress", - "search_feed_post": "Sök efter ett inlägg i detta flöde" + "search_feed_post": "Sök efter ett inlägg i detta flöde", + "from": "från", + "via": "via", + "sent": "skickat", + "unread": "olästa", + "comment_replies": "kommentarsvar", + "post_replies": "inläggssvar" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 0e0b219e..1e0d23dd 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -157,5 +157,11 @@ "block_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని బ్లాక్ చేయాలని ఉందా?", "unblock_community_alert": "మీరు ఖచ్చితముగా ఈ కమ్యూనిటీని అనబ్లాక్ చేయాలని ఉందా?", "search_community_address": "ఒక కమ్యూనిటీ చిరునామా వెతకండి", - "search_feed_post": "ఈ ఫీడ్లో ఒక పోస్టును వెతకండి" + "search_feed_post": "ఈ ఫీడ్లో ఒక పోస్టును వెతకండి", + "from": "నుండి", + "via": "ద్వారా", + "sent": "పంపబడింది", + "unread": "చదవని", + "comment_replies": "వ్యాఖ్యల సమాధానాలు", + "post_replies": "పోస్టు సమాధానాలు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index b4fcd45c..f092cbba 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -157,5 +157,11 @@ "block_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการบล็อกชุมชนนี้?", "unblock_community_alert": "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการบล็อกชุมชนนี้?", "search_community_address": "ค้นหาที่อยู่ของชุมชน", - "search_feed_post": "ค้นหาโพสต์ในฟีดนี้" + "search_feed_post": "ค้นหาโพสต์ในฟีดนี้", + "from": "จาก", + "via": "ผ่านทาง", + "sent": "ส่งแล้ว", + "unread": "ยังไม่ได้อ่าน", + "comment_replies": "การตอบกลับความคิดเห็น", + "post_replies": "การตอบกลับโพสต์" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 61fdb2ca..c3a82f91 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Bu topluluğu engellemek istediğinizden emin misiniz?", "unblock_community_alert": "Bu topluluğun engelini kaldırmak istediğinizden emin misiniz?", "search_community_address": "Bir topluluk adresi arayın", - "search_feed_post": "Bu akışta bir gönderi arayın" + "search_feed_post": "Bu akışta bir gönderi arayın", + "from": "kimden", + "via": "aracılığıyla", + "sent": "gönderildi", + "unread": "okunmamış", + "comment_replies": "yorum yanıtları", + "post_replies": "gönderi yanıtları" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index ad756184..73028486 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Ви впевнені, що хочете заблокувати цю спільноту?", "unblock_community_alert": "Ви впевнені, що хочете розблокувати цю спільноту?", "search_community_address": "Пошук адреси спільноти", - "search_feed_post": "Шукайте запис у цьому стрічці" + "search_feed_post": "Шукайте запис у цьому стрічці", + "from": "від", + "via": "через", + "sent": "відправлено", + "unread": "непрочитані", + "comment_replies": "відповіді на коментарі", + "post_replies": "відповіді на повідомлення" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index c3c84210..5d24d3ee 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -157,5 +157,11 @@ "block_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کو بلاک کرنا چاہتے ہیں؟", "unblock_community_alert": "کیا آپ واقعی یقینی ہیں کہ آپ اس کمیونٹی کی رکاوٹ ہٹانا چاہتے ہیں؟", "search_community_address": "ایک کمیونٹی کا پتہ تلاش کریں", - "search_feed_post": "اس فیڈ میں ایک پوسٹ تلاش کریں" + "search_feed_post": "اس فیڈ میں ایک پوسٹ تلاش کریں", + "from": "سے", + "via": "کے ذریعے", + "sent": "بھیجا گیا", + "unread": "نہ پڑھے", + "comment_replies": "تبادلہ ردوبدل", + "post_replies": "تبادلہ ردوبدل" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index f169b62d..7e15f7e5 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -157,5 +157,11 @@ "block_community_alert": "Bạn có chắc muốn chặn cộng đồng này không?", "unblock_community_alert": "Bạn có chắc muốn bỏ chặn cộng đồng này không?", "search_community_address": "Tìm kiếm địa chỉ của một cộng đồng", - "search_feed_post": "Tìm kiếm một bài viết trong feed này" + "search_feed_post": "Tìm kiếm một bài viết trong feed này", + "from": "từ", + "via": "qua", + "sent": "đã gửi", + "unread": "chưa đọc", + "comment_replies": "trả lời bình luận", + "post_replies": "trả lời bài viết" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 74daf344..4b45ba5a 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -157,5 +157,11 @@ "block_community_alert": "您确定要阻止此社区吗?", "unblock_community_alert": "您确定要解锁此社区吗?", "search_community_address": "搜索社区地址", - "search_feed_post": "在此订阅中搜索帖子" + "search_feed_post": "在此订阅中搜索帖子", + "from": "从", + "via": "通过", + "sent": "已发送", + "unread": "未读", + "comment_replies": "评论回复", + "post_replies": "帖子回复" } \ No newline at end of file diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index 6a2f957a..7a777067 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -155,6 +155,7 @@ const InboxParentLink = ({ commentCid }: ParentLinkProps) => { }; const InboxParentInfo = ({ commentCid, markedAsRead }: ParentLinkProps) => { + const { t } = useTranslation(); const parent = useComment({ commentCid }); const { author, cid, subplebbitAddress, timestamp } = parent || {}; const shortSubplebbitAddress = subplebbitAddress ? (subplebbitAddress.includes('.') ? subplebbitAddress : getShortAddress(subplebbitAddress)) : ''; @@ -162,15 +163,15 @@ const InboxParentInfo = ({ commentCid, markedAsRead }: ParentLinkProps) => { return ( <>
    - from{' '} + {t('from')}{' '} u/{author?.shortAddress}{' '} - via{' '} + {t('via')}{' '} p/{shortSubplebbitAddress}{' '} - sent {getFormattedTimeAgo(timestamp)} + {t('sent')} {getFormattedTimeAgo(timestamp)}
    show parent
    diff --git a/src/views/inbox/inbox.tsx b/src/views/inbox/inbox.tsx index 88fba970..1c654ad6 100644 --- a/src/views/inbox/inbox.tsx +++ b/src/views/inbox/inbox.tsx @@ -5,10 +5,12 @@ import { useAccount, useNotifications } from '@plebbit/plebbit-react-hooks'; import styles from './inbox.module.css'; import Reply from '../../components/reply/reply'; import { isInboxCommentRepliesView, isInboxPostRepliesView, isInboxUnreadView } from '../../lib/utils/view-utils'; +import { useTranslation } from 'react-i18next'; const lastVirtuosoStates: { [key: string]: StateSnapshot } = {}; const InboxTabs = () => { + const { t } = useTranslation(); const location = useLocation(); const isInboxCommentRepliesPage = isInboxCommentRepliesView(location.pathname); const isInboxPostRepliesPage = isInboxPostRepliesView(location.pathname); @@ -18,19 +20,19 @@ const InboxTabs = () => { return (
    - all + {t('all')} | - unread + {t('unread')} | - comment replies + {t('comment_replies')} | - post replies + {t('post_replies')}
    ); From e3091dd2f1804297ef988593485bafc8af5cec00 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 17:52:29 +0100 Subject: [PATCH 6/7] chore(translations): messages, inbox, mark all as read, comment reply, post reply --- public/translations/ar/default.json | 7 ++++++- public/translations/bn/default.json | 7 ++++++- public/translations/cs/default.json | 7 ++++++- public/translations/da/default.json | 7 ++++++- public/translations/de/default.json | 7 ++++++- public/translations/el/default.json | 7 ++++++- public/translations/en/default.json | 7 ++++++- public/translations/es/default.json | 7 ++++++- public/translations/fa/default.json | 7 ++++++- public/translations/fi/default.json | 7 ++++++- public/translations/fil/default.json | 7 ++++++- public/translations/fr/default.json | 7 ++++++- public/translations/he/default.json | 7 ++++++- public/translations/hi/default.json | 7 ++++++- public/translations/hu/default.json | 7 ++++++- public/translations/id/default.json | 7 ++++++- public/translations/it/default.json | 7 ++++++- public/translations/ja/default.json | 7 ++++++- public/translations/ko/default.json | 7 ++++++- public/translations/mr/default.json | 7 ++++++- public/translations/nl/default.json | 7 ++++++- public/translations/no/default.json | 7 ++++++- public/translations/pl/default.json | 7 ++++++- public/translations/pt/default.json | 7 ++++++- public/translations/ro/default.json | 7 ++++++- public/translations/ru/default.json | 7 ++++++- public/translations/sq/default.json | 7 ++++++- public/translations/sv/default.json | 7 ++++++- public/translations/te/default.json | 7 ++++++- public/translations/th/default.json | 7 ++++++- public/translations/tr/default.json | 7 ++++++- public/translations/uk/default.json | 7 ++++++- public/translations/ur/default.json | 7 ++++++- public/translations/vi/default.json | 7 ++++++- public/translations/zh/default.json | 7 ++++++- src/components/header/header.tsx | 6 ++++-- src/components/reply/reply.tsx | 3 ++- src/views/inbox/inbox.tsx | 3 ++- 38 files changed, 218 insertions(+), 39 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 9065aa42..79252772 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -163,5 +163,10 @@ "sent": "أرسل", "unread": "غير مقروء", "comment_replies": "ردود التعليقات", - "post_replies": "ردود المنشورات" + "post_replies": "ردود المنشورات", + "messages": "رسائل", + "inbox": "صندوق الوارد", + "mark_all_read": "وضع علامة على الجميع كمقروءة", + "comment_reply": "رد على التعليق", + "post_reply": "رد على المنشور" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index df0b70b3..5054c931 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -163,5 +163,10 @@ "sent": "প্রেরিত", "unread": "অপঠিত", "comment_replies": "মন্তব্যের উত্তর", - "post_replies": "পোস্টের উত্তর" + "post_replies": "পোস্টের উত্তর", + "messages": "বার্তা", + "inbox": "ইনবক্স", + "mark_all_read": "সবগুলি পঠিত হিসেবে চিহ্নিত করুন", + "comment_reply": "মন্তব্য প্রতিক্রিয়া", + "post_reply": "পোস্ট উত্তর" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index eaccc7f9..d76e5d44 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -163,5 +163,10 @@ "sent": "odesláno", "unread": "nepřečteno", "comment_replies": "odpovědi na komentáře", - "post_replies": "odpovědi na příspěvky" + "post_replies": "odpovědi na příspěvky", + "messages": "zprávy", + "inbox": "doručená pošta", + "mark_all_read": "označit vše jako přečtené", + "comment_reply": "odpovědět na komentář", + "post_reply": "odpovědět na příspěvek" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 54e75b9b..2f8dd05a 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -163,5 +163,10 @@ "sent": "sendt", "unread": "ulæst", "comment_replies": "kommentarsvar", - "post_replies": "indlægssvar" + "post_replies": "indlægssvar", + "messages": "beskeder", + "inbox": "indbakke", + "mark_all_read": "markér alle som læst", + "comment_reply": "svar på kommentar", + "post_reply": "svar på indlæg" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index a0ec78ed..99f0f6bc 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -163,5 +163,10 @@ "sent": "gesendet", "unread": "ungelesen", "comment_replies": "Antworten auf Kommentare", - "post_replies": "Antworten auf Beiträge" + "post_replies": "Antworten auf Beiträge", + "messages": "Nachrichten", + "inbox": "Posteingang", + "mark_all_read": "alle als gelesen markieren", + "comment_reply": "Kommentar antworten", + "post_reply": "Beitrag antworten" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 2f2983a2..e77e3463 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -163,5 +163,10 @@ "sent": "αποστάλθηκε", "unread": "αδιάβαστο", "comment_replies": "απαντήσεις σε σχόλια", - "post_replies": "απαντήσεις σε δημοσιεύσεις" + "post_replies": "απαντήσεις σε δημοσιεύσεις", + "messages": "μηνύματα", + "inbox": "εισερχόμενα", + "mark_all_read": "επισήμανση όλων ως διαβασμένα", + "comment_reply": "απάντηση σε σχόλιο", + "post_reply": "απάντηση στην ανάρτηση" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 49e78bd7..785524b0 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -163,5 +163,10 @@ "sent": "sent", "unread": "unread", "comment_replies": "comment replies", - "post_replies": "post replies" + "post_replies": "post replies", + "messages": "message", + "inbox": "inbox", + "mark_all_read": "mark all as read", + "comment_reply": "comment reply", + "post_reply": "post reply" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 08c89fb7..d238052b 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -163,5 +163,10 @@ "sent": "enviado", "unread": "no leído", "comment_replies": "respuestas a comentarios", - "post_replies": "respuestas a publicaciones" + "post_replies": "respuestas a publicaciones", + "messages": "mensajes", + "inbox": "bandeja de entrada", + "mark_all_read": "marcar todos como leídos", + "comment_reply": "responder al comentario", + "post_reply": "responder al post" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 72ab578a..fda4365a 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -163,5 +163,10 @@ "sent": "ارسال شده", "unread": "خوانده نشده", "comment_replies": "پاسخ‌های نظرات", - "post_replies": "پاسخ‌های ارسالی" + "post_replies": "پاسخ‌های ارسالی", + "messages": "پیام‌ها", + "inbox": "صندوق دریافت", + "mark_all_read": "نشان دادن همه به عنوان خوانده شده", + "comment_reply": "پاسخ به نظر", + "post_reply": "پاسخ به پست" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index b0aa3e0f..e2db120f 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -163,5 +163,10 @@ "sent": "lähetetty", "unread": "lukemattomat", "comment_replies": "kommenttivastaukset", - "post_replies": "viestivastaukset" + "post_replies": "viestivastaukset", + "messages": "viestit", + "inbox": "saapuneet", + "mark_all_read": "merkitse kaikki luetuiksi", + "comment_reply": "vastaa kommenttiin", + "post_reply": "vastaa viestiin" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index ccc32dba..e4032dfa 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -163,5 +163,10 @@ "sent": "ipinadala", "unread": "hindi pa nababasa", "comment_replies": "mga reply sa komento", - "post_replies": "mga reply sa post" + "post_replies": "mga reply sa post", + "messages": "mensahe", + "inbox": "inbox", + "mark_all_read": "tandaan ang lahat bilang nabasa", + "comment_reply": "sagot sa komento", + "post_reply": "sagot sa post" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index d1ea10cd..2c85e8a4 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -163,5 +163,10 @@ "sent": "envoyé", "unread": "non lu", "comment_replies": "réponses aux commentaires", - "post_replies": "réponses aux publications" + "post_replies": "réponses aux publications", + "messages": "messages", + "inbox": "boîte de réception", + "mark_all_read": "marquer tout comme lu", + "comment_reply": "répondre au commentaire", + "post_reply": "répondre au post" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 47bc8d4a..b4340d47 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -163,5 +163,10 @@ "sent": "נשלח", "unread": "לא נקרא", "comment_replies": "תגובות לתגובות", - "post_replies": "תגובות לפוסטים" + "post_replies": "תגובות לפוסטים", + "messages": "הודעות", + "inbox": "תיבת דואר נכנס", + "mark_all_read": "סמן הכל כנקרא", + "comment_reply": "הגב לתגובה", + "post_reply": "הגב לפוסט" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index c8bca5bc..0a6123d2 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -163,5 +163,10 @@ "sent": "भेजा गया", "unread": "अपठित", "comment_replies": "टिप्पणियों के जवाब", - "post_replies": "पोस्ट के जवाब" + "post_replies": "पोस्ट के जवाब", + "messages": "संदेश", + "inbox": "इनबॉक्स", + "mark_all_read": "सभी को पढ़ा हुआ चिह्नित करें", + "comment_reply": "कमेंट का जवाब दें", + "post_reply": "पोस्ट का जवाब दें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index b0ed339b..be4585d2 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -163,5 +163,10 @@ "sent": "küldött", "unread": "olvasatlan", "comment_replies": "válaszok a kommentekre", - "post_replies": "válaszok a posztokra" + "post_replies": "válaszok a posztokra", + "messages": "üzenetek", + "inbox": "beérkezett üzenetek", + "mark_all_read": "összes megjelölése olvasottként", + "comment_reply": "válasz a hozzászólásra", + "post_reply": "válasz a posztra" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 7f362546..30843f8b 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -163,5 +163,10 @@ "sent": "dikirim", "unread": "belum dibaca", "comment_replies": "balasan komentar", - "post_replies": "balasan pos" + "post_replies": "balasan pos", + "messages": "pesan", + "inbox": "kotak masuk", + "mark_all_read": "tandai semua sebagai telah dibaca", + "comment_reply": "balas komentar", + "post_reply": "balas postingan" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index c4900cda..b1c030d7 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -163,5 +163,10 @@ "sent": "inviato", "unread": "non letti", "comment_replies": "risposte ai commenti", - "post_replies": "risposte ai post" + "post_replies": "risposte ai post", + "messages": "messaggi", + "inbox": "posta in arrivo", + "mark_all_read": "segna tutti come letti", + "comment_reply": "rispondi al commento", + "post_reply": "rispondi al post" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index e513edda..987cbd2e 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -163,5 +163,10 @@ "sent": "送信済み", "unread": "未読", "comment_replies": "コメントへの返信", - "post_replies": "投稿への返信" + "post_replies": "投稿への返信", + "messages": "メッセージ", + "inbox": "受信トレイ", + "mark_all_read": "すべてを既読にする", + "comment_reply": "コメントに返信", + "post_reply": "投稿に返信" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 2c389362..72d553e3 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -163,5 +163,10 @@ "sent": "보냄", "unread": "읽지 않음", "comment_replies": "댓글 답글", - "post_replies": "게시물 답글" + "post_replies": "게시물 답글", + "messages": "메시지", + "inbox": "받은 편지함", + "mark_all_read": "모두 읽은 상태로 표시", + "comment_reply": "댓글 답글", + "post_reply": "게시물 답글" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 2c38749c..634f32f6 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -163,5 +163,10 @@ "sent": "पाठविला", "unread": "अपठित", "comment_replies": "टिप्पणी उत्तरे", - "post_replies": "पोस्ट उत्तरे" + "post_replies": "पोस्ट उत्तरे", + "messages": "संदेश", + "inbox": "इनबॉक्स", + "mark_all_read": "सर्व कोणत्याही वाचल्याचं दर्जा", + "comment_reply": "कॉमेंटचा उत्तर", + "post_reply": "पोस्टचा उत्तर" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 9d3eec26..0f29cd2b 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -163,5 +163,10 @@ "sent": "verzonden", "unread": "ongelezen", "comment_replies": "reacties op opmerkingen", - "post_replies": "reacties op berichten" + "post_replies": "reacties op berichten", + "messages": "berichten", + "inbox": "inbox", + "mark_all_read": "markeer alles als gelezen", + "comment_reply": "reageren op reactie", + "post_reply": "reageren op bericht" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index d14f0ef3..15c426ec 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -163,5 +163,10 @@ "sent": "sendt", "unread": "ulest", "comment_replies": "kommentarsvar", - "post_replies": "innleggssvar" + "post_replies": "innleggssvar", + "messages": "meldinger", + "inbox": "innboks", + "mark_all_read": "merk alle som lest", + "comment_reply": "svar på kommentar", + "post_reply": "svar på innlegg" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 4ba34f44..0f1feca9 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -163,5 +163,10 @@ "sent": "wysłane", "unread": "nieprzeczytane", "comment_replies": "odpowiedzi na komentarze", - "post_replies": "odpowiedzi na posty" + "post_replies": "odpowiedzi na posty", + "messages": "wiadomości", + "inbox": "skrzynka odbiorcza", + "mark_all_read": "oznacz wszystko jako przeczytane", + "comment_reply": "odpowiedź na komentarz", + "post_reply": "odpowiedź na post" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 3bfc831b..5e2a1bc3 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -163,5 +163,10 @@ "sent": "enviado", "unread": "não lido", "comment_replies": "respostas aos comentários", - "post_replies": "respostas às postagens" + "post_replies": "respostas às postagens", + "messages": "mensagens", + "inbox": "caixa de entrada", + "mark_all_read": "marcar todos como lidos", + "comment_reply": "responder ao comentário", + "post_reply": "responder ao post" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 484c2bfc..065fddb0 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -163,5 +163,10 @@ "sent": "trimis", "unread": "necitit", "comment_replies": "răspunsuri la comentarii", - "post_replies": "răspunsuri la postări" + "post_replies": "răspunsuri la postări", + "messages": "mesaje", + "inbox": "inbox", + "mark_all_read": "marcați toate ca citite", + "comment_reply": "răspunde la comentariu", + "post_reply": "răspunde la postare" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 12956cee..b7a85771 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -163,5 +163,10 @@ "sent": "отправлено", "unread": "непрочитанные", "comment_replies": "ответы на комментарии", - "post_replies": "ответы на посты" + "post_replies": "ответы на посты", + "messages": "сообщения", + "inbox": "входящие", + "mark_all_read": "пометить все как прочитанные", + "comment_reply": "ответить на комментарий", + "post_reply": "ответить на пост" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index bd858309..4f3cd654 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -163,5 +163,10 @@ "sent": "dërguar", "unread": "pa lexuar", "comment_replies": "përgjigje te komentet", - "post_replies": "përgjigje te postimet" + "post_replies": "përgjigje te postimet", + "messages": "mesazhe", + "inbox": "inbox", + "mark_all_read": "shëno të gjitha si të lexuara", + "comment_reply": "përgjigju komentit", + "post_reply": "përgjigju postës" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index e5f7fb80..8de32d49 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -163,5 +163,10 @@ "sent": "skickat", "unread": "olästa", "comment_replies": "kommentarsvar", - "post_replies": "inläggssvar" + "post_replies": "inläggssvar", + "messages": "meddelanden", + "inbox": "inkorg", + "mark_all_read": "markera alla som läst", + "comment_reply": "svara på kommentar", + "post_reply": "svara på inlägg" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 1e0d23dd..86e12cb6 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -163,5 +163,10 @@ "sent": "పంపబడింది", "unread": "చదవని", "comment_replies": "వ్యాఖ్యల సమాధానాలు", - "post_replies": "పోస్టు సమాధానాలు" + "post_replies": "పోస్టు సమాధానాలు", + "messages": "సందేశాలు", + "inbox": "ఇన్బాక్స్", + "mark_all_read": "అన్నిను చదవండి", + "comment_reply": "కమెంట్ స్పందించండి", + "post_reply": "పోస్టు స్పందించండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index f092cbba..927f44a0 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -163,5 +163,10 @@ "sent": "ส่งแล้ว", "unread": "ยังไม่ได้อ่าน", "comment_replies": "การตอบกลับความคิดเห็น", - "post_replies": "การตอบกลับโพสต์" + "post_replies": "การตอบกลับโพสต์", + "messages": "ข้อความ", + "inbox": "กล่องจดหมายเข้า", + "mark_all_read": "ทำเครื่องหมายทั้งหมดว่าอ่านแล้ว", + "comment_reply": "ตอบกลับความคิดเห็น", + "post_reply": "ตอบกลับโพสต์" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index c3a82f91..de45e0b0 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -163,5 +163,10 @@ "sent": "gönderildi", "unread": "okunmamış", "comment_replies": "yorum yanıtları", - "post_replies": "gönderi yanıtları" + "post_replies": "gönderi yanıtları", + "messages": "mesajlar", + "inbox": "gelen kutusu", + "mark_all_read": "tümünü okundu olarak işaretle", + "comment_reply": "yorumu yanıtla", + "post_reply": "gönderiye yanıtla" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 73028486..be0c549b 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -163,5 +163,10 @@ "sent": "відправлено", "unread": "непрочитані", "comment_replies": "відповіді на коментарі", - "post_replies": "відповіді на повідомлення" + "post_replies": "відповіді на повідомлення", + "messages": "повідомлення", + "inbox": "вхідні", + "mark_all_read": "позначити всі як прочитані", + "comment_reply": "відповісти на коментар", + "post_reply": "відповісти на пост" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 5d24d3ee..1c20d696 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -163,5 +163,10 @@ "sent": "بھیجا گیا", "unread": "نہ پڑھے", "comment_replies": "تبادلہ ردوبدل", - "post_replies": "تبادلہ ردوبدل" + "post_replies": "تبادلہ ردوبدل", + "messages": "پیغامات", + "inbox": "ان باکس", + "mark_all_read": "سب کو پڑھا ہوا مارک کریں", + "comment_reply": "تبادلہ کریں جواب", + "post_reply": "پوسٹ کا جواب دیں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 7e15f7e5..0d1340d2 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -163,5 +163,10 @@ "sent": "đã gửi", "unread": "chưa đọc", "comment_replies": "trả lời bình luận", - "post_replies": "trả lời bài viết" + "post_replies": "trả lời bài viết", + "messages": "tin nhắn", + "inbox": "hộp thư đến", + "mark_all_read": "đánh dấu tất cả là đã đọc", + "comment_reply": "trả lời bình luận", + "post_reply": "trả lời bài đăng" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 4b45ba5a..8bb621b3 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -163,5 +163,10 @@ "sent": "已发送", "unread": "未读", "comment_replies": "评论回复", - "post_replies": "帖子回复" + "post_replies": "帖子回复", + "messages": "消息", + "inbox": "收件箱", + "mark_all_read": "全部标记为已读", + "comment_reply": "回复评论", + "post_reply": "回复帖子" } \ No newline at end of file diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index ebe2f212..35b81707 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -184,11 +184,13 @@ const AuthorHeaderTabs = () => { }; const InboxHeaderTabs = () => { + const { t } = useTranslation(); + return ( <>
  • - inbox + {t('inbox')}
  • {/* TODO: add tabs for messaging when available in the API */} @@ -259,7 +261,7 @@ const HeaderTitle = ({ title, shortAddress }: { title: string; shortAddress: str } else if (isAuthorPage) { return authorTitle; } else if (isInboxPage) { - return 'message'; + return t('messages'); } return null; }; diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index 7a777067..e3176346 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -134,6 +134,7 @@ const ParentLink = ({ postCid }: ParentLinkProps) => { }; const InboxParentLink = ({ commentCid }: ParentLinkProps) => { + const { t } = useTranslation(); const inboxComment = useComment({ commentCid }); const { postCid, parentCid } = inboxComment || {}; const parent = useComment({ commentCid: inboxComment?.postCid }); @@ -146,7 +147,7 @@ const InboxParentLink = ({ commentCid }: ParentLinkProps) => { return (
    - {isInboxCommentReply ? 'comment reply' : isInboxPostReply ? 'post reply' : ''} + {isInboxCommentReply ? t('comment_reply') : isInboxPostReply ? t('post_reply') : ''} {postTitle} diff --git a/src/views/inbox/inbox.tsx b/src/views/inbox/inbox.tsx index 1c654ad6..c7536697 100644 --- a/src/views/inbox/inbox.tsx +++ b/src/views/inbox/inbox.tsx @@ -39,6 +39,7 @@ const InboxTabs = () => { }; const Inbox = () => { + const { t } = useTranslation(); const account = useAccount(); const { unreadNotificationCount } = account || {}; const { notifications, markAsRead } = useNotifications(); @@ -90,7 +91,7 @@ const Inbox = () => {
    Date: Wed, 27 Dec 2023 17:56:53 +0100 Subject: [PATCH 7/7] chore(translations): show parent --- public/translations/ar/default.json | 3 ++- public/translations/bn/default.json | 3 ++- public/translations/cs/default.json | 3 ++- public/translations/da/default.json | 3 ++- public/translations/de/default.json | 3 ++- public/translations/el/default.json | 3 ++- public/translations/en/default.json | 3 ++- public/translations/es/default.json | 3 ++- public/translations/fa/default.json | 3 ++- public/translations/fi/default.json | 3 ++- public/translations/fil/default.json | 3 ++- public/translations/fr/default.json | 3 ++- public/translations/he/default.json | 3 ++- public/translations/hi/default.json | 3 ++- public/translations/hu/default.json | 3 ++- public/translations/id/default.json | 3 ++- public/translations/it/default.json | 3 ++- public/translations/ja/default.json | 3 ++- public/translations/ko/default.json | 3 ++- public/translations/mr/default.json | 3 ++- public/translations/nl/default.json | 3 ++- public/translations/no/default.json | 3 ++- public/translations/pl/default.json | 3 ++- public/translations/pt/default.json | 3 ++- public/translations/ro/default.json | 3 ++- public/translations/ru/default.json | 3 ++- public/translations/sq/default.json | 3 ++- public/translations/sv/default.json | 3 ++- public/translations/te/default.json | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 3 ++- public/translations/uk/default.json | 3 ++- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 3 ++- public/translations/zh/default.json | 3 ++- src/components/reply/reply.tsx | 2 +- 36 files changed, 71 insertions(+), 36 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 79252772..32fa25d4 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -168,5 +168,6 @@ "inbox": "صندوق الوارد", "mark_all_read": "وضع علامة على الجميع كمقروءة", "comment_reply": "رد على التعليق", - "post_reply": "رد على المنشور" + "post_reply": "رد على المنشور", + "show_parent": "أظهر المشاركة المشار إليها" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 5054c931..786bc840 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -168,5 +168,6 @@ "inbox": "ইনবক্স", "mark_all_read": "সবগুলি পঠিত হিসেবে চিহ্নিত করুন", "comment_reply": "মন্তব্য প্রতিক্রিয়া", - "post_reply": "পোস্ট উত্তর" + "post_reply": "পোস্ট উত্তর", + "show_parent": "সূচিত পোস্ট দেখুন" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index d76e5d44..efe32652 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -168,5 +168,6 @@ "inbox": "doručená pošta", "mark_all_read": "označit vše jako přečtené", "comment_reply": "odpovědět na komentář", - "post_reply": "odpovědět na příspěvek" + "post_reply": "odpovědět na příspěvek", + "show_parent": "zobrazit příspěvek, na který se odkazuje" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 2f8dd05a..99031922 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -168,5 +168,6 @@ "inbox": "indbakke", "mark_all_read": "markér alle som læst", "comment_reply": "svar på kommentar", - "post_reply": "svar på indlæg" + "post_reply": "svar på indlæg", + "show_parent": "vis den henviste post" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 99f0f6bc..fd785122 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -168,5 +168,6 @@ "inbox": "Posteingang", "mark_all_read": "alle als gelesen markieren", "comment_reply": "Kommentar antworten", - "post_reply": "Beitrag antworten" + "post_reply": "Beitrag antworten", + "show_parent": "zeige den verlinkten Beitrag" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index e77e3463..374dc069 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -168,5 +168,6 @@ "inbox": "εισερχόμενα", "mark_all_read": "επισήμανση όλων ως διαβασμένα", "comment_reply": "απάντηση σε σχόλιο", - "post_reply": "απάντηση στην ανάρτηση" + "post_reply": "απάντηση στην ανάρτηση", + "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 785524b0..d3a3570d 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -168,5 +168,6 @@ "inbox": "inbox", "mark_all_read": "mark all as read", "comment_reply": "comment reply", - "post_reply": "post reply" + "post_reply": "post reply", + "show_parent": "show parent" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index d238052b..e3e27a87 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -168,5 +168,6 @@ "inbox": "bandeja de entrada", "mark_all_read": "marcar todos como leídos", "comment_reply": "responder al comentario", - "post_reply": "responder al post" + "post_reply": "responder al post", + "show_parent": "mostrar el post al que se hace referencia" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index fda4365a..9e5ef723 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -168,5 +168,6 @@ "inbox": "صندوق دریافت", "mark_all_read": "نشان دادن همه به عنوان خوانده شده", "comment_reply": "پاسخ به نظر", - "post_reply": "پاسخ به پست" + "post_reply": "پاسخ به پست", + "show_parent": "نمایش پست مرجع داده شده" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index e2db120f..d3ba723b 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -168,5 +168,6 @@ "inbox": "saapuneet", "mark_all_read": "merkitse kaikki luetuiksi", "comment_reply": "vastaa kommenttiin", - "post_reply": "vastaa viestiin" + "post_reply": "vastaa viestiin", + "show_parent": "näytä viitattu viesti" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index e4032dfa..efc5913a 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -168,5 +168,6 @@ "inbox": "inbox", "mark_all_read": "tandaan ang lahat bilang nabasa", "comment_reply": "sagot sa komento", - "post_reply": "sagot sa post" + "post_reply": "sagot sa post", + "show_parent": "ipakita ang tinutukoy na post" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 2c85e8a4..c442a89e 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -168,5 +168,6 @@ "inbox": "boîte de réception", "mark_all_read": "marquer tout comme lu", "comment_reply": "répondre au commentaire", - "post_reply": "répondre au post" + "post_reply": "répondre au post", + "show_parent": "afficher le post référencé" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index b4340d47..c1c3864b 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -168,5 +168,6 @@ "inbox": "תיבת דואר נכנס", "mark_all_read": "סמן הכל כנקרא", "comment_reply": "הגב לתגובה", - "post_reply": "הגב לפוסט" + "post_reply": "הגב לפוסט", + "show_parent": "הצג את הפוסט המתייחס אליו" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 0a6123d2..18ff1068 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -168,5 +168,6 @@ "inbox": "इनबॉक्स", "mark_all_read": "सभी को पढ़ा हुआ चिह्नित करें", "comment_reply": "कमेंट का जवाब दें", - "post_reply": "पोस्ट का जवाब दें" + "post_reply": "पोस्ट का जवाब दें", + "show_parent": "संदर्भित पोस्ट दिखाएं" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index be4585d2..64931dc4 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -168,5 +168,6 @@ "inbox": "beérkezett üzenetek", "mark_all_read": "összes megjelölése olvasottként", "comment_reply": "válasz a hozzászólásra", - "post_reply": "válasz a posztra" + "post_reply": "válasz a posztra", + "show_parent": "mutassa a hivatkozott bejegyzést" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 30843f8b..2d7503b7 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -168,5 +168,6 @@ "inbox": "kotak masuk", "mark_all_read": "tandai semua sebagai telah dibaca", "comment_reply": "balas komentar", - "post_reply": "balas postingan" + "post_reply": "balas postingan", + "show_parent": "tampilkan posting yang dirujuk" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index b1c030d7..efe26f64 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -168,5 +168,6 @@ "inbox": "posta in arrivo", "mark_all_read": "segna tutti come letti", "comment_reply": "rispondi al commento", - "post_reply": "rispondi al post" + "post_reply": "rispondi al post", + "show_parent": "mostra il post a cui è riferito" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 987cbd2e..d0a030a1 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -168,5 +168,6 @@ "inbox": "受信トレイ", "mark_all_read": "すべてを既読にする", "comment_reply": "コメントに返信", - "post_reply": "投稿に返信" + "post_reply": "投稿に返信", + "show_parent": "参照されている投稿を表示" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 72d553e3..4edbcae4 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -168,5 +168,6 @@ "inbox": "받은 편지함", "mark_all_read": "모두 읽은 상태로 표시", "comment_reply": "댓글 답글", - "post_reply": "게시물 답글" + "post_reply": "게시물 답글", + "show_parent": "참조된 게시물 표시" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 634f32f6..a32b0591 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -168,5 +168,6 @@ "inbox": "इनबॉक्स", "mark_all_read": "सर्व कोणत्याही वाचल्याचं दर्जा", "comment_reply": "कॉमेंटचा उत्तर", - "post_reply": "पोस्टचा उत्तर" + "post_reply": "पोस्टचा उत्तर", + "show_parent": "संदर्भित पोस्ट दाखवा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 0f29cd2b..e4b4377f 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -168,5 +168,6 @@ "inbox": "inbox", "mark_all_read": "markeer alles als gelezen", "comment_reply": "reageren op reactie", - "post_reply": "reageren op bericht" + "post_reply": "reageren op bericht", + "show_parent": "toon de verwezen post" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 15c426ec..d6d8fc92 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -168,5 +168,6 @@ "inbox": "innboks", "mark_all_read": "merk alle som lest", "comment_reply": "svar på kommentar", - "post_reply": "svar på innlegg" + "post_reply": "svar på innlegg", + "show_parent": "vis den refererte posten" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 0f1feca9..82b5ee28 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -168,5 +168,6 @@ "inbox": "skrzynka odbiorcza", "mark_all_read": "oznacz wszystko jako przeczytane", "comment_reply": "odpowiedź na komentarz", - "post_reply": "odpowiedź na post" + "post_reply": "odpowiedź na post", + "show_parent": "pokaż post, do którego jest odwołanie" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 5e2a1bc3..84bb3cec 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -168,5 +168,6 @@ "inbox": "caixa de entrada", "mark_all_read": "marcar todos como lidos", "comment_reply": "responder ao comentário", - "post_reply": "responder ao post" + "post_reply": "responder ao post", + "show_parent": "mostrar a postagem referenciada" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 065fddb0..a46c2b41 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -168,5 +168,6 @@ "inbox": "inbox", "mark_all_read": "marcați toate ca citite", "comment_reply": "răspunde la comentariu", - "post_reply": "răspunde la postare" + "post_reply": "răspunde la postare", + "show_parent": "afișează postarea referită" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index b7a85771..829ad1c0 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -168,5 +168,6 @@ "inbox": "входящие", "mark_all_read": "пометить все как прочитанные", "comment_reply": "ответить на комментарий", - "post_reply": "ответить на пост" + "post_reply": "ответить на пост", + "show_parent": "показать упомянутый пост" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 4f3cd654..611182b3 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -168,5 +168,6 @@ "inbox": "inbox", "mark_all_read": "shëno të gjitha si të lexuara", "comment_reply": "përgjigju komentit", - "post_reply": "përgjigju postës" + "post_reply": "përgjigju postës", + "show_parent": "shfaq postën e referuar" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 8de32d49..13e2388f 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -168,5 +168,6 @@ "inbox": "inkorg", "mark_all_read": "markera alla som läst", "comment_reply": "svara på kommentar", - "post_reply": "svara på inlägg" + "post_reply": "svara på inlägg", + "show_parent": "visa den refererade posten" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 86e12cb6..3db8d9ab 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -168,5 +168,6 @@ "inbox": "ఇన్బాక్స్", "mark_all_read": "అన్నిను చదవండి", "comment_reply": "కమెంట్ స్పందించండి", - "post_reply": "పోస్టు స్పందించండి" + "post_reply": "పోస్టు స్పందించండి", + "show_parent": "సూచించబడిన పోస్ట్ చూపించు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 927f44a0..2bb57deb 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -168,5 +168,6 @@ "inbox": "กล่องจดหมายเข้า", "mark_all_read": "ทำเครื่องหมายทั้งหมดว่าอ่านแล้ว", "comment_reply": "ตอบกลับความคิดเห็น", - "post_reply": "ตอบกลับโพสต์" + "post_reply": "ตอบกลับโพสต์", + "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index de45e0b0..6d0d4bc0 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -168,5 +168,6 @@ "inbox": "gelen kutusu", "mark_all_read": "tümünü okundu olarak işaretle", "comment_reply": "yorumu yanıtla", - "post_reply": "gönderiye yanıtla" + "post_reply": "gönderiye yanıtla", + "show_parent": "atıfta bulunulan gönderiyi göster" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index be0c549b..3bd4c195 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -168,5 +168,6 @@ "inbox": "вхідні", "mark_all_read": "позначити всі як прочитані", "comment_reply": "відповісти на коментар", - "post_reply": "відповісти на пост" + "post_reply": "відповісти на пост", + "show_parent": "показати зазначений допис" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 1c20d696..230bea5e 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -168,5 +168,6 @@ "inbox": "ان باکس", "mark_all_read": "سب کو پڑھا ہوا مارک کریں", "comment_reply": "تبادلہ کریں جواب", - "post_reply": "پوسٹ کا جواب دیں" + "post_reply": "پوسٹ کا جواب دیں", + "show_parent": "ذکر کردہ پوسٹ دکھائیں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 0d1340d2..d0040917 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -168,5 +168,6 @@ "inbox": "hộp thư đến", "mark_all_read": "đánh dấu tất cả là đã đọc", "comment_reply": "trả lời bình luận", - "post_reply": "trả lời bài đăng" + "post_reply": "trả lời bài đăng", + "show_parent": "hiển thị bài viết được tham khảo" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 8bb621b3..4b14070d 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -168,5 +168,6 @@ "inbox": "收件箱", "mark_all_read": "全部标记为已读", "comment_reply": "回复评论", - "post_reply": "回复帖子" + "post_reply": "回复帖子", + "show_parent": "显示被引用的帖子" } \ No newline at end of file diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index e3176346..45750bda 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -174,7 +174,7 @@ const InboxParentInfo = ({ commentCid, markedAsRead }: ParentLinkProps) => { {t('sent')} {getFormattedTimeAgo(timestamp)}
    -
    show parent
    +
    {t('show_parent')}
    ); };