From 72f15c35662dddae986a83004201bda9ba3d088d Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sun, 28 Apr 2024 22:05:06 +0200 Subject: [PATCH] chore(translations): rules, welcome to board, comment too long, replies omitted, replies and links omitted --- 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 | 9 ++++-- 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/post/post.tsx | 30 +++++++++++-------- .../subplebbit-description.tsx | 4 ++- .../subplebbit-rules/subplebbit-rules.tsx | 5 +++- 38 files changed, 236 insertions(+), 50 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 12790b13..f5d676bd 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -53,5 +53,10 @@ "video": "فيديو", "audio": "صوت", "webpage": "صفحة ويب", - "iframe": "إطار" + "iframe": "إطار", + "rules": "القواعد", + "welcome_to_board": "مرحبًا بك في {{board}}", + "comment_too_long": "التعليق طويل جدًا. <1>اضغط هنا لعرض النص الكامل.", + "replies_omitted": "{{repliesCount}} ردود محذوفة. <1>اضغط هنا لعرضها.", + "replies_and_links_omitted": "{{repliesCount}} ردود و{{linksCount}} روابط محذوفة. <1>اضغط هنا لعرضها." } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 15bf450a..dca83bf6 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -53,5 +53,10 @@ "video": "ভিডিও", "audio": "অডিও", "webpage": "ওয়েবপেজ", - "iframe": "আইফ্রেম" + "iframe": "আইফ্রেম", + "rules": "নিয়ম", + "welcome_to_board": "স্বাগতম {{board}}", + "comment_too_long": "মন্তব্য খুব দীর্ঘ। <1>পূর্ণ পাঠ্য দেখতে এখানে ক্লিক করুন।", + "replies_omitted": "{{repliesCount}}টি উত্তর বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন।", + "replies_and_links_omitted": "{{repliesCount}}টি উত্তর এবং {{linksCount}}টি লিঙ্ক বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন।" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 80a09d59..9e48d870 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "webová stránka", - "iframe": "iframe" + "iframe": "iframe", + "rules": "pravidla", + "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í." } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 1ffcc41b..e4762d4a 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "lyd", "webpage": "websted", - "iframe": "iframe" + "iframe": "iframe", + "rules": "regler", + "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." } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 1b771cb2..a5fa6006 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -53,5 +53,10 @@ "video": "Video", "audio": "Audio", "webpage": "Webseite", - "iframe": "iframe" + "iframe": "iframe", + "rules": "Regeln", + "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." } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index cee4a4a0..c7fd2ede 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -53,5 +53,10 @@ "video": "βίντεο", "audio": "ήχος", "webpage": "ιστοσελίδα", - "iframe": "πλαίσιο" + "iframe": "πλαίσιο", + "rules": "κανόνες", + "welcome_to_board": "Καλώς ήρθατε στο {{board}}", + "comment_too_long": "Το σχόλιο είναι πολύ μακροσκελές. <1>Κάντε κλικ εδώ για να δείτε το πλήρες κείμενο.", + "replies_omitted": "{{repliesCount}} απαντήσεις παραλείφθηκαν. <1>Κάντε κλικ εδώ για να τις δείτε.", + "replies_and_links_omitted": "{{repliesCount}} απαντήσεις και {{linksCount}} σύνδεσμοι παραλείφθηκαν. <1>Κάντε κλικ εδώ για να τις δείτε." } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 6130152c..e8ba425e 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "webpage", - "iframe": "iframe" + "iframe": "iframe", + "rules": "rules", + "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." } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 04741f13..986a2dd1 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "página web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "reglas", + "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." } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index f332dfcd..d7cebfe4 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -53,5 +53,10 @@ "video": "ویدیو", "audio": "صدا", "webpage": "صفحه وب", - "iframe": "فریم" + "iframe": "فریم", + "rules": "قوانین", + "welcome_to_board": "خوش آمدید به {{board}}", + "comment_too_long": "نظر بسیار طولانی است. <1>اینجا کلیک کنید تا متن کامل را ببینید.", + "replies_omitted": "{{repliesCount}} پاسخ حذف شده است. <1>اینجا کلیک کنید تا آنها را مشاهده کنید.", + "replies_and_links_omitted": "{{repliesCount}} پاسخ و {{linksCount}} لینک حذف شده است. <1>اینجا کلیک کنید تا آنها را مشاهده کنید." } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 9c4edb0d..edcb2078 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "verkkosivu", - "iframe": "iframe" + "iframe": "iframe", + "rules": "säännöt", + "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." } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index f3a61060..e768ca48 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "pahinahon", - "iframe": "iframe" + "iframe": "iframe", + "rules": "mga patakaran", + "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." } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 330a16ee..05e2085e 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -53,5 +53,10 @@ "video": "vidéo", "audio": "audio", "webpage": "page web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "règles", + "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." } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index eb62ac00..4b32b5b0 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -53,5 +53,10 @@ "video": "וידאו", "audio": "שמע", "webpage": "דף אינטרנט", - "iframe": "מסגרת" + "iframe": "מסגרת", + "rules": "חוקים", + "welcome_to_board": "ברוך הבא ל{{board}}", + "comment_too_long": "התגובה ארוכה מדי. <1>לחץ כאן כדי לראות את הטקסט המלא.", + "replies_omitted": "{{repliesCount}} תגובות נשמטו. <1>לחץ כאן לצפייה.", + "replies_and_links_omitted": "{{repliesCount}} תגובות ו{{linksCount}} קישורים נשמטו. <1>לחץ כאן לצפייה." } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index c9b87e8f..382541ed 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -53,5 +53,10 @@ "video": "वीडियो", "audio": "ऑडियो", "webpage": "वेबपेज", - "iframe": "आइफ्रेम" + "iframe": "आइफ्रेम", + "rules": "नियम", + "welcome_to_board": "{{board}} में आपका स्वागत है", + "comment_too_long": "टिप्पणी बहुत लंबी है। <1>पूरा टेक्स्ट देखने के लिए यहां क्लिक करें।", + "replies_omitted": "{{repliesCount}} उत्तर छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें।", + "replies_and_links_omitted": "{{repliesCount}} उत्तर और {{linksCount}} लिंक छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें।" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 831c8aed..8f181e80 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -53,5 +53,10 @@ "video": "videó", "audio": "hang", "webpage": "weboldal", - "iframe": "iframe" + "iframe": "iframe", + "rules": "szabályok", + "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." } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 7da8c5b6..bfa9e746 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "halaman web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "aturan", + "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." } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 828b3b45..8f760ac2 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -12,7 +12,7 @@ "whitepaper": "Libro bianco", "token": "Token", "download_app": "Scarica app", - "start_new_thread": "Inizia un Nuovo Thread", + "start_new_thread": "Invia un Nuovo Thread", "show_stats": "Mostra Statistiche", "hide": "Nascondi", "board_stats_hour": "Nell'ultima ora, <1>{{userCount}} utenti hanno inviato <1>{{postCount}} post", @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "pagina web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "regole", + "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." } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 84e85634..4519a9f1 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -53,5 +53,10 @@ "video": "ビデオ", "audio": "音声", "webpage": "ウェブページ", - "iframe": "アイフレーム" + "iframe": "アイフレーム", + "rules": "ルール", + "welcome_to_board": "{{board}}へようこそ", + "comment_too_long": "コメントが長すぎます。 <1>ここをクリックして全文を表示。", + "replies_omitted": "{{repliesCount}}件の返信が省略されました。 <1>ここをクリックして表示。", + "replies_and_links_omitted": "{{repliesCount}}件の返信と{{linksCount}}件のリンクが省略されました。 <1>ここをクリックして表示。" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index e06d9cc8..bf952744 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -53,5 +53,10 @@ "video": "비디오", "audio": "오디오", "webpage": "웹 페이지", - "iframe": "iframe" + "iframe": "iframe", + "rules": "규칙", + "welcome_to_board": "{{board}}에 오신 것을 환영합니다", + "comment_too_long": "댓글이 너무 깁니다. <1>여기를 클릭하십시오 전체 텍스트를 보려면.", + "replies_omitted": "{{repliesCount}}개의 답글이 생략되었습니다. <1>여기를 클릭하십시오 보려면.", + "replies_and_links_omitted": "{{repliesCount}}개의 답글과 {{linksCount}}개의 링크가 생략되었습니다. <1>여기를 클릭하십시오 보려면." } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 277db5df..6da339bd 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -53,5 +53,10 @@ "video": "व्हिडिओ", "audio": "ऑडिओ", "webpage": "वेबपेज", - "iframe": "आयफ्रेम" + "iframe": "आयफ्रेम", + "rules": "नियम", + "welcome_to_board": "{{board}} वर आपले स्वागत आहे", + "comment_too_long": "टिप्पणी खूप लांब आहे. <1>पूर्ण मजकूर पाहण्यासाठी येथे क्लिक करा.", + "replies_omitted": "{{repliesCount}} प्रतिसाद वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा.", + "replies_and_links_omitted": "{{repliesCount}} प्रतिसाद आणि {{linksCount}} दुवे वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा." } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index b3c15338..7dbdf7e3 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "webpagina", - "iframe": "iframe" + "iframe": "iframe", + "rules": "regels", + "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." } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index d54c3df8..c0f9b57e 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "lyd", "webpage": "nettside", - "iframe": "iframe" + "iframe": "iframe", + "rules": "regler", + "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." } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index d4461b1b..9e7e6506 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -53,5 +53,10 @@ "video": "wideo", "audio": "audio", "webpage": "strona internetowa", - "iframe": "iframe" + "iframe": "iframe", + "rules": "zasady", + "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ć." } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index bcc96a95..75310af8 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -53,5 +53,10 @@ "video": "vídeo", "audio": "áudio", "webpage": "página da web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "regras", + "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." } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index dfc630f0..eeb698d4 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "pagină web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "reguli", + "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." } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 9d1e5817..a047fd46 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -53,5 +53,10 @@ "video": "видео", "audio": "аудио", "webpage": "веб-страница", - "iframe": "iframe" + "iframe": "iframe", + "rules": "правила", + "welcome_to_board": "Добро пожаловать на {{board}}", + "comment_too_long": "Комментарий слишком длинный. <1>Нажмите здесь, чтобы прочитать полный текст.", + "replies_omitted": "{{repliesCount}} ответов пропущено. <1>Нажмите здесь, чтобы посмотреть.", + "replies_and_links_omitted": "{{repliesCount}} ответов и {{linksCount}} ссылок пропущено. <1>Нажмите здесь, чтобы посмотреть." } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index e1b61844..a44330f9 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "audio", "webpage": "faqja web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "rregullat", + "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." } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index ef169c93..8ff32ec6 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "ljud", "webpage": "webbsida", - "iframe": "iframe" + "iframe": "iframe", + "rules": "regler", + "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." } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 5fc270d4..b747b2c0 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -53,5 +53,10 @@ "video": "వీడియో", "audio": "ఆడియో", "webpage": "వెబ్ పేజీ", - "iframe": "iframe" + "iframe": "iframe", + "rules": "నియమాలు", + "welcome_to_board": "{{board}} కు స్వాగతం", + "comment_too_long": "వ్యాఖ్య చాలా పొడవుగా ఉంది. <1>పూర్తి టెక్స్ట్ చూడటానికి ఇక్కడ క్లిక్ చేయండి.", + "replies_omitted": "{{repliesCount}} స్పందనలు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి.", + "replies_and_links_omitted": "{{repliesCount}} స్పందనలు మరియు {{linksCount}} లింకులు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి." } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index e5ab0833..d0b9d40e 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -53,5 +53,10 @@ "video": "วิดีโอ", "audio": "เสียง", "webpage": "หน้าเว็บ", - "iframe": "iframe" + "iframe": "iframe", + "rules": "กฎ", + "welcome_to_board": "ยินดีต้อนรับสู่ {{board}}", + "comment_too_long": "ความคิดเห็นยาวเกินไป <1>คลิกที่นี่ เพื่อดูข้อความเต็ม.", + "replies_omitted": "ข้าม {{repliesCount}} คำตอบ <1>คลิกที่นี่ เพื่อดู.", + "replies_and_links_omitted": "ข้าม {{repliesCount}} คำตอบและ {{linksCount}} ลิงก์ <1>คลิกที่นี่ เพื่อดู." } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 82634564..6844898d 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "ses", "webpage": "web sayfası", - "iframe": "iframe" + "iframe": "iframe", + "rules": "kurallar", + "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." } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 09cbaa8f..e72e3838 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -53,5 +53,10 @@ "video": "відео", "audio": "аудіо", "webpage": "веб-сторінка", - "iframe": "iframe" + "iframe": "iframe", + "rules": "правила", + "welcome_to_board": "Ласкаво просимо до {{board}}", + "comment_too_long": "Коментар занадто довгий. <1>Натисніть тут, щоб переглянути повний текст.", + "replies_omitted": "{{repliesCount}} відповідей пропущено. <1>Натисніть тут, щоб переглянути.", + "replies_and_links_omitted": "{{repliesCount}} відповідей та {{linksCount}} посилань пропущено. <1>Натисніть тут, щоб переглянути." } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 5187a463..1631c4ac 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -53,5 +53,10 @@ "video": "ویڈیو", "audio": "آڈیو", "webpage": "ویب پیج", - "iframe": "آئی فریم" + "iframe": "آئی فریم", + "rules": "اصول", + "welcome_to_board": "{{board}} میں خوش آمدید", + "comment_too_long": "تبصرہ بہت طویل ہے۔ <1>مکمل متن دیکھنے کے لیے یہاں کلک کریں۔", + "replies_omitted": "{{repliesCount}} جوابات چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں۔", + "replies_and_links_omitted": "{{repliesCount}} جوابات اور {{linksCount}} لنکس چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں۔" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 84db87b2..56d04b00 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -53,5 +53,10 @@ "video": "video", "audio": "âm thanh", "webpage": "trang web", - "iframe": "iframe" + "iframe": "iframe", + "rules": "quy tắc", + "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." } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index cd9e55eb..86d70260 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -53,5 +53,10 @@ "video": "视频", "audio": "音频", "webpage": "网页", - "iframe": "框架" + "iframe": "框架", + "rules": "规则", + "welcome_to_board": "欢迎来到{{board}}", + "comment_too_long": "评论太长。 <1>点击这里查看完整文本。", + "replies_omitted": "省略了{{repliesCount}}条回复。 <1>点击这里查看。", + "replies_and_links_omitted": "省略了{{repliesCount}}条回复和{{linksCount}}个链接。 <1>点击这里查看。" } \ No newline at end of file diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index 5cf7dc01..528b8219 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -1,6 +1,6 @@ import { useState } from 'react'; import { Link, useLocation, useParams } from 'react-router-dom'; -import { useTranslation } from 'react-i18next'; +import { Trans, useTranslation } from 'react-i18next'; import { Role, useAccount, useSubplebbit } from '@plebbit/plebbit-react-hooks'; import Plebbit from '@plebbit/plebbit-js/dist/browser/index.js'; import { getCommentMediaInfo, getHasThumbnail } from '../../lib/utils/media-utils'; @@ -50,10 +50,10 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) const [showThumbnail, setShowThumbnail] = useState(true); const replies = useReplies(post); - const visibleLinkCount = useCountLinksInReplies(post, 5); - const totalLinkCount = useCountLinksInReplies(post); + const visiblelinksCount = useCountLinksInReplies(post, 5); + const totallinksCount = useCountLinksInReplies(post); const repliesCount = pinned ? replyCount : replyCount - 5; - const linkCount = pinned ? totalLinkCount : totalLinkCount - visibleLinkCount; + const linksCount = pinned ? totallinksCount : totallinksCount - visiblelinksCount; const [menuBtnRotated, setMenuBtnRotated] = useState(false); @@ -176,7 +176,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) {content.length > 1000 && !isInPostPage && (
- Comment too long. Click here to view the full text. + }} />
)} @@ -186,10 +186,16 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) - - {repliesCount} replies {linkCount > 0 && `and ${linkCount} links`} omitted.{' '} - - Click here to view. + {linksCount > 0 ? ( + }} + values={{ repliesCount, linksCount }} + /> + ) : ( + }} values={{ repliesCount }} /> + )} )} {!(pinned && !isInPostPage) && @@ -351,7 +357,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps) const location = useLocation(); const isInPostPage = isPostPageView(location.pathname, params); - const linkCount = useCountLinksInReplies(post); + const linksCount = useCountLinksInReplies(post); const displayTitle = title && title.length > 30 ? title?.slice(0, 30) + '(...)' : title; const displayContent = content && !isInPostPage && content.length > 1000 ? content?.slice(0, 1000) : content; @@ -435,7 +441,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps) {content.length > 1000 && !isInPostPage && (
- Comment too long. Click here to view the full text. + }} />
)} @@ -445,7 +451,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps)
{replyCount > 0 && `${replyCount} Replies`} - {linkCount > 0 && ` / ${linkCount} Links`} + {linksCount > 0 && ` / ${linksCount} Links`} {t('view_thread')} diff --git a/src/components/subplebbit-description/subplebbit-description.tsx b/src/components/subplebbit-description/subplebbit-description.tsx index e4ed8644..2522b0a3 100644 --- a/src/components/subplebbit-description/subplebbit-description.tsx +++ b/src/components/subplebbit-description/subplebbit-description.tsx @@ -1,4 +1,5 @@ import Post from '../post'; +import { useTranslation } from 'react-i18next'; interface DescriptionPostProps { subplebbitAddress: string | undefined; @@ -9,6 +10,7 @@ interface DescriptionPostProps { } const SubplebbitDescription = ({ subplebbitAddress, createdAt, description, avatarUrl, title }: DescriptionPostProps) => { + const { t } = useTranslation(); const post = { isDescription: true, subplebbitAddress, @@ -16,7 +18,7 @@ const SubplebbitDescription = ({ subplebbitAddress, createdAt, description, avat author: { displayName: '## Board Mods' }, content: description, link: avatarUrl, - title: 'Welcome to ' + title, + title: t('welcome_to_board', { board: title }), pinned: true, locked: true, }; diff --git a/src/components/subplebbit-rules/subplebbit-rules.tsx b/src/components/subplebbit-rules/subplebbit-rules.tsx index ccf3dffb..0f04daf2 100644 --- a/src/components/subplebbit-rules/subplebbit-rules.tsx +++ b/src/components/subplebbit-rules/subplebbit-rules.tsx @@ -1,4 +1,6 @@ import Post from '../post'; +import { useTranslation } from 'react-i18next'; +import _ from 'lodash'; interface RulesPostProps { subplebbitAddress: string | undefined; @@ -7,6 +9,7 @@ interface RulesPostProps { } const SubplebbitRules = ({ subplebbitAddress, createdAt, rules }: RulesPostProps) => { + const { t } = useTranslation(); const content = rules.map((rule, index) => `${index + 1}. ${rule}`).join('\n'); const post = { isRules: true, @@ -14,7 +17,7 @@ const SubplebbitRules = ({ subplebbitAddress, createdAt, rules }: RulesPostProps timestamp: createdAt, author: { displayName: '## Board Mods' }, content, - title: 'Rules', + title: _.capitalize(t('rules')), pinned: true, locked: true, };