diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index ed9cb73b..aafa9d32 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "إخفاء الصور الرمزية من الردود", "yes": "نعم", "no": "لا", - "are_you_sure": "هل أنت متأكد؟" + "are_you_sure": "هل أنت متأكد؟", + "a_short_title": "عنوان قصير لمجتمعك", + "anti_spam_challenges": "تحديات مكافحة البريد العشوائي", + "anti_spam_challenges_subtitle": "اختر تحدي أو أكثر لمنع الرسائل غير المرغوب فيها", + "add_a_challenge": "إضافة تحدي" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 77643eda..a20d2b1d 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "প্রতিক্রিয়া থেকে অ্যাভাটারগুলি লুকান", "yes": "হ্যাঁ", "no": "না", - "are_you_sure": "আপনি কি নিশ্চিত?" + "are_you_sure": "আপনি কি নিশ্চিত?", + "a_short_title": "আপনার সম্প্রদায়ের জন্য একটি সংক্ষিপ্ত শিরোনাম", + "anti_spam_challenges": "অ্যান্টি-স্প্যাম চ্যালেঞ্জ", + "anti_spam_challenges_subtitle": "স্প্যাম প্রতিরোধ করতে এক বা একাধিক চ্যালেঞ্জ নির্বাচন করুন", + "add_a_challenge": "একটি চ্যালেঞ্জ যোগ করুন" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index dab9c9f5..cb54df11 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Skrýt avatary v odpovědích", "yes": "ano", "no": "ne", - "are_you_sure": "Jste si jistí?" + "are_you_sure": "Jste si jistí?", + "a_short_title": "Krátký název pro vaši komunitu", + "anti_spam_challenges": "Anti-spam výzvy", + "anti_spam_challenges_subtitle": "Vyberte jednu nebo více výzev k prevenci spamu", + "add_a_challenge": "Přidat výzvu" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 520c7f1c..46d56ed1 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Skjul avatarer fra svar", "yes": "ja", "no": "nej", - "are_you_sure": "Er du sikker?" + "are_you_sure": "Er du sikker?", + "a_short_title": "En kort titel til dit fællesskab", + "anti_spam_challenges": "Anti-spam udfordringer", + "anti_spam_challenges_subtitle": "Vælg en eller flere udfordringer for at forhindre spam", + "add_a_challenge": "Tilføj en udfordring" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 31cf1ab6..09d91a12 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Avatare in Antworten ausblenden", "yes": "ja", "no": "nein", - "are_you_sure": "Bist du sicher?" + "are_you_sure": "Bist du sicher?", + "a_short_title": "Ein kurzer Titel für deine Gemeinschaft", + "anti_spam_challenges": "Anti-Spam-Herausforderungen", + "anti_spam_challenges_subtitle": "Wählen Sie eine oder mehrere Herausforderungen zur Vermeidung von Spam", + "add_a_challenge": "Herausforderung hinzufügen" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 5a4603ea..5a572c71 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Απόκρυψη avatar από τις απαντήσεις", "yes": "ναι", "no": "όχι", - "are_you_sure": "Είσαι σίγουρος;" + "are_you_sure": "Είσαι σίγουρος;", + "a_short_title": "Ένας σύντομος τίτλος για την κοινότητά σας", + "anti_spam_challenges": "Προκλήσεις κατά του spam", + "anti_spam_challenges_subtitle": "Επιλέξτε μία ή περισσότερες προκλήσεις για την αποτροπή των spam", + "add_a_challenge": "Προσθήκη πρόκλησης" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index dd23736a..ee1b8872 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -239,7 +239,7 @@ "create_community_not_available": "Not yet available on web. You can create a community using the desktop app, download it here: {{desktopLink}}. If you are comfortable with the command line, check out: {{cliLink}}", "no_media_found": "No media found", "no_image_found": "No image found", - "warning_spam": "Warning: no challenge selected, community is vulnerable to spam attacks.", + "warning_spam": "Warning: no challenge selected, the community is vulnerable to spam attacks.", "hide_help": "Hide help", "formatting_help": "Formatting help", "you_see": "you see", @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Hide avatars from replies", "yes": "yes", "no": "no", - "are_you_sure": "Are you sure?" + "are_you_sure": "Are you sure?", + "a_short_title": "A short title for your community", + "anti_spam_challenges": "Anti-spam challenges", + "anti_spam_challenges_subtitle": "Choose one or more challenges to prevent spam", + "add_a_challenge": "Add a challenge" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 5fb7fd17..ef73897a 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Ocultar avatares de las respuestas", "yes": "sí", "no": "no", - "are_you_sure": "¿Estás seguro?" + "are_you_sure": "¿Estás seguro?", + "a_short_title": "Un título corto para tu comunidad", + "anti_spam_challenges": "Desafíos anti-spam", + "anti_spam_challenges_subtitle": "Elige uno o más desafíos para prevenir el spam", + "add_a_challenge": "Añadir un desafío" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 93f13b84..ae50cd2d 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "تصاویر پروفایل را از پاسخ‌ها پنهان کن", "yes": "بله", "no": "نه", - "are_you_sure": "آیا مطمئن هستید؟" + "are_you_sure": "آیا مطمئن هستید؟", + "a_short_title": "یک عنوان کوتاه برای جامعه شما", + "anti_spam_challenges": "چالش‌های ضد هرزنامه", + "anti_spam_challenges_subtitle": "یک یا چند چالش برای جلوگیری از هرزنامه انتخاب کنید", + "add_a_challenge": "یک چالش اضافه کنید" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index bac08096..2acf2c0d 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Piilota avatarit vastauksista", "yes": "kyllä", "no": "ei", - "are_you_sure": "Oletko varma?" + "are_you_sure": "Oletko varma?", + "a_short_title": "Lyhyt otsikko yhteisöllesi", + "anti_spam_challenges": "Vasta-roskapostin haasteet", + "anti_spam_challenges_subtitle": "Valitse yksi tai useampi haaste estämään roskapostia", + "add_a_challenge": "Lisää haaste" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 0e8143f2..614beb30 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Itago ang mga avatar mula sa mga sagot", "yes": "oo", "no": "hindi", - "are_you_sure": "Sigurado ka ba?" + "are_you_sure": "Sigurado ka ba?", + "a_short_title": "Isang maikling pamagat para sa iyong komunidad", + "anti_spam_challenges": "Mga anti-spam na hamon", + "anti_spam_challenges_subtitle": "Pumili ng isa o higit pang mga hamon upang maiwasan ang spam", + "add_a_challenge": "Magdagdag ng hamon" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 5794cbe5..db2d081d 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Cacher les avatars des réponses", "yes": "oui", "no": "non", - "are_you_sure": "Êtes-vous sûr?" + "are_you_sure": "Êtes-vous sûr?", + "a_short_title": "Un titre court pour votre communauté", + "anti_spam_challenges": "Défis anti-spam", + "anti_spam_challenges_subtitle": "Choisissez un ou plusieurs défis pour prévenir le spam", + "add_a_challenge": "Ajouter un défi" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 19d4d625..df8e808d 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "הסתרת תמונות פרופיל בתשובות", "yes": "כן", "no": "לא", - "are_you_sure": "האם אתה בטוח?" + "are_you_sure": "האם אתה בטוח?", + "a_short_title": "כותרת קצרה עבור הקהילה שלך", + "anti_spam_challenges": "אתגרים נגד ספאם", + "anti_spam_challenges_subtitle": "בחר אתגר אחד או יותר כדי למנוע דואר זבל", + "add_a_challenge": "הוסף אתגר" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index a6a1e67e..acdea680 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "उत्तर से अवतार छुपाएं", "yes": "हां", "no": "नहीं", - "are_you_sure": "क्या आप सुनिश्चित हैं?" + "are_you_sure": "क्या आप सुनिश्चित हैं?", + "a_short_title": "आपके समुदाय के लिए एक छोटा शीर्षक", + "anti_spam_challenges": "एंटी-स्पैम चुनौतियाँ", + "anti_spam_challenges_subtitle": "स्पैम को रोकने के लिए एक या अधिक चुनौतियाँ चुनें", + "add_a_challenge": "एक चुनौती जोड़ें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 9a54faf1..5df6bc3f 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Rejtse el az avatarokat a válaszokból", "yes": "igen", "no": "nem", - "are_you_sure": "Biztos vagy benne?" + "are_you_sure": "Biztos vagy benne?", + "a_short_title": "Egy rövid cím a közösségednek", + "anti_spam_challenges": "Anti-spam kihívások", + "anti_spam_challenges_subtitle": "Válasszon egy vagy több kihívást a spam megelőzésére", + "add_a_challenge": "Hozzáad egy kihívást" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 97154e5b..375b64a5 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Sembunyikan avatar dari balasan", "yes": "iya", "no": "tidak", - "are_you_sure": "Apakah Anda yakin?" + "are_you_sure": "Apakah Anda yakin?", + "a_short_title": "Judul singkat untuk komunitas Anda", + "anti_spam_challenges": "Tantangan anti-spam", + "anti_spam_challenges_subtitle": "Pilih satu atau lebih tantangan untuk mencegah spam", + "add_a_challenge": "Tambahkan tantangan" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 325b08d6..acdf1bc3 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -176,7 +176,7 @@ "moderator": "Moderatore", "description": "Descrizione", "rules": "Regole", - "challenge": "Test", + "challenge": "challenge anti-spam", "settings": "Impostazioni", "save_options": "Salva opzioni", "logo": "Logo", @@ -217,7 +217,7 @@ "preview": "anteprima", "shown_in_sidebar": "mostrato nella barra laterale della tua comunità", "community_logo_info": "imposta un logo di comunità utilizzando il suo link diretto all'immagine (che termina in .jpg, .png)", - "moderators_setting_info": "lascia che altri utenti moderino e pubblichino senza sfide", + "moderators_setting_info": "lascia che altri utenti moderino e pubblichino senza challenge", "vote": "vota", "passing": "in approvazione", "rejecting": "in rifiuto", @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Nascondi avatar da commenti", "yes": "sì", "no": "no", - "are_you_sure": "Sei sicuro?" + "are_you_sure": "Sei sicuro?", + "a_short_title": "Un titolo breve per la tua comunità", + "anti_spam_challenges": "challenge anti-spam", + "anti_spam_challenges_subtitle": "Scegli una o più challenge per prevenire lo spam", + "add_a_challenge": "Aggiungi un challenge" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 915583b6..ee94a403 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "返信からアバターを非表示にする", "yes": "はい", "no": "いいえ", - "are_you_sure": "本当にそうですか?" + "are_you_sure": "本当にそうですか?", + "a_short_title": "あなたのコミュニティのための短いタイトル", + "anti_spam_challenges": "アンチスパムチャレンジ", + "anti_spam_challenges_subtitle": "スパムを防ぐために1つ以上のチャレンジを選択してください", + "add_a_challenge": "チャレンジを追加" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 0cf9c8ff..6ab430e2 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "답글에서 아바타 숨기기", "yes": "네", "no": "아니요", - "are_you_sure": "정말 확실합니까?" + "are_you_sure": "정말 확실합니까?", + "a_short_title": "귀하의 커뮤니티를 위한 짧은 제목", + "anti_spam_challenges": "스팸 방지 챌린지", + "anti_spam_challenges_subtitle": "스팸을 방지하기 위해 하나 이상의 챌린지를 선택하세요", + "add_a_challenge": "도전 추가" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index f8a6f246..32d31edb 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "उत्तरांमधून अवतार लपवा", "yes": "होय", "no": "नाही", - "are_you_sure": "तुम्हाला खात्री आहे का?" + "are_you_sure": "तुम्हाला खात्री आहे का?", + "a_short_title": "तुमच्या समुदायासाठी एक छोटा शीर्षक", + "anti_spam_challenges": "ॲंटी-स्पॅम चॅलेंजेस", + "anti_spam_challenges_subtitle": "स्पॅम रोखण्यासाठी एक किंवा अधिक आव्हाने निवडा", + "add_a_challenge": "एक आव्हान जोडा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 496f94ba..aecf345c 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Verberg avatars van reacties", "yes": "ja", "no": "nee", - "are_you_sure": "Weet je het zeker?" + "are_you_sure": "Weet je het zeker?", + "a_short_title": "Een korte titel voor je gemeenschap", + "anti_spam_challenges": "Anti-spam uitdagingen", + "anti_spam_challenges_subtitle": "Kies een of meer uitdagingen om spam te voorkomen", + "add_a_challenge": "Voeg een uitdaging toe" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 9da7352d..a0661b26 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Skjul avatarer fra svar", "yes": "ja", "no": "nei", - "are_you_sure": "Er du sikker?" + "are_you_sure": "Er du sikker?", + "a_short_title": "En kort tittel for ditt fellesskap", + "anti_spam_challenges": "Anti-spam utfordringer", + "anti_spam_challenges_subtitle": "Velg en eller flere utfordringer for å hindre spam", + "add_a_challenge": "Legg til en utfordring" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 08c2a715..4d2045dd 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Ukryj avatary w odpowiedziach", "yes": "tak", "no": "nie", - "are_you_sure": "Jesteś pewny?" + "are_you_sure": "Jesteś pewny?", + "a_short_title": "Krótki tytuł dla twojej społeczności", + "anti_spam_challenges": "Wyzwania przeciw spamowi", + "anti_spam_challenges_subtitle": "Wybierz jedno lub więcej wyzwań, aby zapobiec spamowi", + "add_a_challenge": "Dodaj wyzwanie" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 80fc3be0..75a404f4 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Esconder avatares das respostas", "yes": "sim", "no": "não", - "are_you_sure": "Tem certeza?" + "are_you_sure": "Tem certeza?", + "a_short_title": "Um título curto para sua comunidade", + "anti_spam_challenges": "Desafios anti-spam", + "anti_spam_challenges_subtitle": "Escolha um ou mais desafios para evitar spam", + "add_a_challenge": "Adicionar um desafio" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index e01be8f8..d34dc084 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Ascunde avatarele din răspunsuri", "yes": "da", "no": "nu", - "are_you_sure": "Ești sigur?" + "are_you_sure": "Ești sigur?", + "a_short_title": "Un titlu scurt pentru comunitatea ta", + "anti_spam_challenges": "Provocări anti-spam", + "anti_spam_challenges_subtitle": "Alegeți unul sau mai multe provocări pentru a preveni spamul", + "add_a_challenge": "Adăugați o provocare" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 8998e40b..71cf498a 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Скрыть аватары в ответах", "yes": "да", "no": "нет", - "are_you_sure": "Вы уверены?" + "are_you_sure": "Вы уверены?", + "a_short_title": "Короткое название для вашего сообщества", + "anti_spam_challenges": "Антиспам вызовы", + "anti_spam_challenges_subtitle": "Выберите одну или несколько задач для предотвращения спама", + "add_a_challenge": "Добавить задачу" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 12afad50..c37453bc 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -217,7 +217,7 @@ "preview": "paraprake", "shown_in_sidebar": "të shfaqet në anën e majtë të komunitetit tuaj", "community_logo_info": "vendosni një logon e komunitetit duke përdorur lidhjen e drejtpërdrejtë të imazhit të tij (përfundon në .jpg, .png)", - "moderators_setting_info": "lejojini të tjerët të moderohen dhe të postohen pa sfida", + "moderators_setting_info": "lejojini të tjerët të moderohen dhe të postohen pa challenge", "vote": "voto", "passing": "kalimi", "rejecting": "refuzim", @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Fshih avatarët nga përgjigjet", "yes": "po", "no": "jo", - "are_you_sure": "Jeni të sigurt?" + "are_you_sure": "Jeni të sigurt?", + "a_short_title": "Një titull i shkurtër për komunitetin tuaj", + "anti_spam_challenges": "challenget anti-spam", + "anti_spam_challenges_subtitle": "Zgjidhni një ose më shumë challenge për të parandaluar spam", + "add_a_challenge": "Shtoni një sfidë" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index b349530f..99c27095 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Dölj avatarer från svar", "yes": "ja", "no": "nej", - "are_you_sure": "Är du säker?" + "are_you_sure": "Är du säker?", + "a_short_title": "En kort titel för ditt samhälle", + "anti_spam_challenges": "Anti-spam-utmaningar", + "anti_spam_challenges_subtitle": "Välj en eller flera utmaningar för att förhindra spam", + "add_a_challenge": "Lägg till en utmaning" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 81c59329..ea23bc4b 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "ప్రతిస్పందనల నుండి అవతార్లను దాచు", "yes": "అవును", "no": "కాదు", - "are_you_sure": "మీకు నమ్మకమా?" + "are_you_sure": "మీకు నమ్మకమా?", + "a_short_title": "మీ సముదాయం కోసం ఒక చిన్న శీర్షిక", + "anti_spam_challenges": "ఏంటి-స్పామ్ సవాళ్ళు", + "anti_spam_challenges_subtitle": "స్పామ్ ను నివారించడానికి ఒకటి లేదా ఎక్కువ సవాళ్లను ఎంచుకోండి", + "add_a_challenge": "ఒక సవాలు జోడించండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 8e391fd3..57c52a85 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "ซ่อนอวาตาร์จากคำตอบ", "yes": "ใช่", "no": "ไม่ใช่", - "are_you_sure": "คุณมั่นใจไหม?" + "are_you_sure": "คุณมั่นใจไหม?", + "a_short_title": "ชื่อเรื่องสั้นๆ สำหรับชุมชนของคุณ", + "anti_spam_challenges": "ความท้าทายต่อต้านสแปม", + "anti_spam_challenges_subtitle": "เลือกความท้าทายหนึ่งหรือหลายรายการเพื่อป้องกันสแปม", + "add_a_challenge": "เพิ่มความท้าทาย" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index e3ec66db..8502875b 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Yanıtlardan avatarları gizle", "yes": "evet", "no": "hayır", - "are_you_sure": "Emin misin?" + "are_you_sure": "Emin misin?", + "a_short_title": "Topluluğunuz için kısa bir başlık", + "anti_spam_challenges": "Anti-spam zorlukları", + "anti_spam_challenges_subtitle": "Spam önlemek için bir veya daha fazla zorluk seçin", + "add_a_challenge": "Bir zorluk ekle" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 7c6dad93..f88fc8bc 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Сховати аватари в відповідях", "yes": "так", "no": "ні", - "are_you_sure": "Ви впевнені?" + "are_you_sure": "Ви впевнені?", + "a_short_title": "Короткий заголовок для вашої спільноти", + "anti_spam_challenges": "Антиспам виклики", + "anti_spam_challenges_subtitle": "Виберіть одне або кілька завдань для запобігання спаму", + "add_a_challenge": "Додати завдання" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index ceb599bb..37696bae 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "جوابوں سے اوتار چھپائیں", "yes": "ہاں", "no": "نہیں", - "are_you_sure": "کیا آپ کو یقین ہے؟" + "are_you_sure": "کیا آپ کو یقین ہے؟", + "a_short_title": "آپ کی کمیونٹی کے لیے ایک مختصر عنوان", + "anti_spam_challenges": "اینٹی اسپام چیلنجز", + "anti_spam_challenges_subtitle": "اسپام کو روکنے کے لیے ایک یا زیادہ چیلنجز منتخب کریں", + "add_a_challenge": "ایک چیلنج شامل کریں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 8db7c75b..9e36cafe 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "Ẩn avatar trong các câu trả lời", "yes": "vâng", "no": "không", - "are_you_sure": "Bạn chắc chắn chứ?" + "are_you_sure": "Bạn chắc chắn chứ?", + "a_short_title": "Một tiêu đề ngắn cho cộng đồng của bạn", + "anti_spam_challenges": "Thử thách chống spam", + "anti_spam_challenges_subtitle": "Chọn một hoặc nhiều thử thách để ngừng spam", + "add_a_challenge": "Thêm một thử thách" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index f53392d8..30402b70 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -326,5 +326,9 @@ "hide_avatars_from_replies": "隐藏回复中的头像", "yes": "是的", "no": "不是", - "are_you_sure": "你确定吗?" + "are_you_sure": "你确定吗?", + "a_short_title": "为您的社区提供一个简短的标题", + "anti_spam_challenges": "反垃圾邮件挑战", + "anti_spam_challenges_subtitle": "选择一个或多个挑战来防止垃圾邮件", + "add_a_challenge": "添加一个挑战" } \ No newline at end of file diff --git a/src/views/subplebbit-settings/subplebbit-settings.module.css b/src/views/subplebbit-settings/subplebbit-settings.module.css index 9a182b7c..6295917c 100644 --- a/src/views/subplebbit-settings/subplebbit-settings.module.css +++ b/src/views/subplebbit-settings/subplebbit-settings.module.css @@ -1,3 +1,7 @@ +.loading { + padding: 7px 5px; +} + .content { color: var(--text); margin-bottom: 40px; @@ -30,6 +34,7 @@ color: var(--text-info); padding-left: 10px; padding-top: 1px; + text-transform: lowercase; } .boxSubtitle span { diff --git a/src/views/subplebbit-settings/subplebbit-settings.tsx b/src/views/subplebbit-settings/subplebbit-settings.tsx index 1b6cef8e..34ca3419 100644 --- a/src/views/subplebbit-settings/subplebbit-settings.tsx +++ b/src/views/subplebbit-settings/subplebbit-settings.tsx @@ -1,6 +1,6 @@ -import { useEffect, useMemo, useRef, useState } from 'react'; +import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useLocation, useNavigate, useParams } from 'react-router-dom'; -import { deleteSubplebbit, Role, useAccount, useCreateSubplebbit, useSubplebbit, usePublishSubplebbitEdit } from '@plebbit/plebbit-react-hooks'; +import { deleteSubplebbit, Role, useAccount, useCreateSubplebbit, usePlebbitRpcSettings, usePublishSubplebbitEdit, useSubplebbit } from '@plebbit/plebbit-react-hooks'; import { Roles } from '../../lib/utils/user-utils'; import { useTranslation } from 'react-i18next'; import styles from './subplebbit-settings.module.css'; @@ -13,6 +13,7 @@ import LoadingEllipsis from '../../components/loading-ellipsis'; import Markdown from '../../components/markdown'; import Sidebar from '../../components/sidebar'; import _ from 'lodash'; + const Title = ({ isReadOnly = false }: { isReadOnly?: boolean }) => { const { t } = useTranslation(); const { title, setSubplebbitSettingsStore } = useSubplebbitSettingsStore(); @@ -20,7 +21,7 @@ const Title = ({ isReadOnly = false }: { isReadOnly?: boolean }) => { return (
{t('title')}
-
e.g., books: made from trees or pixels. recommendations, news, or thoughts
+
{t('a_short_title')}
{isReadOnly ? {title} : setSubplebbitSettingsStore({ title: e.target.value })} />}
@@ -283,8 +284,6 @@ const Moderators = ({ isReadOnly = false }: { isReadOnly?: boolean }) => { ); }; -const challengesNames = ['text-math', 'captcha-canvas-v3', 'fail', 'blacklist', 'question', 'evm-contract-call']; - interface ChallengeSettingsProps { challenge: any; index: number; @@ -292,6 +291,7 @@ interface ChallengeSettingsProps { setSubplebbitSettingsStore: (data: Partial) => void; settings: any; showSettings: boolean; + challengesSettings: any; } type OptionInput = { @@ -321,9 +321,12 @@ const rolesToExclude = ['moderator', 'admin', 'owner']; const actionsToExclude: Array<'post' | 'reply' | 'vote'> = ['post', 'reply', 'vote']; const nonActionsToExclude: Array<'not post' | 'not reply' | 'not vote'> = ['not post', 'not reply', 'not vote']; -const ChallengeSettings = ({ challenge, index, isReadOnly, setSubplebbitSettingsStore, settings, showSettings }: ChallengeSettingsProps) => { +const ChallengeSettings = ({ challenge, challengesSettings, index, isReadOnly, setSubplebbitSettingsStore, settings, showSettings }: ChallengeSettingsProps) => { const { name, options } = challenge || {}; - const challengeSettings: any = useChallengeSettings(name); + const challengeSettings = challengesSettings[name]; + const readOnlyFallback = isReadOnly && Object.keys(challengeSettings || {}).length === 0 && challenge; + + const excludeArray = Array.isArray(challenge?.exclude) ? challenge.exclude : []; const handleOptionChange = (optionName: string, newValue: string) => { const updatedOptions = { ...options, [optionName]: newValue }; @@ -420,8 +423,8 @@ const ChallengeSettings = ({ challenge, index, isReadOnly, setSubplebbitSettings
{isReadOnly ? ( <> -
type: {challenge?.type}
-
{challengeSettings?.description}
+
type: {(challengeSettings?.type || readOnlyFallback?.type) ?? 'unknown'}
+
{challengeSettings?.description || readOnlyFallback?.description || ''}
) : (
{challengeSettings?.description}
@@ -451,7 +454,7 @@ const ChallengeSettings = ({ challenge, index, isReadOnly, setSubplebbitSettings Add Group )} - {challenge?.exclude?.map((exclude: any, excludeIndex: number) => ( + {excludeArray.map((exclude: any, excludeIndex: number) => (
Exclude group #{excludeIndex + 1} {!isReadOnly && deleteExcludeGroup(excludeIndex)} title='delete group' />} @@ -641,7 +644,17 @@ const ChallengeSettings = ({ challenge, index, isReadOnly, setSubplebbitSettings ); }; -const Challenges = ({ isReadOnly, readOnlyChallenges }: { isReadOnly: boolean; readOnlyChallenges: any }) => { +const Challenges = ({ + isReadOnly, + readOnlyChallenges, + challengeNames, + challengesSettings, +}: { + isReadOnly: boolean; + readOnlyChallenges: any; + challengeNames: string[]; + challengesSettings: any; +}) => { const { t } = useTranslation(); const { settings, setSubplebbitSettingsStore } = useSubplebbitSettingsStore(); const challenges = settings?.challenges || readOnlyChallenges || []; @@ -669,7 +682,7 @@ const Challenges = ({ isReadOnly, readOnlyChallenges }: { isReadOnly: boolean; r }; const handleDeleteChallenge = (index: number) => { - const updatedChallenges = settings?.challenges.filter((_: any, idx: number) => idx !== index); + const updatedChallenges = settings?.challenges?.filter((_: any, idx: number) => idx !== index); setSubplebbitSettingsStore({ settings: { ...settings, challenges: updatedChallenges } }); setShowSettings((oldShowSettings) => oldShowSettings.filter((_, idx) => idx !== index)); }; @@ -683,12 +696,12 @@ const Challenges = ({ isReadOnly, readOnlyChallenges }: { isReadOnly: boolean; r return (
-
{t('challenges')}
-
choose one or more challenges to prevent spam
+
{t('anti_spam_challenges')}
+
{t('anti_spam_challenges_subtitle')}
{!isReadOnly && ( )} {challenges.length === 0 && !isInCreateSubplebbitView && {t('warning_spam')}} @@ -701,7 +714,7 @@ const Challenges = ({ isReadOnly, readOnlyChallenges }: { isReadOnly: boolean; r {challenge?.name} ) : (