diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 2d050984..cc512d35 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -282,5 +282,6 @@ "node_stats": "إحصائيات العقدة", "loading_default_boards": "جار تحميل قائمة اللوحات الافتراضية", "loading_subscriptions": "جارٍ تحميل الاشتراكات", - "create_board": "إنشاء لوحة" + "create_board": "إنشاء لوحة", + "enter_board_address": "أدخل عنوان أي لوحة" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index c60ad992..90b5a7c3 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -282,5 +282,6 @@ "node_stats": "নোড পরিসংখ্যান", "loading_default_boards": "ডিফল্ট বোর্ড তালিকা লোড হচ্ছে", "loading_subscriptions": "সাবস্ক্রিপশন লোড হচ্ছে", - "create_board": "বোর্ড তৈরি করুন" + "create_board": "বোর্ড তৈরি করুন", + "enter_board_address": "যেকোনো বোর্ডের ঠিকানা লিখুন" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index f999a7cc..4b3415aa 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -282,5 +282,6 @@ "node_stats": "Statistiky uzlu", "loading_default_boards": "Načítání seznamu výchozích tabulí", "loading_subscriptions": "Načítání odběrů", - "create_board": "Vytvořit desku" + "create_board": "Vytvořit desku", + "enter_board_address": "Zadejte adresu libovolné desky" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index a0700999..4a2091ee 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -282,5 +282,6 @@ "node_stats": "Node-statistik", "loading_default_boards": "Indlæser standard tavleliste", "loading_subscriptions": "Indlæser abonnementer", - "create_board": "Opret tavle" + "create_board": "Opret tavle", + "enter_board_address": "Indtast enhver tavleadresse" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index d67ea26c..a1534b25 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -282,5 +282,6 @@ "node_stats": "Knotenstatistiken", "loading_default_boards": "Laden der Standard-Boards-Liste", "loading_subscriptions": "Lade Abonnements", - "create_board": "Board erstellen" + "create_board": "Board erstellen", + "enter_board_address": "Geben Sie eine beliebige Board-Adresse ein" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index a0f5bef3..28d9df21 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -282,5 +282,6 @@ "node_stats": "Στατιστικά κόμβου", "loading_default_boards": "Φόρτωση της λίστας προεπιλεγμένων πάνελ", "loading_subscriptions": "Φορτώνει συνδρομές", - "create_board": "Δημιουργία πίνακα" + "create_board": "Δημιουργία πίνακα", + "enter_board_address": "Εισάγετε οποιαδήποτε διεύθυνση πίνακα" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index d94662d1..f299db48 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -282,5 +282,6 @@ "node_stats": "Node stats", "loading_default_boards": "Loading default boards list", "loading_subscriptions": "Loading subscriptions", - "create_board": "Create Board" + "create_board": "Create Board", + "enter_board_address": "Enter any board address" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index a38a6603..33a8f535 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -282,5 +282,6 @@ "node_stats": "Estadísticas del nodo", "loading_default_boards": "Cargando lista de tableros predeterminados", "loading_subscriptions": "Cargando suscripciones", - "create_board": "Crear tablero" + "create_board": "Crear tablero", + "enter_board_address": "Ingrese cualquier dirección de tablero" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 97ebc48a..214306c3 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -282,5 +282,6 @@ "node_stats": "آمار گره", "loading_default_boards": "در حال بارگذاری فهرست تخته‌های پیش‌فرض", "loading_subscriptions": "در حال بارگذاری اشترا‌ک‌ها", - "create_board": "ایجاد تابلو" + "create_board": "ایجاد تابلو", + "enter_board_address": "آدرس هر تابلو را وارد کنید" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 316ff855..b6f215d7 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -282,5 +282,6 @@ "node_stats": "Solmun tilastot", "loading_default_boards": "Ladataan oletuslautalistaa", "loading_subscriptions": "Ladataan tilauksia", - "create_board": "Luo taulu" + "create_board": "Luo taulu", + "enter_board_address": "Syötä mikä tahansa taulun osoite" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 1dc1aff7..812ede97 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -282,5 +282,6 @@ "node_stats": "Istatistika ng node", "loading_default_boards": "Naglo-load ng default na listahan ng mga board", "loading_subscriptions": "Naglo-load ng mga subscription", - "create_board": "Gumawa ng board" + "create_board": "Gumawa ng board", + "enter_board_address": "Ipasok ang anumang address ng board" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 19b38245..5f733fdd 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -282,5 +282,6 @@ "node_stats": "Statistiques du nœud", "loading_default_boards": "Chargement de la liste des panneaux par défaut", "loading_subscriptions": "Chargement des abonnements", - "create_board": "Créer un tableau" + "create_board": "Créer un tableau", + "enter_board_address": "Entrez n'importe quelle adresse du forum" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 62d79ec1..65e4b787 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -282,5 +282,6 @@ "node_stats": "סטטיסטיקות צומת", "loading_default_boards": "טוען את רשימת הלוחות ברירת המחדל", "loading_subscriptions": "טוען מנויים", - "create_board": "צור לוח" + "create_board": "צור לוח", + "enter_board_address": "הזן כתובת לוח כלשהי" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index ab0a8e9f..fbb917c0 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -282,5 +282,6 @@ "node_stats": "नोड आँकड़े", "loading_default_boards": "डिफ़ॉल्ट बोर्ड सूची लोड हो रही है", "loading_subscriptions": "सब्सक्रिप्शन लोड हो रहे हैं", - "create_board": "बोर्ड बनाएं" + "create_board": "बोर्ड बनाएं", + "enter_board_address": "किसी भी बोर्ड का पता दर्ज करें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 00ad2c5e..86f386e3 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -282,5 +282,6 @@ "node_stats": "Csomópont statisztikák", "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" + "create_board": "Hozzon létre táblát", + "enter_board_address": "Adjon meg bármilyen táblázat címet" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 2c35d5e3..712e773a 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -282,5 +282,6 @@ "node_stats": "Statistik node", "loading_default_boards": "Memuat daftar papan default", "loading_subscriptions": "Memuat langganan", - "create_board": "Buat papan" + "create_board": "Buat papan", + "enter_board_address": "Masukkan alamat papan apa saja" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index e83fc34f..e20b530e 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -282,5 +282,6 @@ "node_stats": "Statistiche del nodo", "loading_default_boards": "Caricamento della lista delle board predefinite", "loading_subscriptions": "Caricamento abbonamenti", - "create_board": "Crea Board" + "create_board": "Crea Board", + "enter_board_address": "Inserisci indirizzo di qualsiasi board" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 99ac96b2..110d495e 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -282,5 +282,6 @@ "node_stats": "ノード統計", "loading_default_boards": "デフォルトのボードリストを読み込み中", "loading_subscriptions": "購読を読み込み中", - "create_board": "ボードを作成" + "create_board": "ボードを作成", + "enter_board_address": "任意のボードアドレスを入力してください" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index e5077c5b..9423c540 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -282,5 +282,6 @@ "node_stats": "노드 통계", "loading_default_boards": "기본 보드 목록을 로드 중", "loading_subscriptions": "구독 로딩 중", - "create_board": "보드 만들기" + "create_board": "보드 만들기", + "enter_board_address": "어떤 보드 주소든 입력하세요" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 67ebb5d4..9c95485c 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -282,5 +282,6 @@ "node_stats": "नोड आकडेवारी", "loading_default_boards": "डीफॉल्ट बोर्ड यादी लोड करत आहे", "loading_subscriptions": "सदस्यता लोड होत आहे", - "create_board": "बोर्ड तयार करा" + "create_board": "बोर्ड तयार करा", + "enter_board_address": "कोणत्याही बोर्ड पत्त्याची नोंद करा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 94d9f3fe..8a31f2e8 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -282,5 +282,6 @@ "node_stats": "Node-statistieken", "loading_default_boards": "Laden van de standaard boardlijst", "loading_subscriptions": "Abonnementen laden", - "create_board": "Maak bord" + "create_board": "Maak bord", + "enter_board_address": "Voer een willekeurig bordadres in" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 9a5305a5..322f9004 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -282,5 +282,6 @@ "node_stats": "Node-statistikk", "loading_default_boards": "Laster standard tavleliste", "loading_subscriptions": "Laster abonnementer", - "create_board": "Lag tavle" + "create_board": "Lag tavle", + "enter_board_address": "Skriv inn hvilken som helst brettadresse" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index d84b2b3c..355f5395 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -282,5 +282,6 @@ "node_stats": "Statystyki węzła", "loading_default_boards": "Ładowanie domyślnej listy tablic", "loading_subscriptions": "Ładowanie subskrypcji", - "create_board": "Utwórz tablicę" + "create_board": "Utwórz tablicę", + "enter_board_address": "Wprowadź dowolny adres tablicy" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index c555ff8e..7a93b9dc 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -282,5 +282,6 @@ "node_stats": "Estatísticas do nó", "loading_default_boards": "Carregando lista de quadros padrão", "loading_subscriptions": "Carregando assinaturas", - "create_board": "Criar quadro" + "create_board": "Criar quadro", + "enter_board_address": "Digite qualquer endereço de quadro" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 6b83c2e3..b6592d0e 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -282,5 +282,6 @@ "node_stats": "Statistici nod", "loading_default_boards": "Se încarcă lista de panouri implicite", "loading_subscriptions": "Încărcarea abonamentelor", - "create_board": "Creați tablou" + "create_board": "Creați tablou", + "enter_board_address": "Introduceți orice adresă de tablă" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 8a2713a3..6db761ec 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -282,5 +282,6 @@ "node_stats": "Статистика узла", "loading_default_boards": "Загрузка списка стандартных досок", "loading_subscriptions": "Загрузка подписок", - "create_board": "Создать доску" + "create_board": "Создать доску", + "enter_board_address": "Введите любой адрес доски" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 0605ec36..44e1699a 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -282,5 +282,6 @@ "node_stats": "Statistikat e nyjës", "loading_default_boards": "Po ngarkohen listat e bordit të parazgjedhur", "loading_subscriptions": "Po ngarkohen abonimet", - "create_board": "Krijo bord" + "create_board": "Krijo bord", + "enter_board_address": "Shkruani çdo adresë bordi" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index ea2a92ca..394eee3c 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -282,5 +282,6 @@ "node_stats": "Node-statistik", "loading_default_boards": "Laddar standardlistan för tavlor", "loading_subscriptions": "Laddar prenumerationer", - "create_board": "Skapa tavla" + "create_board": "Skapa tavla", + "enter_board_address": "Ange vilken som helst brädets adress" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 984b872d..21245eb4 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -282,5 +282,6 @@ "node_stats": "నోడ్ గణాంకాలు", "loading_default_boards": "డిఫాల్ట్ బోర్డుల జాబితా లోడవుతోంది", "loading_subscriptions": "సబ్‌స్క్రిప్షన్‌లు లోడ్ అవుతున్నాయి", - "create_board": "బోర్డ్ రూపొందించండి" + "create_board": "బోర్డ్ రూపొందించండి", + "enter_board_address": "ఏదైనా బోర్డ్ అడ్రస్ నమోదు చేయండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 3f1af384..452d5a13 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -282,5 +282,6 @@ "node_stats": "สถิติโหนด", "loading_default_boards": "กำลังโหลดรายการกระดานเริ่มต้น", "loading_subscriptions": "กำลังโหลดการสมัครสมาชิก", - "create_board": "สร้างกระดาน" + "create_board": "สร้างกระดาน", + "enter_board_address": "ป้อนที่อยู่บอร์ดใดก็ได้" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 62847336..8b1089c6 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -282,5 +282,6 @@ "node_stats": "Düğüm istatistikleri", "loading_default_boards": "Varsayılan panolar listesi yükleniyor", "loading_subscriptions": "Abonelikler yükleniyor", - "create_board": "Tahta oluştur" + "create_board": "Tahta oluştur", + "enter_board_address": "Herhangi bir tahta adresini girin" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 1732c4a4..07d29201 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -282,5 +282,6 @@ "node_stats": "Статистика вузла", "loading_default_boards": "Завантаження списку стандартних дошок", "loading_subscriptions": "Завантаження підписок", - "create_board": "Створити дошку" + "create_board": "Створити дошку", + "enter_board_address": "Введіть будь-яку адресу дошки" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 51db0717..63997bee 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -282,5 +282,6 @@ "node_stats": "نوڈ کے اعدادوشمار", "loading_default_boards": "ڈिफالٹ بورڈ کی فہرست لوڈ ہو رہی ہے", "loading_subscriptions": "سبسکرپشن لوڈ ہو رہی ہے", - "create_board": "بورڈ بنائیں" + "create_board": "بورڈ بنائیں", + "enter_board_address": "کسی بھی بورڈ کا پتہ درج کریں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index b63dc862..89b3c020 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -282,5 +282,6 @@ "node_stats": "Thống kê nút", "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" + "create_board": "Tạo bảng", + "enter_board_address": "Nhập bất kỳ địa chỉ bảng nào" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index b3d29090..d2df07f7 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -282,5 +282,6 @@ "node_stats": "节点统计", "loading_default_boards": "正在加载默认板块列表", "loading_subscriptions": "加载订阅", - "create_board": "创建板块" + "create_board": "创建板块", + "enter_board_address": "输入任何板块地址" } \ No newline at end of file diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 6840baf2..239c671f 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -1,20 +1,21 @@ import { useCallback, useEffect, useRef, useState } from 'react'; -import { useAccount, useAccountComment } from '@plebbit/plebbit-react-hooks'; -import Plebbit from '@plebbit/plebbit-js/dist/browser/index.js'; import { Link, useLocation, useNavigate, useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; +import Plebbit from '@plebbit/plebbit-js/dist/browser/index.js'; +import { useAccount, useAccountComment } from '@plebbit/plebbit-react-hooks'; import { isAllView, isCatalogView, isSubscriptionsView } from '../../lib/utils/view-utils'; -import styles from './topbar.module.css'; import { useDefaultSubplebbitAddresses } from '../../hooks/use-default-subplebbits'; -import _, { debounce } from 'lodash'; -import { TimeFilter } from '../board-buttons'; import { useAutoSubscribe } from '../../hooks/use-auto-subscribe'; +import { TimeFilter } from '../board-buttons'; +import styles from './topbar.module.css'; +import _, { debounce } from 'lodash'; const SearchBar = ({ setShowSearchBar }: { setShowSearchBar: (show: boolean) => void }) => { + const { t } = useTranslation(); const navigate = useNavigate(); const searchBarRef = useRef(null); const searchInputRef = useRef(null); - const placeholder = `"community.eth/.sol" / "12D3KooW..."`; + const placeholder = _.lowerCase(t('enter_board_address')); useEffect(() => { searchInputRef.current?.focus(); diff --git a/src/views/home/boards-list/boards-list.tsx b/src/views/home/boards-list/boards-list.tsx index 411ea84e..c669334e 100644 --- a/src/views/home/boards-list/boards-list.tsx +++ b/src/views/home/boards-list/boards-list.tsx @@ -28,9 +28,9 @@ const Board = ({ subplebbit, isMobile }: { subplebbit: Subplebbit; isMobile: boo

- {showOfflineIcon && } {displayAddress} {nsfwTag && ({t(nsfwTag)})} + {showOfflineIcon && }

diff --git a/src/views/home/home.tsx b/src/views/home/home.tsx index 83af6cf3..b76c8dd4 100644 --- a/src/views/home/home.tsx +++ b/src/views/home/home.tsx @@ -9,6 +9,7 @@ import useSubplebbitsStats from '../../hooks/use-subplebbits-stats'; import PopularThreadsBox from './popular-threads-box'; import BoardsList from './boards-list'; import Version from '../../components/version'; +import _ from 'lodash'; // https://github.com/plebbit/temporary-default-subplebbits/blob/master/README.md // plebchan shouldn't consider 'vulgar' or 'anti' as nsfw tags, unlike more sfw-oriented clients @@ -35,7 +36,7 @@ const SearchBar = () => { spellCheck='false' autoCapitalize='off' type='text' - placeholder={`"board.eth/.sol" ${t('or')} "12D3KooW..."`} + placeholder={_.lowerCase(t('enter_board_address'))} ref={searchInputRef} />