From 95532cb58b7f1d3f3fad14d653e3815021f73609 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Sun, 23 Feb 2025 16:17:33 +0100 Subject: [PATCH] more accurate and user-friendly loading strings --- 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 | 7 ++++--- 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/hooks/use-feed-state-string.ts | 2 +- src/hooks/use-state-string.ts | 1 - src/views/home/boards-list/boards-list.tsx | 20 ++++++++++++++------ 38 files changed, 87 insertions(+), 45 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index d4610480..6a4768d2 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "جار تحميل قائمة اللوحات الافتراضية", "loading_subscriptions": "جارٍ تحميل الاشتراكات", "create_board": "إنشاء لوحة", - "enter_board_address": "أدخل عنوان أي لوحة" + "enter_board_address": "أدخل عنوان أي لوحة", + "board_not_reachable": "اللوحة غير قابلة للوصول" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 4153af7e..3fd22c0e 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "ডিফল্ট বোর্ড তালিকা লোড হচ্ছে", "loading_subscriptions": "সাবস্ক্রিপশন লোড হচ্ছে", "create_board": "বোর্ড তৈরি করুন", - "enter_board_address": "যেকোনো বোর্ডের ঠিকানা লিখুন" + "enter_board_address": "যেকোনো বোর্ডের ঠিকানা লিখুন", + "board_not_reachable": "বোর্ডটি অ্যাক্সেসযোগ্য নয়" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 02cd256b..0f01ca4e 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Načítání seznamu výchozích tabulí", "loading_subscriptions": "Načítání odběrů", "create_board": "Vytvořit desku", - "enter_board_address": "Zadejte adresu libovolné desky" + "enter_board_address": "Zadejte adresu libovolné desky", + "board_not_reachable": "Deska není dostupná" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 5ac96456..efe58137 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Indlæser standard tavleliste", "loading_subscriptions": "Indlæser abonnementer", "create_board": "Opret tavle", - "enter_board_address": "Indtast enhver tavleadresse" + "enter_board_address": "Indtast enhver tavleadresse", + "board_not_reachable": "Boardet er ikke tilgængeligt" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 32663492..59d55db5 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Laden der Standard-Boards-Liste", "loading_subscriptions": "Lade Abonnements", "create_board": "Board erstellen", - "enter_board_address": "Geben Sie eine beliebige Board-Adresse ein" + "enter_board_address": "Geben Sie eine beliebige Board-Adresse ein", + "board_not_reachable": "Board ist nicht erreichbar" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 61dd87da..f0ac585b 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Φόρτωση της λίστας προεπιλεγμένων πάνελ", "loading_subscriptions": "Φορτώνει συνδρομές", "create_board": "Δημιουργία πίνακα", - "enter_board_address": "Εισάγετε οποιαδήποτε διεύθυνση πίνακα" + "enter_board_address": "Εισάγετε οποιαδήποτε διεύθυνση πίνακα", + "board_not_reachable": "Ο πίνακας δεν είναι προσβάσιμος" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index cbb0fe4f..3b1fa126 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -237,8 +237,8 @@ "no_board_selected_warning": "Please select a board before posting.", "invalid_url_alert": "The provided link is not a valid URL.", "empty_comment_alert": "Cannot post empty comment.", - "more_threads_last_week": "{{count}} threads since {{currentTimeFilterName}} — [<1>Show more threads from last week]", - "more_threads_last_month": "{{count}} threads since {{currentTimeFilterName}} — [<1>Show more threads from last month]", + "more_threads_last_week": "{{count}} threads since {{currentTimeFilterName}} — [<1>Show More Threads from Last Week]", + "more_threads_last_month": "{{count}} threads since {{currentTimeFilterName}} — [<1>Show More Threads from Last Month]", "newer_threads_available": "Newer threads available — [<1>Refresh]", "stored_locally": "Stored locally ({{location}}), not synced across devices", "choose_one": "Choose one:", @@ -283,5 +283,6 @@ "loading_default_boards": "Loading default boards list", "loading_subscriptions": "Loading subscriptions", "create_board": "Create Board", - "enter_board_address": "Enter any board address" + "enter_board_address": "Enter any board address", + "board_not_reachable": "Board is not reachable" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 68a8b90c..37e7ccf8 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Cargando lista de tableros predeterminados", "loading_subscriptions": "Cargando suscripciones", "create_board": "Crear tablero", - "enter_board_address": "Ingrese cualquier dirección de tablero" + "enter_board_address": "Ingrese cualquier dirección de tablero", + "board_not_reachable": "El tablero no es accesible" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 9498f551..935ef8f9 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "در حال بارگذاری فهرست تخته‌های پیش‌فرض", "loading_subscriptions": "در حال بارگذاری اشترا‌ک‌ها", "create_board": "ایجاد تابلو", - "enter_board_address": "آدرس هر تابلو را وارد کنید" + "enter_board_address": "آدرس هر تابلو را وارد کنید", + "board_not_reachable": "تابلو قابل دسترسی نیست" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index ce885976..ec3240c0 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Ladataan oletuslautalistaa", "loading_subscriptions": "Ladataan tilauksia", "create_board": "Luo taulu", - "enter_board_address": "Syötä mikä tahansa taulun osoite" + "enter_board_address": "Syötä mikä tahansa taulun osoite", + "board_not_reachable": "Taulua ei ole käytettävissä" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index b6b4030f..52e454db 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Naglo-load ng default na listahan ng mga board", "loading_subscriptions": "Naglo-load ng mga subscription", "create_board": "Gumawa ng board", - "enter_board_address": "Ipasok ang anumang address ng board" + "enter_board_address": "Ipasok ang anumang address ng board", + "board_not_reachable": "Hindi maa-access ang board" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index d309780b..c48c8071 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Chargement de la liste des panneaux par défaut", "loading_subscriptions": "Chargement des abonnements", "create_board": "Créer un tableau", - "enter_board_address": "Entrez n'importe quelle adresse du forum" + "enter_board_address": "Entrez n'importe quelle adresse du forum", + "board_not_reachable": "Le tableau n'est pas accessible" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index ea2ac0ef..bfa89d22 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "טוען את רשימת הלוחות ברירת המחדל", "loading_subscriptions": "טוען מנויים", "create_board": "צור לוח", - "enter_board_address": "הזן כתובת לוח כלשהי" + "enter_board_address": "הזן כתובת לוח כלשהי", + "board_not_reachable": "הלוח לא נגיש" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 4c7b0cb1..96e6393e 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "डिफ़ॉल्ट बोर्ड सूची लोड हो रही है", "loading_subscriptions": "सब्सक्रिप्शन लोड हो रहे हैं", "create_board": "बोर्ड बनाएं", - "enter_board_address": "किसी भी बोर्ड का पता दर्ज करें" + "enter_board_address": "किसी भी बोर्ड का पता दर्ज करें", + "board_not_reachable": "बोर्ड पहुँच योग्य नहीं है" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 193a82ee..4d6ddb0f 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Alapértelmezett táblák listájának betöltése", "loading_subscriptions": "Előfizetések betöltése", "create_board": "Hozzon létre táblát", - "enter_board_address": "Adjon meg bármilyen táblázat címet" + "enter_board_address": "Adjon meg bármilyen táblázat címet", + "board_not_reachable": "A tábla nem elérhető" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 7dbb3dab..0d9e6ef8 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Memuat daftar papan default", "loading_subscriptions": "Memuat langganan", "create_board": "Buat papan", - "enter_board_address": "Masukkan alamat papan apa saja" + "enter_board_address": "Masukkan alamat papan apa saja", + "board_not_reachable": "Papan tidak dapat dijangkau" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 7dd251d5..a8440972 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Caricamento della lista delle board predefinite", "loading_subscriptions": "Caricamento abbonamenti", "create_board": "Crea Board", - "enter_board_address": "Inserisci indirizzo di qualsiasi board" + "enter_board_address": "Inserisci indirizzo di qualsiasi board", + "board_not_reachable": "Board non raggiungibile" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 7a5b1211..00dc9922 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "デフォルトのボードリストを読み込み中", "loading_subscriptions": "購読を読み込み中", "create_board": "ボードを作成", - "enter_board_address": "任意のボードアドレスを入力してください" + "enter_board_address": "任意のボードアドレスを入力してください", + "board_not_reachable": "ボードにアクセスできません" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index fae33bad..5c6436bf 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "기본 보드 목록을 로드 중", "loading_subscriptions": "구독 로딩 중", "create_board": "보드 만들기", - "enter_board_address": "어떤 보드 주소든 입력하세요" + "enter_board_address": "어떤 보드 주소든 입력하세요", + "board_not_reachable": "보드를 찾을 수 없습니다" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 80fa71ad..90634868 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "डीफॉल्ट बोर्ड यादी लोड करत आहे", "loading_subscriptions": "सदस्यता लोड होत आहे", "create_board": "बोर्ड तयार करा", - "enter_board_address": "कोणत्याही बोर्ड पत्त्याची नोंद करा" + "enter_board_address": "कोणत्याही बोर्ड पत्त्याची नोंद करा", + "board_not_reachable": "बोर्ड उपलब्ध नाही" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 8de6df89..4b76e847 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Laden van de standaard boardlijst", "loading_subscriptions": "Abonnementen laden", "create_board": "Maak bord", - "enter_board_address": "Voer een willekeurig bordadres in" + "enter_board_address": "Voer een willekeurig bordadres in", + "board_not_reachable": "Bord is niet bereikbaar" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 9e74b7ce..97f95357 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Laster standard tavleliste", "loading_subscriptions": "Laster abonnementer", "create_board": "Lag tavle", - "enter_board_address": "Skriv inn hvilken som helst brettadresse" + "enter_board_address": "Skriv inn hvilken som helst brettadresse", + "board_not_reachable": "Brettet er ikke tilgjengelig" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index c63886ce..bfb3b886 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Ładowanie domyślnej listy tablic", "loading_subscriptions": "Ładowanie subskrypcji", "create_board": "Utwórz tablicę", - "enter_board_address": "Wprowadź dowolny adres tablicy" + "enter_board_address": "Wprowadź dowolny adres tablicy", + "board_not_reachable": "Tablica jest niedostępna" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 322b4c55..bca861d1 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Carregando lista de quadros padrão", "loading_subscriptions": "Carregando assinaturas", "create_board": "Criar quadro", - "enter_board_address": "Digite qualquer endereço de quadro" + "enter_board_address": "Digite qualquer endereço de quadro", + "board_not_reachable": "O quadro não é acessível" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index e218f074..5e665e50 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Se încarcă lista de panouri implicite", "loading_subscriptions": "Încărcarea abonamentelor", "create_board": "Creați tablou", - "enter_board_address": "Introduceți orice adresă de tablă" + "enter_board_address": "Introduceți orice adresă de tablă", + "board_not_reachable": "Tabloul nu este accesibil" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index a421874d..d25ac7d2 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Загрузка списка стандартных досок", "loading_subscriptions": "Загрузка подписок", "create_board": "Создать доску", - "enter_board_address": "Введите любой адрес доски" + "enter_board_address": "Введите любой адрес доски", + "board_not_reachable": "Доска недоступна" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 40a8b3a6..7bae4cd4 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Po ngarkohen listat e bordit të parazgjedhur", "loading_subscriptions": "Po ngarkohen abonimet", "create_board": "Krijo bord", - "enter_board_address": "Shkruani çdo adresë bordi" + "enter_board_address": "Shkruani çdo adresë bordi", + "board_not_reachable": "Tabela nuk është e arritshme" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index c3a179bd..253da585 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Laddar standardlistan för tavlor", "loading_subscriptions": "Laddar prenumerationer", "create_board": "Skapa tavla", - "enter_board_address": "Ange vilken som helst brädets adress" + "enter_board_address": "Ange vilken som helst brädets adress", + "board_not_reachable": "Tavlan är inte tillgänglig" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 67ef1348..fff9da99 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "డిఫాల్ట్ బోర్డుల జాబితా లోడవుతోంది", "loading_subscriptions": "సబ్‌స్క్రిప్షన్‌లు లోడ్ అవుతున్నాయి", "create_board": "బోర్డ్ రూపొందించండి", - "enter_board_address": "ఏదైనా బోర్డ్ అడ్రస్ నమోదు చేయండి" + "enter_board_address": "ఏదైనా బోర్డ్ అడ్రస్ నమోదు చేయండి", + "board_not_reachable": "బోర్డు అందుబాటులో లేదు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 3ada527e..1966f148 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "กำลังโหลดรายการกระดานเริ่มต้น", "loading_subscriptions": "กำลังโหลดการสมัครสมาชิก", "create_board": "สร้างกระดาน", - "enter_board_address": "ป้อนที่อยู่บอร์ดใดก็ได้" + "enter_board_address": "ป้อนที่อยู่บอร์ดใดก็ได้", + "board_not_reachable": "ไม่สามารถเข้าถึงบอร์ดได้" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 0815df28..71d573e0 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Varsayılan panolar listesi yükleniyor", "loading_subscriptions": "Abonelikler yükleniyor", "create_board": "Tahta oluştur", - "enter_board_address": "Herhangi bir tahta adresini girin" + "enter_board_address": "Herhangi bir tahta adresini girin", + "board_not_reachable": "Board erişilemez" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index ec904911..7606b41d 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Завантаження списку стандартних дошок", "loading_subscriptions": "Завантаження підписок", "create_board": "Створити дошку", - "enter_board_address": "Введіть будь-яку адресу дошки" + "enter_board_address": "Введіть будь-яку адресу дошки", + "board_not_reachable": "Дошка недоступна" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 8b92d424..c0dac4bc 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "ڈिफالٹ بورڈ کی فہرست لوڈ ہو رہی ہے", "loading_subscriptions": "سبسکرپشن لوڈ ہو رہی ہے", "create_board": "بورڈ بنائیں", - "enter_board_address": "کسی بھی بورڈ کا پتہ درج کریں" + "enter_board_address": "کسی بھی بورڈ کا پتہ درج کریں", + "board_not_reachable": "بورڈ قابل رسائی نہیں ہے" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index e170766e..60af0bc1 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "Đang tải danh sách bảng mặc định", "loading_subscriptions": "Đang tải đăng ký", "create_board": "Tạo bảng", - "enter_board_address": "Nhập bất kỳ địa chỉ bảng nào" + "enter_board_address": "Nhập bất kỳ địa chỉ bảng nào", + "board_not_reachable": "Bảng không thể truy cập" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 86719143..2a855ff8 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -283,5 +283,6 @@ "loading_default_boards": "正在加载默认板块列表", "loading_subscriptions": "加载订阅", "create_board": "创建板块", - "enter_board_address": "输入任何板块地址" + "enter_board_address": "输入任何板块地址", + "board_not_reachable": "无法访问板块" } \ No newline at end of file diff --git a/src/hooks/use-feed-state-string.ts b/src/hooks/use-feed-state-string.ts index 11a532d0..c0064d75 100644 --- a/src/hooks/use-feed-state-string.ts +++ b/src/hooks/use-feed-state-string.ts @@ -35,7 +35,7 @@ const useFeedStateString = (subplebbitAddresses?: string[]): string | undefined if (states['resolving-address']) { const { subplebbitAddresses, clientUrls } = states['resolving-address']; if (subplebbitAddresses.length && clientUrls.length) { - stateString += `loading ${subplebbitAddresses.length} ${subplebbitAddresses.length === 1 ? 'address' : 'addresses'} from ${clientUrls + stateString += `resolving ${subplebbitAddresses.length} ${subplebbitAddresses.length === 1 ? 'address' : 'addresses'} from ${clientUrls .map(getClientHost) .join(', ')}`; } diff --git a/src/hooks/use-state-string.ts b/src/hooks/use-state-string.ts index cf114d4c..0cce7b4b 100644 --- a/src/hooks/use-state-string.ts +++ b/src/hooks/use-state-string.ts @@ -64,7 +64,6 @@ const useStateString = (commentOrSubplebbit: CommentOrSubplebbit): string | unde .replace('ipfs', 'post') .replace('ipns', 'subplebbit') .replace('fetching', 'loading') - .replace('resolving', 'loading') .replace('subplebbit subplebbit', 'board') .replace('loading subplebbit', 'loading board'); } diff --git a/src/views/home/boards-list/boards-list.tsx b/src/views/home/boards-list/boards-list.tsx index ff74a180..5c162e34 100644 --- a/src/views/home/boards-list/boards-list.tsx +++ b/src/views/home/boards-list/boards-list.tsx @@ -9,7 +9,7 @@ import useIsMobile from '../../../hooks/use-is-mobile'; import useIsSubplebbitOffline from '../../../hooks/use-is-subplebbit-offline'; import LoadingEllipsis from '../../../components/loading-ellipsis'; import Tooltip from '../../../components/tooltip'; -import styles from '../home.module.css'; +import styles from './boards-list.module.css'; import { nsfwTags } from '../home'; const Board = ({ subplebbit, isMobile }: { subplebbit: Subplebbit; isMobile: boolean }) => { @@ -27,11 +27,19 @@ const Board = ({ subplebbit, isMobile }: { subplebbit: Subplebbit; isMobile: boo const title = subplebbitData?.title || - (subplebbitData?.updatedAt ? (displayAddress.endsWith('.eth') || displayAddress.endsWith('.sol') ? displayAddress.slice(0, -4) : displayAddress) : '?'); + (subplebbitData?.updatedAt ? ( + displayAddress.endsWith('.eth') || displayAddress.endsWith('.sol') ? ( + displayAddress.slice(0, -4) + ) : ( + displayAddress + ) + ) : ( + {isOffline ? t('board_not_reachable') : t('loading_board')} + )); return ( - - + +

{displayAddress} {nsfwTag && ({t(nsfwTag)})} @@ -44,13 +52,13 @@ const Board = ({ subplebbit, isMobile }: { subplebbit: Subplebbit; isMobile: boo )}

- +

{title}

{!isMobile && ( <> -

{stats.hourPostCount ?? '?'}

+

{stats.hourPostCount ?? ?}