From 44a09f9e5bce3c893b78cc762ac705c886997873 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Tue, 15 Oct 2024 12:52:57 +0200 Subject: [PATCH] improve settings UI, translations, offline status --- public/translations/ar/default.json | 5 ++++- public/translations/bn/default.json | 5 ++++- public/translations/cs/default.json | 5 ++++- public/translations/da/default.json | 5 ++++- public/translations/de/default.json | 5 ++++- public/translations/el/default.json | 5 ++++- public/translations/en/default.json | 5 ++++- public/translations/es/default.json | 5 ++++- public/translations/fa/default.json | 5 ++++- public/translations/fi/default.json | 5 ++++- public/translations/fil/default.json | 5 ++++- public/translations/fr/default.json | 5 ++++- public/translations/he/default.json | 5 ++++- public/translations/hi/default.json | 5 ++++- public/translations/hu/default.json | 5 ++++- public/translations/id/default.json | 5 ++++- public/translations/it/default.json | 5 ++++- public/translations/ja/default.json | 5 ++++- public/translations/ko/default.json | 5 ++++- public/translations/mr/default.json | 5 ++++- public/translations/nl/default.json | 5 ++++- public/translations/no/default.json | 5 ++++- public/translations/pl/default.json | 5 ++++- public/translations/pt/default.json | 5 ++++- public/translations/ro/default.json | 5 ++++- public/translations/ru/default.json | 5 ++++- public/translations/sq/default.json | 5 ++++- public/translations/sv/default.json | 5 ++++- public/translations/te/default.json | 5 ++++- public/translations/th/default.json | 5 ++++- public/translations/tr/default.json | 5 ++++- public/translations/uk/default.json | 5 ++++- public/translations/ur/default.json | 5 ++++- public/translations/vi/default.json | 5 ++++- public/translations/zh/default.json | 5 ++++- src/components/post-form/post-form.tsx | 6 +++--- .../crypto-wallets-setting.module.css | 4 ---- .../crypto-wallets-setting/crypto-wallets-setting.tsx | 8 ++++---- src/hooks/use-is-subplebbit-offline.ts | 2 +- 39 files changed, 148 insertions(+), 47 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 26baa9bb..28c8278c 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -245,5 +245,8 @@ "create": "إنشاء", "plebbit_account": "حساب Plebbit", "save_changes": "حفظ التغييرات", - "reset_changes": "إعادة تعيين التغييرات" + "reset_changes": "إعادة تعيين التغييرات", + "crypto_address_yours": "عنوان العملة الرقمية ينتمي إلى هذا الحساب.", + "delete_wallet": "حذف المحفظة", + "loading_subplebbit": "جارٍ تحميل subplebbit" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 56c659b5..debe471d 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -245,5 +245,8 @@ "create": "তৈরি করুন", "plebbit_account": "Plebbit অ্যাকাউন্ট", "save_changes": "পরিবর্তনগুলি সংরক্ষণ করুন", - "reset_changes": "পরিবর্তনগুলি রিসেট করুন" + "reset_changes": "পরিবর্তনগুলি রিসেট করুন", + "crypto_address_yours": "ক্রিপ্টো ঠিকানা এই অ্যাকাউন্টের অংশ।", + "delete_wallet": "ওয়ালেট মুছুন", + "loading_subplebbit": "সাবপ্লেবিট লোড হচ্ছে" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index b01f164b..16933223 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -245,5 +245,8 @@ "create": "Vytvořit", "plebbit_account": "Účet Plebbit", "save_changes": "Uložit změny", - "reset_changes": "Obnovit změny" + "reset_changes": "Obnovit změny", + "crypto_address_yours": "Adresa kryptoměny patří k tomuto účtu.", + "delete_wallet": "Smazat peněženku", + "loading_subplebbit": "Načítání subplebbit" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 7bccd6de..d755b11f 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -245,5 +245,8 @@ "create": "Opret", "plebbit_account": "Plebbit-konto", "save_changes": "Gem ændringer", - "reset_changes": "Nulstil ændringer" + "reset_changes": "Nulstil ændringer", + "crypto_address_yours": "Crypto-adresse tilhører denne konto.", + "delete_wallet": "Slet tegnebog", + "loading_subplebbit": "Indlæser subplebbit" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index b547da4e..74fc962d 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -245,5 +245,8 @@ "create": "Erstellen", "plebbit_account": "Plebbit-Konto", "save_changes": "Änderungen speichern", - "reset_changes": "Änderungen zurücksetzen" + "reset_changes": "Änderungen zurücksetzen", + "crypto_address_yours": "Krypto-Adresse gehört zu diesem Konto.", + "delete_wallet": "Wallet löschen", + "loading_subplebbit": "Lade subplebbit" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 95bdb911..d8f4b29c 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -245,5 +245,8 @@ "create": "Δημιουργία", "plebbit_account": "Λογαριασμός Plebbit", "save_changes": "Αποθήκευση αλλαγών", - "reset_changes": "Επαναφορά αλλαγών" + "reset_changes": "Επαναφορά αλλαγών", + "crypto_address_yours": "Η διεύθυνση κρυπτονομίσματος ανήκει σε αυτόν τον λογαριασμό.", + "delete_wallet": "Διαγραφή πορτοφολιού", + "loading_subplebbit": "Φόρτωση subplebbit" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index d5b70fbb..7ab6e78f 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -245,5 +245,8 @@ "create": "Create", "plebbit_account": "Plebbit Account", "save_changes": "Save Changes", - "reset_changes": "Reset Changes" + "reset_changes": "Reset Changes", + "crypto_address_yours": "Crypto address belongs to this account.", + "delete_wallet": "Delete Wallet", + "loading_subplebbit": "Loading subplebbit" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 2dbebecb..dada56f4 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -245,5 +245,8 @@ "create": "Crear", "plebbit_account": "Cuenta Plebbit", "save_changes": "Guardar cambios", - "reset_changes": "Restablecer cambios" + "reset_changes": "Restablecer cambios", + "crypto_address_yours": "La dirección de criptomoneda pertenece a esta cuenta.", + "delete_wallet": "Eliminar billetera", + "loading_subplebbit": "Cargando subplebbit" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 3b2d6c19..9d868b4e 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -245,5 +245,8 @@ "create": "ایجاد", "plebbit_account": "حساب Plebbit", "save_changes": "ذخیره تغییرات", - "reset_changes": "بازنشانی تغییرات" + "reset_changes": "بازنشانی تغییرات", + "crypto_address_yours": "آدرس رمزارز به این حساب تعلق دارد.", + "delete_wallet": "حذف کیف پول", + "loading_subplebbit": "در حال بارگذاری subplebbit" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index d027e58c..d1184f5c 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -245,5 +245,8 @@ "create": "Luo", "plebbit_account": "Plebbit-tili", "save_changes": "Tallenna muutokset", - "reset_changes": "Nollaa muutokset" + "reset_changes": "Nollaa muutokset", + "crypto_address_yours": "Krypto-osoite kuuluu tähän tiliin.", + "delete_wallet": "Poista lompakko", + "loading_subplebbit": "Ladataan subplebbit" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 927696e9..91ccc3d0 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -245,5 +245,8 @@ "create": "Lumikha", "plebbit_account": "Plebbit Account", "save_changes": "I-save ang mga pagbabago", - "reset_changes": "I-reset ang mga pagbabago" + "reset_changes": "I-reset ang mga pagbabago", + "crypto_address_yours": "Ang crypto address ay nauugnay sa account na ito.", + "delete_wallet": "Tanggalin ang Wallet", + "loading_subplebbit": "Naglo-load ng subplebbit" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 657664c1..ebe5b996 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -245,5 +245,8 @@ "create": "Créer", "plebbit_account": "Compte Plebbit", "save_changes": "Enregistrer les modifications", - "reset_changes": "Réinitialiser les modifications" + "reset_changes": "Réinitialiser les modifications", + "crypto_address_yours": "L'adresse crypto appartient à ce compte.", + "delete_wallet": "Supprimer le portefeuille", + "loading_subplebbit": "Chargement de subplebbit" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 8c9c815f..7e5c6e35 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -245,5 +245,8 @@ "create": "צור", "plebbit_account": "חשבון Plebbit", "save_changes": "שמור שינויים", - "reset_changes": "איפוס שינויים" + "reset_changes": "איפוס שינויים", + "crypto_address_yours": "כתובת המטבע הקריפטוגרפי שייכת לחשבון זה.", + "delete_wallet": "מחק ארנק", + "loading_subplebbit": "טוען subplebbit" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index ddf1f194..a448148b 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -245,5 +245,8 @@ "create": "बनाएं", "plebbit_account": "Plebbit खाता", "save_changes": "परिवर्तन सहेजें", - "reset_changes": "परिवर्तन रीसेट करें" + "reset_changes": "परिवर्तन रीसेट करें", + "crypto_address_yours": "क्रिप्टो पता इस खाते से संबंधित है।", + "delete_wallet": "वॉलेट हटाएं", + "loading_subplebbit": "सबप्लेबिट लोड हो रहा है" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index bf8de3ca..0aa7b0cc 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -245,5 +245,8 @@ "create": "Létrehozás", "plebbit_account": "Plebbit-fiók", "save_changes": "Változások mentése", - "reset_changes": "Változások visszaállítása" + "reset_changes": "Változások visszaállítása", + "crypto_address_yours": "A kripto-cím ehhez a fiókhoz tartozik.", + "delete_wallet": "Tárca törlése", + "loading_subplebbit": "Subplebbit betöltése" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 6785270e..a21d7d55 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -245,5 +245,8 @@ "create": "Buat", "plebbit_account": "Akun Plebbit", "save_changes": "Simpan Perubahan", - "reset_changes": "Atur Ulang Perubahan" + "reset_changes": "Atur Ulang Perubahan", + "crypto_address_yours": "Alamat kripto milik akun ini.", + "delete_wallet": "Hapus Dompet", + "loading_subplebbit": "Memuat subplebbit" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 6e2c28f1..ad338394 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -245,5 +245,8 @@ "create": "Crea", "plebbit_account": "Account Plebbit", "save_changes": "Salva Modifiche", - "reset_changes": "Ripristina Modifiche" + "reset_changes": "Ripristina Modifiche", + "crypto_address_yours": "L'indirizzo cripto appartiene a questo account.", + "delete_wallet": "Elimina Wallet", + "loading_subplebbit": "Caricamento subplebbit" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 3b52dcce..6d006e71 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -245,5 +245,8 @@ "create": "作成", "plebbit_account": "Plebbit アカウント", "save_changes": "変更を保存", - "reset_changes": "変更をリセット" + "reset_changes": "変更をリセット", + "crypto_address_yours": "暗号通貨アドレスはこのアカウントに属しています。", + "delete_wallet": "ウォレットを削除", + "loading_subplebbit": "subplebbitを読み込んでいます" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index e74d3ab0..bfdec309 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -245,5 +245,8 @@ "create": "생성", "plebbit_account": "Plebbit 계정", "save_changes": "변경 사항 저장", - "reset_changes": "변경 사항 초기화" + "reset_changes": "변경 사항 초기화", + "crypto_address_yours": "암호 주소는이 계정에 속합니다.", + "delete_wallet": "지갑 삭제", + "loading_subplebbit": "subplebbit 로딩 중" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 89aaa838..05fdafcf 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -245,5 +245,8 @@ "create": "तयार करा", "plebbit_account": "Plebbit खाता", "save_changes": "बदलांना जतन करा", - "reset_changes": "बदलांना रीसेट करा" + "reset_changes": "बदलांना रीसेट करा", + "crypto_address_yours": "क्रिप्टो पत्ता हा खात्याकडे संबंधित आहे.", + "delete_wallet": "वॉलेट हटवा", + "loading_subplebbit": "subplebbit लोड करीत आहे" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 6a6bacf1..6711ceeb 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -245,5 +245,8 @@ "create": "Maak aan", "plebbit_account": "Plebbit-account", "save_changes": "Wijzigingen opslaan", - "reset_changes": "Wijzigingen resetten" + "reset_changes": "Wijzigingen resetten", + "crypto_address_yours": "Crypto-adres behoort tot deze account.", + "delete_wallet": "Verwijder portemonnee", + "loading_subplebbit": "Subplebbit laden" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 76453b51..c2d93c48 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -245,5 +245,8 @@ "create": "Opprett", "plebbit_account": "Plebbit-konto", "save_changes": "Lagre endringer", - "reset_changes": "Tilbakestill endringer" + "reset_changes": "Tilbakestill endringer", + "crypto_address_yours": "Crypto-adressen tilhører denne kontoen.", + "delete_wallet": "Slett lommebok", + "loading_subplebbit": "Laster subplebbit" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 182aa600..1299d515 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -245,5 +245,8 @@ "create": "Utwórz", "plebbit_account": "Konto Plebbit", "save_changes": "Zapisz zmiany", - "reset_changes": "Zresetuj zmiany" + "reset_changes": "Zresetuj zmiany", + "crypto_address_yours": "Adres kryptowaluty należy do tego konta.", + "delete_wallet": "Usuń portfel", + "loading_subplebbit": "Ładowanie subplebbit" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 5d489983..151aa652 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -245,5 +245,8 @@ "create": "Criar", "plebbit_account": "Conta Plebbit", "save_changes": "Salvar Alterações", - "reset_changes": "Redefinir Alterações" + "reset_changes": "Redefinir Alterações", + "crypto_address_yours": "O endereço de criptomoeda pertence a esta conta.", + "delete_wallet": "Excluir carteira", + "loading_subplebbit": "Carregando subplebbit" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index ddd7b6e2..fed2c65e 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -245,5 +245,8 @@ "create": "Creează", "plebbit_account": "Cont Plebbit", "save_changes": "Salvează modificările", - "reset_changes": "Resetează modificările" + "reset_changes": "Resetează modificările", + "crypto_address_yours": "Adresa crypto aparține acestui cont.", + "delete_wallet": "Șterge portofelul", + "loading_subplebbit": "Se încarcă subplebbit" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index ab8d37a5..d1418fd0 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -245,5 +245,8 @@ "create": "Создать", "plebbit_account": "Учетная запись Plebbit", "save_changes": "Сохранить изменения", - "reset_changes": "Сбросить изменения" + "reset_changes": "Сбросить изменения", + "crypto_address_yours": "Адрес криптовалюты принадлежит этому аккаунту.", + "delete_wallet": "Удалить кошелек", + "loading_subplebbit": "Загрузка subplebbit" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 99ce299d..e72edaf1 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -245,5 +245,8 @@ "create": "Krijo", "plebbit_account": "Llogaria Plebbit", "save_changes": "Ruaj ndryshimet", - "reset_changes": "Rivendosni ndryshimet" + "reset_changes": "Rivendosni ndryshimet", + "crypto_address_yours": "Adresa e kriptovalutës i përket këtij llogarie.", + "delete_wallet": "Fshi portofolin", + "loading_subplebbit": "Po ngarkohet subplebbit" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 91c350c8..0a4bf4b4 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -245,5 +245,8 @@ "create": "Skapa", "plebbit_account": "Plebbit-konto", "save_changes": "Spara ändringar", - "reset_changes": "Återställ ändringar" + "reset_changes": "Återställ ändringar", + "crypto_address_yours": "Crypto-adressen tillhör denna konto.", + "delete_wallet": "Ta bort plånbok", + "loading_subplebbit": "Laddar subplebbit" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index cb1cdf98..6a6e626f 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -245,5 +245,8 @@ "create": "సృష్టించండి", "plebbit_account": "Plebbit ఖాతా", "save_changes": "మార్పులను సేవ్ చేయండి", - "reset_changes": "మార్పులను రీసెట్ చేయండి" + "reset_changes": "మార్పులను రీసెట్ చేయండి", + "crypto_address_yours": "క్రిప్టో చిరునామా ఈ ఖాతాకు చేరుకుంది.", + "delete_wallet": "వాలెట్ తొలగించండి", + "loading_subplebbit": "సబ్‌ప్లెబిట్‌లో లోడింగ్" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 9c36c06a..5c2ee125 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -245,5 +245,8 @@ "create": "สร้าง", "plebbit_account": "บัญชี Plebbit", "save_changes": "บันทึกการเปลี่ยนแปลง", - "reset_changes": "รีเซ็ตการเปลี่ยนแปลง" + "reset_changes": "รีเซ็ตการเปลี่ยนแปลง", + "crypto_address_yours": "ที่อยู่คริปโตเป็นของบัญชีนี้", + "delete_wallet": "ลบกระเป๋าเงิน", + "loading_subplebbit": "กำลังโหลด subplebbit" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 34a78942..618aef9c 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -245,5 +245,8 @@ "create": "Oluştur", "plebbit_account": "Plebbit Hesabı", "save_changes": "Değişiklikleri Kaydet", - "reset_changes": "Değişiklikleri Sıfırla" + "reset_changes": "Değişiklikleri Sıfırla", + "crypto_address_yours": "Kripto adres bu hesaba aittir.", + "delete_wallet": "Cüzdanı Sil", + "loading_subplebbit": "Subplebbit Yükleniyor" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index cd461a92..b5a6fa00 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -245,5 +245,8 @@ "create": "Створити", "plebbit_account": "Обліковий запис Plebbit", "save_changes": "Зберегти зміни", - "reset_changes": "Скинути зміни" + "reset_changes": "Скинути зміни", + "crypto_address_yours": "Адреса криптовалюти належить цьому обліковому запису.", + "delete_wallet": "Видалити гаманець", + "loading_subplebbit": "Завантаження subplebbit" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 02095a98..2302e344 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -245,5 +245,8 @@ "create": "تخلیق کریں", "plebbit_account": "Plebbit اکاؤنٹ", "save_changes": "تبدیلیاں محفوظ کریں", - "reset_changes": "تبدیلیاں ری سیٹ کریں" + "reset_changes": "تبدیلیاں ری سیٹ کریں", + "crypto_address_yours": "کرپٹو پتا اس اکاؤنٹ کا حصہ ہے۔", + "delete_wallet": "والٹ حذف کریں", + "loading_subplebbit": "سب پلبیٹ لوڈ ہو رہا ہے" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index e02408ef..c8a7e1f4 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -245,5 +245,8 @@ "create": "Tạo", "plebbit_account": "Tài khoản Plebbit", "save_changes": "Lưu thay đổi", - "reset_changes": "Đặt lại thay đổi" + "reset_changes": "Đặt lại thay đổi", + "crypto_address_yours": "Địa chỉ tiền điện tử thuộc về tài khoản này.", + "delete_wallet": "Xóa ví", + "loading_subplebbit": "Đang tải subplebbit" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index b4c6c688..319550ad 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -245,5 +245,8 @@ "create": "创建", "plebbit_account": "Plebbit 账户", "save_changes": "保存更改", - "reset_changes": "重置更改" + "reset_changes": "重置更改", + "crypto_address_yours": "加密地址属于此帐户。", + "delete_wallet": "删除钱包", + "loading_subplebbit": "加载 subplebbit" } \ No newline at end of file diff --git a/src/components/post-form/post-form.tsx b/src/components/post-form/post-form.tsx index be8296d4..9f37ad76 100644 --- a/src/components/post-form/post-form.tsx +++ b/src/components/post-form/post-form.tsx @@ -339,12 +339,12 @@ const PostForm = () => { const [showForm, setShowForm] = useState(false); const subplebbit = useSubplebbit({ subplebbitAddress: params?.subplebbitAddress }); - const { isOffline, offlineTitle } = useIsSubplebbitOffline(subplebbit); + const { isOffline, isOnlineStatusLoading, offlineTitle } = useIsSubplebbitOffline(subplebbit); return ( <>
- {!(isInAllView || isInSubscriptionsView) && showForm && (isOffline || isOffline) &&
{offlineTitle}
} + {!(isInAllView || isInSubscriptionsView) && showForm && (isOffline || isOnlineStatusLoading) &&
{offlineTitle}
} {isThreadClosed ? (
{t('thread_closed')} @@ -364,7 +364,7 @@ const PostForm = () => { )}
- {!(isInAllView || isInSubscriptionsView) && showForm && (isOffline || isOffline) &&
{offlineTitle}
} + {!(isInAllView || isInSubscriptionsView) && showForm && (isOffline || isOnlineStatusLoading) &&
{offlineTitle}
} {isThreadClosed ? (
{t('thread_closed')} diff --git a/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.module.css b/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.module.css index 92bf36ce..62011551 100644 --- a/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.module.css +++ b/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.module.css @@ -13,10 +13,6 @@ font-style: italic; } -.removeWallet { - color: red; -} - .save { margin-top: 10px; margin-right: 5px; diff --git a/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.tsx b/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.tsx index 203bce5d..c89642ff 100644 --- a/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.tsx +++ b/src/components/settings-modal/crypto-wallets-setting/crypto-wallets-setting.tsx @@ -89,7 +89,7 @@ const CryptoWalletsForm = ({ account }: { account: Account | undefined }) => { const _removeWallet = (index: number) => { const wallet = walletsArray[index]; - if (window.confirm(t('delete_confirm', { value: wallet.chainTicker, interpolation: { escapeValue: false } }))) { + if (window.confirm(t('delete_confirm', { value: wallet.address, interpolation: { escapeValue: false } }))) { const newArray = [...walletsArray.slice(0, index), ...walletsArray.slice(index + 1)]; setWalletsArray(newArray); setSelectedWallet(0); @@ -142,10 +142,10 @@ const CryptoWalletsForm = ({ account }: { account: Account | undefined }) => { />
@@ -170,7 +170,7 @@ const CryptoWalletsForm = ({ account }: { account: Account | undefined }) => { setSelectedWallet(newIndex); }} > - + + {t('create')}
{walletsInputs} diff --git a/src/hooks/use-is-subplebbit-offline.ts b/src/hooks/use-is-subplebbit-offline.ts index f97cad92..6c771fce 100644 --- a/src/hooks/use-is-subplebbit-offline.ts +++ b/src/hooks/use-is-subplebbit-offline.ts @@ -34,7 +34,7 @@ const useIsSubplebbitOffline = (subplebbit: Subplebbit) => { const offlineIconClass = isLoading ? 'yellowOfflineIcon' : isOffline ? 'redOfflineIcon' : ''; const offlineTitle = isLoading - ? t('loading') + ? t('loading_subplebbit') : updatedAt ? isOffline && t('posts_last_synced_info', { time: getFormattedTimeAgo(updatedAt), interpolation: { escapeValue: false } }) : t('subplebbit_offline_info');