From 84f55557c1cd5c5b477990e8e1ba62801cbebc8f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Mon, 29 Apr 2024 12:17:48 +0200 Subject: [PATCH] feat(post): add 'this thread is closed" alert for locked, removed, deleted comments --- 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/views/board/board.tsx | 7 ++++++- 36 files changed, 76 insertions(+), 36 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index f5d676bd..fc0e9c5e 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "مرحبًا بك في {{board}}", "comment_too_long": "التعليق طويل جدًا. <1>اضغط هنا لعرض النص الكامل.", "replies_omitted": "{{repliesCount}} ردود محذوفة. <1>اضغط هنا لعرضها.", - "replies_and_links_omitted": "{{repliesCount}} ردود و{{linksCount}} روابط محذوفة. <1>اضغط هنا لعرضها." + "replies_and_links_omitted": "{{repliesCount}} ردود و{{linksCount}} روابط محذوفة. <1>اضغط هنا لعرضها.", + "thread_closed_alert": "الموضوع مغلق" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index dca83bf6..b74f78fe 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "স্বাগতম {{board}}", "comment_too_long": "মন্তব্য খুব দীর্ঘ। <1>পূর্ণ পাঠ্য দেখতে এখানে ক্লিক করুন।", "replies_omitted": "{{repliesCount}}টি উত্তর বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন।", - "replies_and_links_omitted": "{{repliesCount}}টি উত্তর এবং {{linksCount}}টি লিঙ্ক বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন।" + "replies_and_links_omitted": "{{repliesCount}}টি উত্তর এবং {{linksCount}}টি লিঙ্ক বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন।", + "thread_closed_alert": "থ্রেডটি বন্ধ করা হয়েছে" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 9e48d870..97b0a3de 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Vítejte na {{board}}", "comment_too_long": "Komentář je příliš dlouhý. <1>Klikněte zde pro zobrazení celého textu.", "replies_omitted": "{{repliesCount}} odpovědí vynecháno. <1>Klikněte zde pro zobrazení.", - "replies_and_links_omitted": "{{repliesCount}} odpovědí a {{linksCount}} odkazů vynecháno. <1>Klikněte zde pro zobrazení." + "replies_and_links_omitted": "{{repliesCount}} odpovědí a {{linksCount}} odkazů vynecháno. <1>Klikněte zde pro zobrazení.", + "thread_closed_alert": "Vlákno je uzavřeno" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index e4762d4a..581b45ba 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Velkommen til {{board}}", "comment_too_long": "Kommentaren er for lang. <1>Klik her for at se hele teksten.", "replies_omitted": "{{repliesCount}} svar udeladt. <1>Klik her for at se dem.", - "replies_and_links_omitted": "{{repliesCount}} svar og {{linksCount}} links udeladt. <1>Klik her for at se dem." + "replies_and_links_omitted": "{{repliesCount}} svar og {{linksCount}} links udeladt. <1>Klik her for at se dem.", + "thread_closed_alert": "Tråden er lukket" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index a5fa6006..7e6df859 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Willkommen bei {{board}}", "comment_too_long": "Kommentar zu lang. <1>Klicken Sie hier, um den vollständigen Text anzuzeigen.", "replies_omitted": "{{repliesCount}} Antworten ausgelassen. <1>Klicken Sie hier, um sie anzuzeigen.", - "replies_and_links_omitted": "{{repliesCount}} Antworten und {{linksCount}} Links ausgelassen. <1>Klicken Sie hier, um sie anzuzeigen." + "replies_and_links_omitted": "{{repliesCount}} Antworten und {{linksCount}} Links ausgelassen. <1>Klicken Sie hier, um sie anzuzeigen.", + "thread_closed_alert": "Der Thread ist geschlossen" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index c7fd2ede..4927f4bb 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Καλώς ήρθατε στο {{board}}", "comment_too_long": "Το σχόλιο είναι πολύ μακροσκελές. <1>Κάντε κλικ εδώ για να δείτε το πλήρες κείμενο.", "replies_omitted": "{{repliesCount}} απαντήσεις παραλείφθηκαν. <1>Κάντε κλικ εδώ για να τις δείτε.", - "replies_and_links_omitted": "{{repliesCount}} απαντήσεις και {{linksCount}} σύνδεσμοι παραλείφθηκαν. <1>Κάντε κλικ εδώ για να τις δείτε." + "replies_and_links_omitted": "{{repliesCount}} απαντήσεις και {{linksCount}} σύνδεσμοι παραλείφθηκαν. <1>Κάντε κλικ εδώ για να τις δείτε.", + "thread_closed_alert": "Το νήμα έχει κλείσει" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index e8ba425e..431f808f 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Welcome to {{board}}", "comment_too_long": "Comment too long. <1>Click here to view the full text.", "replies_omitted": "{{repliesCount}} replies omitted. <1>Click here to view.", - "replies_and_links_omitted": "{{repliesCount}} replies and {{linksCount}} links omitted. <1>Click here to view." + "replies_and_links_omitted": "{{repliesCount}} replies and {{linksCount}} links omitted. <1>Click here to view.", + "thread_closed_alert": "This thread is closed" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 986a2dd1..ca55ff87 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Bienvenido a {{board}}", "comment_too_long": "Comentario demasiado largo. <1>Haz clic aquí para ver el texto completo.", "replies_omitted": "{{repliesCount}} respuestas omitidas. <1>Haz clic aquí para verlas.", - "replies_and_links_omitted": "{{repliesCount}} respuestas y {{linksCount}} enlaces omitidos. <1>Haz clic aquí para verlos." + "replies_and_links_omitted": "{{repliesCount}} respuestas y {{linksCount}} enlaces omitidos. <1>Haz clic aquí para verlos.", + "thread_closed_alert": "El hilo está cerrado" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index d7cebfe4..b8b10622 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "خوش آمدید به {{board}}", "comment_too_long": "نظر بسیار طولانی است. <1>اینجا کلیک کنید تا متن کامل را ببینید.", "replies_omitted": "{{repliesCount}} پاسخ حذف شده است. <1>اینجا کلیک کنید تا آنها را مشاهده کنید.", - "replies_and_links_omitted": "{{repliesCount}} پاسخ و {{linksCount}} لینک حذف شده است. <1>اینجا کلیک کنید تا آنها را مشاهده کنید." + "replies_and_links_omitted": "{{repliesCount}} پاسخ و {{linksCount}} لینک حذف شده است. <1>اینجا کلیک کنید تا آنها را مشاهده کنید.", + "thread_closed_alert": "موضوع بسته شده است" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index edcb2078..11341f19 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Tervetuloa {{board}}", "comment_too_long": "Kommentti on liian pitkä. <1>Napsauta tästä nähdäksesi koko tekstin.", "replies_omitted": "{{repliesCount}} vastausta jätetty pois. <1>Napsauta tästä nähdäksesi ne.", - "replies_and_links_omitted": "{{repliesCount}} vastausta ja {{linksCount}} linkkiä jätetty pois. <1>Napsauta tästä nähdäksesi ne." + "replies_and_links_omitted": "{{repliesCount}} vastausta ja {{linksCount}} linkkiä jätetty pois. <1>Napsauta tästä nähdäksesi ne.", + "thread_closed_alert": "Ketju on suljettu" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index e768ca48..f0fe4e70 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Maligayang pagdating sa {{board}}", "comment_too_long": "Masyadong mahaba ang komento. <1>I-click dito upang makita ang buong teksto.", "replies_omitted": "{{repliesCount}} mga tugon ang hindi ipinakita. <1>I-click dito upang makita.", - "replies_and_links_omitted": "{{repliesCount}} mga tugon at {{linksCount}} mga link ang hindi ipinakita. <1>I-click dito upang makita." + "replies_and_links_omitted": "{{repliesCount}} mga tugon at {{linksCount}} mga link ang hindi ipinakita. <1>I-click dito upang makita.", + "thread_closed_alert": "Sarado na ang thread" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 05e2085e..09653643 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Bienvenue sur {{board}}", "comment_too_long": "Commentaire trop long. <1>Cliquez ici pour voir le texte complet.", "replies_omitted": "{{repliesCount}} réponses omises. <1>Cliquez ici pour les afficher.", - "replies_and_links_omitted": "{{repliesCount}} réponses et {{linksCount}} liens omis. <1>Cliquez ici pour les afficher." + "replies_and_links_omitted": "{{repliesCount}} réponses et {{linksCount}} liens omis. <1>Cliquez ici pour les afficher.", + "thread_closed_alert": "Le fil est fermé" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 4b32b5b0..b49af68f 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "ברוך הבא ל{{board}}", "comment_too_long": "התגובה ארוכה מדי. <1>לחץ כאן כדי לראות את הטקסט המלא.", "replies_omitted": "{{repliesCount}} תגובות נשמטו. <1>לחץ כאן לצפייה.", - "replies_and_links_omitted": "{{repliesCount}} תגובות ו{{linksCount}} קישורים נשמטו. <1>לחץ כאן לצפייה." + "replies_and_links_omitted": "{{repliesCount}} תגובות ו{{linksCount}} קישורים נשמטו. <1>לחץ כאן לצפייה.", + "thread_closed_alert": "האשכול סגור" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 382541ed..ec41b0ff 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}} में आपका स्वागत है", "comment_too_long": "टिप्पणी बहुत लंबी है। <1>पूरा टेक्स्ट देखने के लिए यहां क्लिक करें।", "replies_omitted": "{{repliesCount}} उत्तर छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें।", - "replies_and_links_omitted": "{{repliesCount}} उत्तर और {{linksCount}} लिंक छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें।" + "replies_and_links_omitted": "{{repliesCount}} उत्तर और {{linksCount}} लिंक छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें।", + "thread_closed_alert": "यह थ्रेड बंद है" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 8f181e80..ce807949 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Üdvözöljük a(z) {{board}} oldalon", "comment_too_long": "A megjegyzés túl hosszú. <1>Kattintson ide a teljes szöveg megtekintéséhez.", "replies_omitted": "{{repliesCount}} válasz kihagyva. <1>Kattintson ide a megtekintéshez.", - "replies_and_links_omitted": "{{repliesCount}} válasz és {{linksCount}} link kihagyva. <1>Kattintson ide a megtekintéshez." + "replies_and_links_omitted": "{{repliesCount}} válasz és {{linksCount}} link kihagyva. <1>Kattintson ide a megtekintéshez.", + "thread_closed_alert": "A téma lezárva" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index bfa9e746..d4ff253d 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Selamat datang di {{board}}", "comment_too_long": "Komentar terlalu panjang. <1>Klik di sini untuk melihat teks lengkap.", "replies_omitted": "{{repliesCount}} balasan dihilangkan. <1>Klik di sini untuk melihat.", - "replies_and_links_omitted": "{{repliesCount}} balasan dan {{linksCount}} tautan dihilangkan. <1>Klik di sini untuk melihat." + "replies_and_links_omitted": "{{repliesCount}} balasan dan {{linksCount}} tautan dihilangkan. <1>Klik di sini untuk melihat.", + "thread_closed_alert": "Thread ini ditutup" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 8f760ac2..272266a7 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Benvenuti su {{board}}", "comment_too_long": "Commento troppo lungo. <1>Clicca qui per vedere il testo completo.", "replies_omitted": "{{repliesCount}} risposte omesse. <1>Clicca qui per visualizzare.", - "replies_and_links_omitted": "{{repliesCount}} risposte e {{linksCount}} link omessi. <1>Clicca qui per visualizzare." + "replies_and_links_omitted": "{{repliesCount}} risposte e {{linksCount}} link omessi. <1>Clicca qui per visualizzare.", + "thread_closed_alert": "Questo thread è chiuso" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 4519a9f1..1c2daef2 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}}へようこそ", "comment_too_long": "コメントが長すぎます。 <1>ここをクリックして全文を表示。", "replies_omitted": "{{repliesCount}}件の返信が省略されました。 <1>ここをクリックして表示。", - "replies_and_links_omitted": "{{repliesCount}}件の返信と{{linksCount}}件のリンクが省略されました。 <1>ここをクリックして表示。" + "replies_and_links_omitted": "{{repliesCount}}件の返信と{{linksCount}}件のリンクが省略されました。 <1>ここをクリックして表示。", + "thread_closed_alert": "このスレッドは閉じられています" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index bf952744..bbd25d9e 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}}에 오신 것을 환영합니다", "comment_too_long": "댓글이 너무 깁니다. <1>여기를 클릭하십시오 전체 텍스트를 보려면.", "replies_omitted": "{{repliesCount}}개의 답글이 생략되었습니다. <1>여기를 클릭하십시오 보려면.", - "replies_and_links_omitted": "{{repliesCount}}개의 답글과 {{linksCount}}개의 링크가 생략되었습니다. <1>여기를 클릭하십시오 보려면." + "replies_and_links_omitted": "{{repliesCount}}개의 답글과 {{linksCount}}개의 링크가 생략되었습니다. <1>여기를 클릭하십시오 보려면.", + "thread_closed_alert": "이 스레드는 닫혔습니다" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 6da339bd..5fd9161b 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}} वर आपले स्वागत आहे", "comment_too_long": "टिप्पणी खूप लांब आहे. <1>पूर्ण मजकूर पाहण्यासाठी येथे क्लिक करा.", "replies_omitted": "{{repliesCount}} प्रतिसाद वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा.", - "replies_and_links_omitted": "{{repliesCount}} प्रतिसाद आणि {{linksCount}} दुवे वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा." + "replies_and_links_omitted": "{{repliesCount}} प्रतिसाद आणि {{linksCount}} दुवे वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा.", + "thread_closed_alert": "हा थ्रेड बंद आहे" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 7dbdf7e3..cb43cd2b 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Welkom bij {{board}}", "comment_too_long": "Reactie te lang. <1>Klik hier om de volledige tekst te bekijken.", "replies_omitted": "{{repliesCount}} reacties weggelaten. <1>Klik hier om ze te bekijken.", - "replies_and_links_omitted": "{{repliesCount}} reacties en {{linksCount}} links weggelaten. <1>Klik hier om ze te bekijken." + "replies_and_links_omitted": "{{repliesCount}} reacties en {{linksCount}} links weggelaten. <1>Klik hier om ze te bekijken.", + "thread_closed_alert": "De thread is gesloten" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index c0f9b57e..99306ad1 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Velkommen til {{board}}", "comment_too_long": "Kommentaren er for lang. <1>Klikk her for å se hele teksten.", "replies_omitted": "{{repliesCount}} svar utelatt. <1>Klikk her for å se dem.", - "replies_and_links_omitted": "{{repliesCount}} svar og {{linksCount}} lenker utelatt. <1>Klikk her for å se dem." + "replies_and_links_omitted": "{{repliesCount}} svar og {{linksCount}} lenker utelatt. <1>Klikk her for å se dem.", + "thread_closed_alert": "Tråden er stengt" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 9e7e6506..4a3adcf9 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Witaj na {{board}}", "comment_too_long": "Komentarz jest za długi. <1>Kliknij tutaj, aby zobaczyć pełny tekst.", "replies_omitted": "Pominięto {{repliesCount}} odpowiedzi. <1>Kliknij tutaj, aby je zobaczyć.", - "replies_and_links_omitted": "Pominięto {{repliesCount}} odpowiedzi i {{linksCount}} linków. <1>Kliknij tutaj, aby je zobaczyć." + "replies_and_links_omitted": "Pominięto {{repliesCount}} odpowiedzi i {{linksCount}} linków. <1>Kliknij tutaj, aby je zobaczyć.", + "thread_closed_alert": "Wątek jest zamknięty" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 75310af8..cab2ba50 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Bem-vindo ao {{board}}", "comment_too_long": "Comentário muito longo. <1>Clique aqui para ver o texto completo.", "replies_omitted": "{{repliesCount}} respostas omitidas. <1>Clique aqui para visualizar.", - "replies_and_links_omitted": "{{repliesCount}} respostas e {{linksCount}} links omitidos. <1>Clique aqui para visualizar." + "replies_and_links_omitted": "{{repliesCount}} respostas e {{linksCount}} links omitidos. <1>Clique aqui para visualizar.", + "thread_closed_alert": "O tópico está fechado" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index eeb698d4..d5a8947c 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Bine ați venit la {{board}}", "comment_too_long": "Comentariul este prea lung. <1>Click aici pentru a vedea textul complet.", "replies_omitted": "{{repliesCount}} răspunsuri omise. <1>Click aici pentru a le vizualiza.", - "replies_and_links_omitted": "{{repliesCount}} răspunsuri și {{linksCount}} linkuri omise. <1>Click aici pentru a le vizualiza." + "replies_and_links_omitted": "{{repliesCount}} răspunsuri și {{linksCount}} linkuri omise. <1>Click aici pentru a le vizualiza.", + "thread_closed_alert": "Acest fir de discuție este închis" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index a047fd46..9171d56f 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Добро пожаловать на {{board}}", "comment_too_long": "Комментарий слишком длинный. <1>Нажмите здесь, чтобы прочитать полный текст.", "replies_omitted": "{{repliesCount}} ответов пропущено. <1>Нажмите здесь, чтобы посмотреть.", - "replies_and_links_omitted": "{{repliesCount}} ответов и {{linksCount}} ссылок пропущено. <1>Нажмите здесь, чтобы посмотреть." + "replies_and_links_omitted": "{{repliesCount}} ответов и {{linksCount}} ссылок пропущено. <1>Нажмите здесь, чтобы посмотреть.", + "thread_closed_alert": "Тема закрыта" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index a44330f9..646956d8 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Mirë se vini te {{board}}", "comment_too_long": "Komenti është shumë i gjatë. <1>Kliko këtu për të parë tekstin e plotë.", "replies_omitted": "{{repliesCount}} përgjigje janë lënë jashtë. <1>Kliko këtu për t'i shikuar.", - "replies_and_links_omitted": "{{repliesCount}} përgjigje dhe {{linksCount}} lidhje janë lënë jashtë. <1>Kliko këtu për t'i shikuar." + "replies_and_links_omitted": "{{repliesCount}} përgjigje dhe {{linksCount}} lidhje janë lënë jashtë. <1>Kliko këtu për t'i shikuar.", + "thread_closed_alert": "Temë është mbyllur" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 8ff32ec6..f4ae4592 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Välkommen till {{board}}", "comment_too_long": "Kommentaren är för lång. <1>Klicka här för att se hela texten.", "replies_omitted": "{{repliesCount}} svar utelämnade. <1>Klicka här för att visa dem.", - "replies_and_links_omitted": "{{repliesCount}} svar och {{linksCount}} länkar utelämnade. <1>Klicka här för att visa dem." + "replies_and_links_omitted": "{{repliesCount}} svar och {{linksCount}} länkar utelämnade. <1>Klicka här för att visa dem.", + "thread_closed_alert": "Tråden är stängd" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index b747b2c0..aa4eabea 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}} కు స్వాగతం", "comment_too_long": "వ్యాఖ్య చాలా పొడవుగా ఉంది. <1>పూర్తి టెక్స్ట్ చూడటానికి ఇక్కడ క్లిక్ చేయండి.", "replies_omitted": "{{repliesCount}} స్పందనలు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి.", - "replies_and_links_omitted": "{{repliesCount}} స్పందనలు మరియు {{linksCount}} లింకులు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి." + "replies_and_links_omitted": "{{repliesCount}} స్పందనలు మరియు {{linksCount}} లింకులు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి.", + "thread_closed_alert": "ఈ థ్రెడ్ మూసివేయబడింది" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index d0b9d40e..f04ae435 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "ยินดีต้อนรับสู่ {{board}}", "comment_too_long": "ความคิดเห็นยาวเกินไป <1>คลิกที่นี่ เพื่อดูข้อความเต็ม.", "replies_omitted": "ข้าม {{repliesCount}} คำตอบ <1>คลิกที่นี่ เพื่อดู.", - "replies_and_links_omitted": "ข้าม {{repliesCount}} คำตอบและ {{linksCount}} ลิงก์ <1>คลิกที่นี่ เพื่อดู." + "replies_and_links_omitted": "ข้าม {{repliesCount}} คำตอบและ {{linksCount}} ลิงก์ <1>คลิกที่นี่ เพื่อดู.", + "thread_closed_alert": "กระทู้นี้ถูกปิด" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 6844898d..01ea8901 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}}'a hoş geldiniz", "comment_too_long": "Yorum çok uzun. <1>Buraya tıklayın tam metni görüntülemek için.", "replies_omitted": "{{repliesCount}} yanıt göz ardı edildi. <1>Buraya tıklayın görüntülemek için.", - "replies_and_links_omitted": "{{repliesCount}} yanıt ve {{linksCount}} bağlantı göz ardı edildi. <1>Buraya tıklayın görüntülemek için." + "replies_and_links_omitted": "{{repliesCount}} yanıt ve {{linksCount}} bağlantı göz ardı edildi. <1>Buraya tıklayın görüntülemek için.", + "thread_closed_alert": "Bu konu kapatılmıştır" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index e72e3838..00ccd4a2 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Ласкаво просимо до {{board}}", "comment_too_long": "Коментар занадто довгий. <1>Натисніть тут, щоб переглянути повний текст.", "replies_omitted": "{{repliesCount}} відповідей пропущено. <1>Натисніть тут, щоб переглянути.", - "replies_and_links_omitted": "{{repliesCount}} відповідей та {{linksCount}} посилань пропущено. <1>Натисніть тут, щоб переглянути." + "replies_and_links_omitted": "{{repliesCount}} відповідей та {{linksCount}} посилань пропущено. <1>Натисніть тут, щоб переглянути.", + "thread_closed_alert": "Тему закрито" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 1631c4ac..2a62c06a 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "{{board}} میں خوش آمدید", "comment_too_long": "تبصرہ بہت طویل ہے۔ <1>مکمل متن دیکھنے کے لیے یہاں کلک کریں۔", "replies_omitted": "{{repliesCount}} جوابات چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں۔", - "replies_and_links_omitted": "{{repliesCount}} جوابات اور {{linksCount}} لنکس چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں۔" + "replies_and_links_omitted": "{{repliesCount}} جوابات اور {{linksCount}} لنکس چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں۔", + "thread_closed_alert": "یہ دھاگہ بند ہے" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 56d04b00..f49d5b95 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "Chào mừng bạn đến với {{board}}", "comment_too_long": "Bình luận quá dài. <1>Nhấn vào đây để xem toàn bộ văn bản.", "replies_omitted": "{{repliesCount}} câu trả lời bị bỏ qua. <1>Nhấn vào đây để xem.", - "replies_and_links_omitted": "{{repliesCount}} câu trả lời và {{linksCount}} liên kết bị bỏ qua. <1>Nhấn vào đây để xem." + "replies_and_links_omitted": "{{repliesCount}} câu trả lời và {{linksCount}} liên kết bị bỏ qua. <1>Nhấn vào đây để xem.", + "thread_closed_alert": "Chủ đề này đã đóng" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 86d70260..18f22749 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -58,5 +58,6 @@ "welcome_to_board": "欢迎来到{{board}}", "comment_too_long": "评论太长。 <1>点击这里查看完整文本。", "replies_omitted": "省略了{{repliesCount}}条回复。 <1>点击这里查看。", - "replies_and_links_omitted": "省略了{{repliesCount}}条回复和{{linksCount}}个链接。 <1>点击这里查看。" + "replies_and_links_omitted": "省略了{{repliesCount}}条回复和{{linksCount}}个链接。 <1>点击这里查看。", + "thread_closed_alert": "该主题已关闭" } \ No newline at end of file diff --git a/src/views/board/board.tsx b/src/views/board/board.tsx index 3c54bb65..062c34df 100644 --- a/src/views/board/board.tsx +++ b/src/views/board/board.tsx @@ -93,7 +93,12 @@ const Board = () => { increaseViewportBy={{ bottom: 1200, top: 1200 }} totalCount={feed?.length || 0} data={feed} - itemContent={(index, post) => } + itemContent={(index, post) => { + const { deleted, locked, removed } = post || {}; + const isThreadLocked = deleted || locked || removed; + + return alert(t('thread_closed_alert')) : openReplyModal} />; + }} useWindowScroll={true} components={{ Footer }} endReached={loadMore}