From d3b9a1fea3d1293582505327aa925e52bd5e4145 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 20 Mar 2024 16:58:22 +0100 Subject: [PATCH] chore(translations): board stats, board created --- public/translations/ar/default.json | 8 +++- public/translations/bn/default.json | 8 +++- public/translations/cs/default.json | 8 +++- public/translations/da/default.json | 8 +++- public/translations/de/default.json | 8 +++- public/translations/el/default.json | 8 +++- public/translations/en/default.json | 8 +++- public/translations/es/default.json | 8 +++- public/translations/fa/default.json | 8 +++- public/translations/fi/default.json | 8 +++- public/translations/fil/default.json | 8 +++- public/translations/fr/default.json | 8 +++- public/translations/he/default.json | 8 +++- public/translations/hi/default.json | 8 +++- public/translations/hu/default.json | 8 +++- public/translations/id/default.json | 8 +++- public/translations/it/default.json | 8 +++- public/translations/ja/default.json | 8 +++- public/translations/ko/default.json | 8 +++- public/translations/mr/default.json | 8 +++- public/translations/nl/default.json | 8 +++- public/translations/no/default.json | 8 +++- public/translations/pl/default.json | 8 +++- public/translations/pt/default.json | 8 +++- public/translations/ro/default.json | 8 +++- public/translations/ru/default.json | 8 +++- public/translations/sq/default.json | 8 +++- public/translations/sv/default.json | 8 +++- public/translations/te/default.json | 8 +++- public/translations/th/default.json | 8 +++- public/translations/tr/default.json | 8 +++- public/translations/uk/default.json | 8 +++- public/translations/ur/default.json | 8 +++- public/translations/vi/default.json | 8 +++- public/translations/zh/default.json | 8 +++- .../board-stats/board-stats.module.css | 8 ++++ src/components/board-stats/board-stats.tsx | 48 +++++++++++++------ 37 files changed, 286 insertions(+), 50 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 99d49a5f..1d8687a0 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -14,5 +14,11 @@ "download_app": "تحميل التطبيق", "start_new_thread": "بدء موضوع جديد", "show_stats": "عرض الإحصائيات", - "hide": "إخفاء" + "hide": "إخفاء", + "board_stats_hour": "في الساعة الماضية، <1>{{userCount}} مستخدم قاموا بإرسال <1>{{postCount}} منشور", + "board_stats_day": "خلال اليوم الماضي، <1>{{userCount}} مستخدم قاموا بإرسال <1>{{postCount}} منشور", + "board_stats_week": "خلال الأسبوع الماضي، <1>{{userCount}} مستخدم قاموا بإرسال <1>{{postCount}} منشور", + "board_stats_month": "خلال الشهر الماضي، <1>{{userCount}} مستخدم قاموا بإرسال <1>{{postCount}} منشور", + "board_stats_all": "منذ ذلك الحين، <1>{{userCount}} مستخدم قاموا بإرسال <1>{{postCount}} منشور", + "board_created": "منتدى تم إنشاؤه" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 94119cbf..3142ef68 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -14,5 +14,11 @@ "download_app": "অ্যাপ ডাউনলোড করুন", "start_new_thread": "নতুন থ্রেড শুরু করুন", "show_stats": "প্রদর্শন পরিসংখ্যান", - "hide": "লুকান" + "hide": "লুকান", + "board_stats_hour": "গত এক ঘণ্টায়, <1>{{userCount}} ব্যবহারকারী <1>{{postCount}} পোস্ট করেছেন", + "board_stats_day": "গত দিনে, <1>{{userCount}} ব্যবহারকারী <1>{{postCount}} পোস্ট করেছেন", + "board_stats_week": "গত সপ্তাহে, <1>{{userCount}} ব্যবহারকারী <1>{{postCount}} পোস্ট করেছেন", + "board_stats_month": "গত মাসে, <1>{{userCount}} ব্যবহারকারী <1>{{postCount}} পোস্ট করেছেন", + "board_stats_all": "তারপর থেকে, <1>{{userCount}} ব্যবহারকারী <1>{{postCount}} পোস্ট করেছেন", + "board_created": "বোর্ড তৈরি হয়েছে" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 4f435616..a330c9df 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -14,5 +14,11 @@ "download_app": "Stáhnout aplikaci", "start_new_thread": "Začít nové vlákno", "show_stats": "Zobrazit statistiky", - "hide": "Skrýt" + "hide": "Skrýt", + "board_stats_hour": "V poslední hodině <1>{{userCount}} uživatelů napsalo <1>{{postCount}} příspěvků", + "board_stats_day": "V posledním dni <1>{{userCount}} uživatelů napsalo <1>{{postCount}} příspěvků", + "board_stats_week": "V posledním týdnu <1>{{userCount}} uživatelů napsalo <1>{{postCount}} příspěvků", + "board_stats_month": "V posledním měsíci <1>{{userCount}} uživatelů napsalo <1>{{postCount}} příspěvků", + "board_stats_all": "Od té doby <1>{{userCount}} uživatelů napsalo <1>{{postCount}} příspěvků", + "board_created": "Fórum vytvořeno" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 0b4a60bf..7fdc4094 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -14,5 +14,11 @@ "download_app": "Download app", "start_new_thread": "Start en ny tråd", "show_stats": "Vis statistikker", - "hide": "Skjul" + "hide": "Skjul", + "board_stats_hour": "I den sidste time har <1>{{userCount}} brugere sendt <1>{{postCount}} indlæg", + "board_stats_day": "I går har <1>{{userCount}} brugere sendt <1>{{postCount}} indlæg", + "board_stats_week": "I den sidste uge har <1>{{userCount}} brugere sendt <1>{{postCount}} indlæg", + "board_stats_month": "I den sidste måned har <1>{{userCount}} brugere sendt <1>{{postCount}} indlæg", + "board_stats_all": "Siden da har <1>{{userCount}} brugere sendt <1>{{postCount}} indlæg", + "board_created": "Forum oprettet" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index f8136510..b1e90f1e 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -14,5 +14,11 @@ "download_app": "App herunterladen", "start_new_thread": "Starte einen neuen Thread", "show_stats": "Statistiken anzeigen", - "hide": "Verstecken" + "hide": "Verstecken", + "board_stats_hour": "In der letzten Stunde haben <1>{{userCount}} Benutzer <1>{{postCount}} Beiträge veröffentlicht", + "board_stats_day": "Im letzten Tag haben <1>{{userCount}} Benutzer <1>{{postCount}} Beiträge veröffentlicht", + "board_stats_week": "In der letzten Woche haben <1>{{userCount}} Benutzer <1>{{postCount}} Beiträge veröffentlicht", + "board_stats_month": "Im letzten Monat haben <1>{{userCount}} Benutzer <1>{{postCount}} Beiträge veröffentlicht", + "board_stats_all": "Seitdem haben <1>{{userCount}} Benutzer <1>{{postCount}} Beiträge veröffentlicht", + "board_created": "Forum erstellt" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 5d1a53b3..2f1dd6e3 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -14,5 +14,11 @@ "download_app": "Λήψη εφαρμογής", "start_new_thread": "Ξεκινήστε ένα νέο νήμα", "show_stats": "Εμφάνιση στατιστικών", - "hide": "Απόκρυψη" + "hide": "Απόκρυψη", + "board_stats_hour": "Την τελευταία ώρα, <1>{{userCount}} χρήστες έχουν στείλει <1>{{postCount}} μηνύματα", + "board_stats_day": "Την προηγούμενη μέρα, <1>{{userCount}} χρήστες έχουν στείλει <1>{{postCount}} μηνύματα", + "board_stats_week": "Την προηγούμενη εβδομάδα, <1>{{userCount}} χρήστες έχουν στείλει <1>{{postCount}} μηνύματα", + "board_stats_month": "Τον προηγούμενο μήνα, <1>{{userCount}} χρήστες έχουν στείλει <1>{{postCount}} μηνύματα", + "board_stats_all": "Από τότε, <1>{{userCount}} χρήστες έχουν στείλει <1>{{postCount}} μηνύματα", + "board_created": "Δημιουργήθηκε φόρουμ" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 9c81edef..90adcd05 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -14,5 +14,11 @@ "download_app": "Download app", "start_new_thread": "Start a New Thread", "show_stats": "Show Stats", - "hide": "Hide" + "hide": "Hide", + "board_stats_hour": "In the past hour, <1>{{userCount}} users made <1>{{postCount}} posts", + "board_stats_day": "In the past day, <1>{{userCount}} users made <1>{{postCount}} posts", + "board_stats_week": "In the past week, <1>{{userCount}} users made <1>{{postCount}} posts", + "board_stats_month": "In the past month, <1>{{userCount}} users made <1>{{postCount}} posts", + "board_stats_all": "Since then, <1>{{userCount}} users made <1>{{postCount}} posts", + "board_created": "Board created" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index fc397523..e1ee6e92 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -14,5 +14,11 @@ "download_app": "Descargar la aplicación", "start_new_thread": "Iniciar un Nuevo Hilo", "show_stats": "Mostrar Estadísticas", - "hide": "Ocultar" + "hide": "Ocultar", + "board_stats_hour": "En la última hora, <1>{{userCount}} usuarios han enviado <1>{{postCount}} publicaciones", + "board_stats_day": "En el último día, <1>{{userCount}} usuarios han enviado <1>{{postCount}} publicaciones", + "board_stats_week": "En la última semana, <1>{{userCount}} usuarios han enviado <1>{{postCount}} publicaciones", + "board_stats_month": "En el último mes, <1>{{userCount}} usuarios han enviado <1>{{postCount}} publicaciones", + "board_stats_all": "Desde entonces, <1>{{userCount}} usuarios han enviado <1>{{postCount}} publicaciones", + "board_created": "Foro creado" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index b058c777..960b13db 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -14,5 +14,11 @@ "download_app": "دانلود اپلیکیشن", "start_new_thread": "شروع موضوع جدید", "show_stats": "نمایش آمار", - "hide": "پنهان کردن" + "hide": "پنهان کردن", + "board_stats_hour": "در ساعت گذشته، <1>{{userCount}} کاربر <1>{{postCount}} پست ارسال کردند", + "board_stats_day": "در گذشته، <1>{{userCount}} کاربر <1>{{postCount}} پست ارسال کردند", + "board_stats_week": "در هفته گذشته، <1>{{userCount}} کاربر <1>{{postCount}} پست ارسال کردند", + "board_stats_month": "در ماه گذشته، <1>{{userCount}} کاربر <1>{{postCount}} پست ارسال کردند", + "board_stats_all": "از آن زمان، <1>{{userCount}} کاربر <1>{{postCount}} پست ارسال کرده‌اند", + "board_created": "انجمن ایجاد شده" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 8462b7f2..1727b08b 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -14,5 +14,11 @@ "download_app": "Lataa sovellus", "start_new_thread": "Aloita uusi lanka", "show_stats": "Näytä tilastot", - "hide": "Piilota" + "hide": "Piilota", + "board_stats_hour": "Edellisen tunnin aikana <1>{{userCount}} käyttäjää on lähettänyt <1>{{postCount}} viestiä", + "board_stats_day": "Edellisenä päivänä <1>{{userCount}} käyttäjää on lähettänyt <1>{{postCount}} viestiä", + "board_stats_week": "Edellisellä viikolla <1>{{userCount}} käyttäjää on lähettänyt <1>{{postCount}} viestiä", + "board_stats_month": "Edellisellä kuukaudella <1>{{userCount}} käyttäjää on lähettänyt <1>{{postCount}} viestiä", + "board_stats_all": "Siitä lähtien <1>{{userCount}} käyttäjää on lähettänyt <1>{{postCount}} viestiä", + "board_created": "Luotu foorumi" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 05acf5ea..05678387 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -14,5 +14,11 @@ "download_app": "I-download ang app", "start_new_thread": "Magsimula ng Bagong Thread", "show_stats": "Ipakita ang mga Estadistika", - "hide": "Itago" + "hide": "Itago", + "board_stats_hour": "Sa nakaraang oras, <1>{{userCount}} mga gumagamit ang gumawa ng <1>{{postCount}} na mga post", + "board_stats_day": "Sa nakaraang araw, <1>{{userCount}} mga gumagamit ang gumawa ng <1>{{postCount}} na mga post", + "board_stats_week": "Sa nakaraang linggo, <1>{{userCount}} mga gumagamit ang gumawa ng <1>{{postCount}} na mga post", + "board_stats_month": "Sa nakaraang buwan, <1>{{userCount}} mga gumagamit ang gumawa ng <1>{{postCount}} na mga post", + "board_stats_all": "Mula noon, <1>{{userCount}} mga gumagamit ang gumawa ng <1>{{postCount}} na mga post", + "board_created": "Board na nilikha" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 53ef7db7..fcf5db4c 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -14,5 +14,11 @@ "download_app": "Télécharger l'application", "start_new_thread": "Démarrer un nouveau fil", "show_stats": "Afficher les statistiques", - "hide": "Masquer" + "hide": "Masquer", + "board_stats_hour": "Au cours de la dernière heure, <1>{{userCount}} utilisateurs ont publié <1>{{postCount}} messages", + "board_stats_day": "Au cours de la dernière journée, <1>{{userCount}} utilisateurs ont publié <1>{{postCount}} messages", + "board_stats_week": "Au cours de la dernière semaine, <1>{{userCount}} utilisateurs ont publié <1>{{postCount}} messages", + "board_stats_month": "Au cours du dernier mois, <1>{{userCount}} utilisateurs ont publié <1>{{postCount}} messages", + "board_stats_all": "Depuis lors, <1>{{userCount}} utilisateurs ont publié <1>{{postCount}} messages", + "board_created": "Forum créé" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index db121b90..058bab97 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -14,5 +14,11 @@ "download_app": "הורד את האפליקציה", "start_new_thread": "התחלה של פוסט חדש", "show_stats": "הצג סטטיסטיקות", - "hide": "הסתר" + "hide": "הסתר", + "board_stats_hour": "בשעה האחרונה, <1>{{userCount}} משתמשים פרסמו <1>{{postCount}} הודעות", + "board_stats_day": "ביום האחרון, <1>{{userCount}} משתמשים פרסמו <1>{{postCount}} הודעות", + "board_stats_week": "בשבוע האחרון, <1>{{userCount}} משתמשים פרסמו <1>{{postCount}} הודעות", + "board_stats_month": "בחודש האחרון, <1>{{userCount}} משתמשים פרסמו <1>{{postCount}} הודעות", + "board_stats_all": "מאז, <1>{{userCount}} משתמשים פרסמו <1>{{postCount}} הודעות", + "board_created": "פורום נוצר" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index eecbb24c..127cf84a 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -14,5 +14,11 @@ "download_app": "ऐप डाउनलोड करें", "start_new_thread": "नया थ्रेड शुरू करें", "show_stats": "आँकड़े दिखाएं", - "hide": "छुपाएँ" + "hide": "छुपाएँ", + "board_stats_hour": "पिछले घंटे में, <1>{{userCount}} उपयोगकर्ता <1>{{postCount}} पोस्ट की", + "board_stats_day": "पिछले दिन, <1>{{userCount}} उपयोगकर्ता <1>{{postCount}} पोस्ट की", + "board_stats_week": "पिछले सप्ताह, <1>{{userCount}} उपयोगकर्ता <1>{{postCount}} पोस्ट की", + "board_stats_month": "पिछले महीने, <1>{{userCount}} उपयोगकर्ता <1>{{postCount}} पोस्ट की", + "board_stats_all": "उस समय से, <1>{{userCount}} उपयोगकर्ता <1>{{postCount}} पोस्ट की", + "board_created": "बोर्ड बनाया गया" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 142fae41..b8611811 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -14,5 +14,11 @@ "download_app": "App letöltése", "start_new_thread": "Új téma indítása", "show_stats": "Statisztikák megjelenítése", - "hide": "Elrejtés" + "hide": "Elrejtés", + "board_stats_hour": "Az elmúlt órában <1>{{userCount}} felhasználó <1>{{postCount}} hozzászólást küldött", + "board_stats_day": "Az elmúlt napon <1>{{userCount}} felhasználó <1>{{postCount}} hozzászólást küldött", + "board_stats_week": "Az elmúlt héten <1>{{userCount}} felhasználó <1>{{postCount}} hozzászólást küldött", + "board_stats_month": "Az elmúlt hónapban <1>{{userCount}} felhasználó <1>{{postCount}} hozzászólást küldött", + "board_stats_all": "Azóta <1>{{userCount}} felhasználó <1>{{postCount}} hozzászólást küldött", + "board_created": "Fórum létrehozva" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index d6dace6b..bb38c743 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -14,5 +14,11 @@ "download_app": "Unduh aplikasi", "start_new_thread": "Mulai Thread Baru", "show_stats": "Tampilkan Statistik", - "hide": "Sembunyikan" + "hide": "Sembunyikan", + "board_stats_hour": "Dalam satu jam terakhir, <1>{{userCount}} pengguna telah membuat <1>{{postCount}} postingan", + "board_stats_day": "Dalam satu hari terakhir, <1>{{userCount}} pengguna telah membuat <1>{{postCount}} postingan", + "board_stats_week": "Dalam seminggu terakhir, <1>{{userCount}} pengguna telah membuat <1>{{postCount}} postingan", + "board_stats_month": "Dalam sebulan terakhir, <1>{{userCount}} pengguna telah membuat <1>{{postCount}} postingan", + "board_stats_all": "Sejak saat itu, <1>{{userCount}} pengguna telah membuat <1>{{postCount}} postingan", + "board_created": "Papan pesan dibuat" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 68b64651..99c3a8b1 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -14,5 +14,11 @@ "download_app": "Scarica app", "start_new_thread": "Inizia un Nuovo Thread", "show_stats": "Mostra Statistiche", - "hide": "Nascondi" + "hide": "Nascondi", + "board_stats_hour": "Nell'ultima ora, <1>{{userCount}} utenti hanno inviato <1>{{postCount}} post", + "board_stats_day": "Nell'ultimo giorno, <1>{{userCount}} utenti hanno inviato <1>{{postCount}} post", + "board_stats_week": "Nell'ultima settimana, <1>{{userCount}} utenti hanno inviato <1>{{postCount}} post", + "board_stats_month": "Nell'ultimo mese, <1>{{userCount}} utenti hanno inviato <1>{{postCount}} post", + "board_stats_all": "Da allora, <1>{{userCount}} utenti hanno inviato <1>{{postCount}} post", + "board_created": "Forum creato" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 3fcfe54e..7fd9b486 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -14,5 +14,11 @@ "download_app": "アプリをダウンロード", "start_new_thread": "新しいスレッドを開始", "show_stats": "統計を表示", - "hide": "非表示" + "hide": "非表示", + "board_stats_hour": "直近1時間で<1>{{userCount}}人のユーザーが<1>{{postCount}}件の投稿をしました", + "board_stats_day": "直近1日間で<1>{{userCount}}人のユーザーが<1>{{postCount}}件の投稿をしました", + "board_stats_week": "直近1週間で<1>{{userCount}}人のユーザーが<1>{{postCount}}件の投稿をしました", + "board_stats_month": "直近1ヶ月で<1>{{userCount}}人のユーザーが<1>{{postCount}}件の投稿をしました", + "board_stats_all": "その後、<1>{{userCount}}人のユーザーが<1>{{postCount}}件の投稿をしました", + "board_created": "掲示板が作成されました" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index c0100564..c6091328 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -14,5 +14,11 @@ "download_app": "앱 다운로드", "start_new_thread": "새로운 쓰레드 시작", "show_stats": "통계 표시", - "hide": "숨기기" + "hide": "숨기기", + "board_stats_hour": "지난 1시간 동안 <1>{{userCount}}명의 사용자가 <1>{{postCount}}개의 게시물을 작성했습니다", + "board_stats_day": "지난 1일 동안 <1>{{userCount}}명의 사용자가 <1>{{postCount}}개의 게시물을 작성했습니다", + "board_stats_week": "지난 1주간 <1>{{userCount}}명의 사용자가 <1>{{postCount}}개의 게시물을 작성했습니다", + "board_stats_month": "지난 1개월 동안 <1>{{userCount}}명의 사용자가 <1>{{postCount}}개의 게시물을 작성했습니다", + "board_stats_all": "그 후 <1>{{userCount}}명의 사용자가 <1>{{postCount}}개의 게시물을 작성했습니다", + "board_created": "게시판이 생성되었습니다" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 2a47a7e5..fbf1c48e 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -14,5 +14,11 @@ "download_app": "अ‍ॅप डाउनलोड करा", "start_new_thread": "नवीन थ्रेड सुरू करा", "show_stats": "आँकडे दर्शवा", - "hide": "लपवा" + "hide": "लपवा", + "board_stats_hour": "गेल्या एक तासात, <1>{{userCount}} वापरकर्ते <1>{{postCount}} पोस्ट्स केले", + "board_stats_day": "मागील दिवसात, <1>{{userCount}} वापरकर्ते <1>{{postCount}} पोस्ट्स केले", + "board_stats_week": "मागील सप्ताहात, <1>{{userCount}} वापरकर्ते <1>{{postCount}} पोस्ट्स केले", + "board_stats_month": "मागील महिन्यात, <1>{{userCount}} वापरकर्ते <1>{{postCount}} पोस्ट्स केले", + "board_stats_all": "त्यानंतर, <1>{{userCount}} वापरकर्ते <1>{{postCount}} पोस्ट्स केले", + "board_created": "संदेश फलक तयार केला" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index a53c40e2..2d83c94c 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -14,5 +14,11 @@ "download_app": "App downloaden", "start_new_thread": "Start een nieuw onderwerp", "show_stats": "Toon statistieken", - "hide": "Verbergen" + "hide": "Verbergen", + "board_stats_hour": "In het afgelopen uur hebben <1>{{userCount}} gebruikers <1>{{postCount}} berichten gemaakt", + "board_stats_day": "In de afgelopen dag hebben <1>{{userCount}} gebruikers <1>{{postCount}} berichten gemaakt", + "board_stats_week": "In de afgelopen week hebben <1>{{userCount}} gebruikers <1>{{postCount}} berichten gemaakt", + "board_stats_month": "In de afgelopen maand hebben <1>{{userCount}} gebruikers <1>{{postCount}} berichten gemaakt", + "board_stats_all": "Sindsdien hebben <1>{{userCount}} gebruikers <1>{{postCount}} berichten gemaakt", + "board_created": "Forum aangemaakt" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 9b35216d..019dcdfc 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -14,5 +14,11 @@ "download_app": "Last ned appen", "start_new_thread": "Start en ny tråd", "show_stats": "Vis statistikk", - "hide": "Skjul" + "hide": "Skjul", + "board_stats_hour": "I løpet av den siste timen har <1>{{userCount}} brukere laget <1>{{postCount}} innlegg", + "board_stats_day": "I løpet av den siste dagen har <1>{{userCount}} brukere laget <1>{{postCount}} innlegg", + "board_stats_week": "I løpet av den siste uken har <1>{{userCount}} brukere laget <1>{{postCount}} innlegg", + "board_stats_month": "I løpet av den siste måneden har <1>{{userCount}} brukere laget <1>{{postCount}} innlegg", + "board_stats_all": "Siden den gang har <1>{{userCount}} brukere laget <1>{{postCount}} innlegg", + "board_created": "Forum opprettet" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 36a4d104..58e90213 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -14,5 +14,11 @@ "download_app": "Pobierz aplikację", "start_new_thread": "Rozpocznij nowy wątek", "show_stats": "Pokaż statystyki", - "hide": "Ukryj" + "hide": "Ukryj", + "board_stats_hour": "W ciągu ostatniej godziny <1>{{userCount}} użytkowników napisało <1>{{postCount}} postów", + "board_stats_day": "W ciągu ostatniego dnia <1>{{userCount}} użytkowników napisało <1>{{postCount}} postów", + "board_stats_week": "W ciągu ostatniego tygodnia <1>{{userCount}} użytkowników napisało <1>{{postCount}} postów", + "board_stats_month": "W ciągu ostatniego miesiąca <1>{{userCount}} użytkowników napisało <1>{{postCount}} postów", + "board_stats_all": "Od tego czasu <1>{{userCount}} użytkowników napisało <1>{{postCount}} postów", + "board_created": "Forum utworzone" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index ba1d2f1e..c5f74a61 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -14,5 +14,11 @@ "download_app": "Baixar aplicativo", "start_new_thread": "Iniciar um Novo Tópico", "show_stats": "Mostrar Estatísticas", - "hide": "Esconder" + "hide": "Esconder", + "board_stats_hour": "Nas últimas horas, <1>{{userCount}} usuários fizeram <1>{{postCount}} postagens", + "board_stats_day": "Nas últimas horas, <1>{{userCount}} usuários fizeram <1>{{postCount}} postagens", + "board_stats_week": "Na última semana, <1>{{userCount}} usuários fizeram <1>{{postCount}} postagens", + "board_stats_month": "No último mês, <1>{{userCount}} usuários fizeram <1>{{postCount}} postagens", + "board_stats_all": "Desde então, <1>{{userCount}} usuários fizeram <1>{{postCount}} postagens", + "board_created": "Fórum criado" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 68659d8d..fda80cdf 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -14,5 +14,11 @@ "download_app": "Descărcați aplicația", "start_new_thread": "Începeți un nou fir de discuție", "show_stats": "Afișează statistici", - "hide": "Ascunde" + "hide": "Ascunde", + "board_stats_hour": "În ultima oră, <1>{{userCount}} utilizatori au făcut <1>{{postCount}} postări", + "board_stats_day": "În ultima zi, <1>{{userCount}} utilizatori au făcut <1>{{postCount}} postări", + "board_stats_week": "În ultima săptămână, <1>{{userCount}} utilizatori au făcut <1>{{postCount}} postări", + "board_stats_month": "În ultima lună, <1>{{userCount}} utilizatori au făcut <1>{{postCount}} postări", + "board_stats_all": "De atunci, <1>{{userCount}} utilizatori au făcut <1>{{postCount}} postări", + "board_created": "Forum creat" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index b3679d8b..801d6897 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -14,5 +14,11 @@ "download_app": "Скачать приложение", "start_new_thread": "Начать новую тему", "show_stats": "Показать статистику", - "hide": "Скрыть" + "hide": "Скрыть", + "board_stats_hour": "За последний час <1>{{userCount}} пользователей опубликовали <1>{{postCount}} сообщений", + "board_stats_day": "За прошлый день <1>{{userCount}} пользователей опубликовали <1>{{postCount}} сообщений", + "board_stats_week": "За прошлую неделю <1>{{userCount}} пользователей опубликовали <1>{{postCount}} сообщений", + "board_stats_month": "За прошлый месяц <1>{{userCount}} пользователей опубликовали <1>{{postCount}} сообщений", + "board_stats_all": "С тех пор <1>{{userCount}} пользователей опубликовали <1>{{postCount}} сообщений", + "board_created": "Форум создан" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 80fc2296..1160edf5 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -14,5 +14,11 @@ "download_app": "Shkarko aplikacionin", "start_new_thread": "Filloni një temë të re", "show_stats": "Shfaq Statistikat", - "hide": "Fshih" + "hide": "Fshih", + "board_stats_hour": "Në orën e fundit, <1>{{userCount}} përdorues ka bërë <1>{{postCount}} postime", + "board_stats_day": "Në ditën e fundit, <1>{{userCount}} përdorues ka bërë <1>{{postCount}} postime", + "board_stats_week": "Në javën e kaluar, <1>{{userCount}} përdorues ka bërë <1>{{postCount}} postime", + "board_stats_month": "Në muajin e kaluar, <1>{{userCount}} përdorues ka bërë <1>{{postCount}} postime", + "board_stats_all": "Që atëherë, <1>{{userCount}} përdorues ka bërë <1>{{postCount}} postime", + "board_created": "Forumi është krijuar" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index eec6808c..c012eccf 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -14,5 +14,11 @@ "download_app": "Ladda ner appen", "start_new_thread": "Starta en ny tråd", "show_stats": "Visa statistik", - "hide": "Dölj" + "hide": "Dölj", + "board_stats_hour": "Under den senaste timmen har <1>{{userCount}} användare gjort <1>{{postCount}} inlägg", + "board_stats_day": "Under den senaste dagen har <1>{{userCount}} användare gjort <1>{{postCount}} inlägg", + "board_stats_week": "Under den senaste veckan har <1>{{userCount}} användare gjort <1>{{postCount}} inlägg", + "board_stats_month": "Under den senaste månaden har <1>{{userCount}} användare gjort <1>{{postCount}} inlägg", + "board_stats_all": "Sedan dess har <1>{{userCount}} användare gjort <1>{{postCount}} inlägg", + "board_created": "Forum skapat" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 8d7ca7bc..89be4e68 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -14,5 +14,11 @@ "download_app": "అప్లికేషన్‌ను డౌన్‌లోడ్ చేయండి", "start_new_thread": "కొత్త థ్రెడ్‌ను ప్రారంభించండి", "show_stats": "సాంకేతికాలను చూపించు", - "hide": "దాచు" + "hide": "దాచు", + "board_stats_hour": "గత గంటలో, <1>{{userCount}} యూజర్‌లు <1>{{postCount}} పోస్టులు చేశారు", + "board_stats_day": "గత రోజు, <1>{{userCount}} యూజర్‌లు <1>{{postCount}} పోస్టులు చేశారు", + "board_stats_week": "గత వారం, <1>{{userCount}} వాడుకరులు <1>{{postCount}} పోస్టులు చేశారు", + "board_stats_month": "గత నెలలో, <1>{{userCount}} వాడుకరులు <1>{{postCount}} పోస్టులు చేశారు", + "board_stats_all": "అప్పుడు నుండి, <1>{{userCount}} వాడుకరులు <1>{{postCount}} పోస్టులు చేశారు", + "board_created": "బోర్డు సృష్టించబడింది" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 8e14b923..156034f8 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -14,5 +14,11 @@ "download_app": "ดาวน์โหลดแอพ", "start_new_thread": "เริ่มต้นสร้างกระทู้ใหม่", "show_stats": "แสดงสถิติ", - "hide": "ซ่อน" + "hide": "ซ่อน", + "board_stats_hour": "ในชั่วโมงที่ผ่านมา <1>{{userCount}} ผู้ใช้งานได้สร้าง <1>{{postCount}} โพสต์", + "board_stats_day": "ในวันที่ผ่านมา <1>{{userCount}} ผู้ใช้งานได้สร้าง <1>{{postCount}} โพสต์", + "board_stats_week": "ในช่วงสัปดาห์ที่ผ่านมา <1>{{userCount}} ผู้ใช้งานได้สร้าง <1>{{postCount}} โพสต์", + "board_stats_month": "ในช่วงเดือนที่ผ่านมา <1>{{userCount}} ผู้ใช้งานได้สร้าง <1>{{postCount}} โพสต์", + "board_stats_all": "ตั้งแต่นั้นมา <1>{{userCount}} ผู้ใช้งานได้สร้าง <1>{{postCount}} โพสต์", + "board_created": "สร้างกระดานข่าวแล้ว" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index ad193312..f1c97a4d 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -14,5 +14,11 @@ "download_app": "Uygulamayı indir", "start_new_thread": "Yeni bir Konu Başlat", "show_stats": "İstatistikleri Göster", - "hide": "Gizle" + "hide": "Gizle", + "board_stats_hour": "Son saatte <1>{{userCount}} kullanıcı <1>{{postCount}} gönderi yaptı", + "board_stats_day": "Son gün içinde <1>{{userCount}} kullanıcı <1>{{postCount}} gönderi yaptı", + "board_stats_week": "Geçen hafta <1>{{userCount}} kullanıcı <1>{{postCount}} gönderi yaptı", + "board_stats_month": "Geçen ay <1>{{userCount}} kullanıcı <1>{{postCount}} gönderi yaptı", + "board_stats_all": "O zamandan beri <1>{{userCount}} kullanıcı <1>{{postCount}} gönderi yaptı", + "board_created": "Forum oluşturuldu" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index be5d4a5e..e86278be 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -14,5 +14,11 @@ "download_app": "Завантажити додаток", "start_new_thread": "Почати нову тему", "show_stats": "Показати статистику", - "hide": "Приховати" + "hide": "Приховати", + "board_stats_hour": "За останню годину <1>{{userCount}} користувачів зробили <1>{{postCount}} повідомлень", + "board_stats_day": "За останній день <1>{{userCount}} користувачів зробили <1>{{postCount}} повідомлень", + "board_stats_week": "За минулий тиждень <1>{{userCount}} користувачів зробили <1>{{postCount}} повідомлень", + "board_stats_month": "За минулий місяць <1>{{userCount}} користувачів зробили <1>{{postCount}} повідомлень", + "board_stats_all": "З того часу <1>{{userCount}} користувачів зробили <1>{{postCount}} повідомлень", + "board_created": "Форум створено" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 2db440c2..44b82cfe 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -14,5 +14,11 @@ "download_app": "ایپ ڈاؤن لوڈ کریں", "start_new_thread": "نئی دھاگہ شروع کریں", "show_stats": "احصائیہ دکھائیں", - "hide": "چھپائیں" + "hide": "چھپائیں", + "board_stats_hour": "گذشتہ گھنٹے میں، <1>{{userCount}} صارفین نے <1>{{postCount}} مواد ارسال کیا ہے", + "board_stats_day": "گذشتہ دن، <1>{{userCount}} صارفین نے <1>{{postCount}} مواد ارسال کیا ہے", + "board_stats_week": "گذشتہ ہفتے، <1>{{userCount}} صارفین نے <1>{{postCount}} مواد ارسال کیا ہے", + "board_stats_month": "گذشتہ مہینے، <1>{{userCount}} صارفین نے <1>{{postCount}} مواد ارسال کیا ہے", + "board_stats_all": "اس کے بعد، <1>{{userCount}} صارفین نے <1>{{postCount}} مواد ارسال کیا ہے", + "board_created": "پیغام بورڈز بنایا گیا" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 8afc6b81..c34103d8 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -14,5 +14,11 @@ "download_app": "Tải ứng dụng", "start_new_thread": "Bắt đầu một chủ đề mới", "show_stats": "Hiển thị Thống kê", - "hide": "Ẩn" + "hide": "Ẩn", + "board_stats_hour": "Trong giờ qua, <1>{{userCount}} người dùng đã đăng <1>{{postCount}} bài", + "board_stats_day": "Trong ngày qua, <1>{{userCount}} người dùng đã đăng <1>{{postCount}} bài", + "board_stats_week": "Trong tuần qua, <1>{{userCount}} người dùng đã đăng <1>{{postCount}} bài", + "board_stats_month": "Trong tháng qua, <1>{{userCount}} người dùng đã đăng <1>{{postCount}} bài", + "board_stats_all": "Từ đó, <1>{{userCount}} người dùng đã đăng <1>{{postCount}} bài", + "board_created": "Diễn đàn được tạo" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index e7f8e9fe..6270af43 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -14,5 +14,11 @@ "download_app": "下载应用", "start_new_thread": "开始新主题", "show_stats": "显示统计", - "hide": "隐藏" + "hide": "隐藏", + "board_stats_hour": "在过去的一小时内,<1>{{userCount}} 用户发布了<1>{{postCount}}个帖子", + "board_stats_day": "在过去的一天内,<1>{{userCount}} 用户发布了<1>{{postCount}}个帖子", + "board_stats_week": "在过去的一周内,<1>{{userCount}} 用户发布了<1>{{postCount}}个帖子", + "board_stats_month": "在过去的一个月内,<1>{{userCount}} 用户发布了<1>{{postCount}}个帖子", + "board_stats_all": "从那时起,<1>{{userCount}} 用户发布了<1>{{postCount}}个帖子", + "board_created": "论坛已创建" } \ No newline at end of file diff --git a/src/components/board-stats/board-stats.module.css b/src/components/board-stats/board-stats.module.css index 65aa296f..db4a5ad1 100644 --- a/src/components/board-stats/board-stats.module.css +++ b/src/components/board-stats/board-stats.module.css @@ -38,4 +38,12 @@ .hideButton:hover { cursor: pointer; color: var(--button-text-color-hover); +} + +.statValue { + color: var(--button-text-color); +} + +.lowercase { + text-transform: lowercase; } \ No newline at end of file diff --git a/src/components/board-stats/board-stats.tsx b/src/components/board-stats/board-stats.tsx index 936f9f66..074204b7 100644 --- a/src/components/board-stats/board-stats.tsx +++ b/src/components/board-stats/board-stats.tsx @@ -1,6 +1,7 @@ import { useState } from 'react'; import { useSubplebbitStats } from '@plebbit/plebbit-react-hooks'; import styles from './board-stats.module.css'; +import { Trans, useTranslation } from 'react-i18next'; export interface BoardStatsProps { address: string | undefined; @@ -8,6 +9,7 @@ export interface BoardStatsProps { } const BoardStats = ({ address, createdAt }: BoardStatsProps) => { + const { t } = useTranslation(); const stats = useSubplebbitStats({ subplebbitAddress: address }); const [showStats, setShowStats] = useState(true); @@ -19,8 +21,6 @@ const BoardStats = ({ address, createdAt }: BoardStatsProps) => { return month + '/' + day + '/' + year; }; - const pluralize = (count: number, singular: string, plural: string) => (count === 1 ? singular : plural); - return (

@@ -29,25 +29,43 @@ const BoardStats = ({ address, createdAt }: BoardStatsProps) => { - In the past hour, {stats.hourActiveUserCount} {pluralize(stats.hourActiveUserCount, 'user', 'users')} made{' '} - {stats.hourPostCount} {pluralize(stats.hourPostCount, 'post', 'posts')} / in the past day,{' '} - {stats.dayActiveUserCount} {pluralize(stats.dayActiveUserCount, 'user', 'users')} made{' '} - {stats.dayPostCount} {pluralize(stats.dayPostCount, 'post', 'posts')} + }} + /> + {' / '} + }} + /> - In the past week, {stats.weekActiveUserCount} {pluralize(stats.weekActiveUserCount, 'user', 'users')} made{' '} - {stats.weekPostCount} {pluralize(stats.weekPostCount, 'post', 'posts')} / in the past month,{' '} - {stats.monthActiveUserCount} {pluralize(stats.monthActiveUserCount, 'user', 'users')} made{' '} - {stats.monthPostCount} {pluralize(stats.monthPostCount, 'post', 'posts')} + }} + /> + {' / '} + }} + /> - - {unixToMMDDYYYY(createdAt)} board created / since then, {stats.allActiveUserCount}{' '} - {pluralize(stats.allActiveUserCount, 'user', 'users')} have made {stats.allPostCount}{' '} - {pluralize(stats.allPostCount, 'post', 'posts')} + + {unixToMMDDYYYY(createdAt)} {t('board_created')} + {' / '} + }} + /> @@ -57,7 +75,7 @@ const BoardStats = ({ address, createdAt }: BoardStatsProps) => { [ setShowStats(!showStats)}> - {showStats ? 'Hide' : 'Show Stats'} + {showStats ? t('hide') : t('show_stats')} ]