-
+
+
{user?.auth_methods?.[0]?.auth_identifier.split('@')[0]}
-
+
{user?.auth_methods?.[0]?.auth_identifier}
@@ -72,11 +72,14 @@ export function UserNav() {
onClick={() => {
router.push(`${item.url}`);
}}
- className="flex items-center gap-2 py-2 cursor-pointer"
+ className='flex cursor-pointer items-center gap-2 py-2'
>
-
-
{t(item.title)}
-
+
+
{t(item.title)}
+
))}
@@ -87,10 +90,10 @@ export function UserNav() {
Logout();
setUser();
}}
- className="flex items-center gap-2 py-2 text-destructive focus:text-destructive cursor-pointer"
+ className='text-destructive focus:text-destructive flex cursor-pointer items-center gap-2 py-2'
>
-
-
{t('logout')}
+
+
{t('logout')}
diff --git a/apps/user/locales/cs-CZ/dashboard.json b/apps/user/locales/cs-CZ/dashboard.json
index 5e0df04..5fec8a1 100644
--- a/apps/user/locales/cs-CZ/dashboard.json
+++ b/apps/user/locales/cs-CZ/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Moje předplatné",
"nextResetDays": "Příští reset/den",
"noLimit": "Bez omezení",
+ "noReset": "Žádné obnovení",
"prompt": "Výzva",
"purchaseSubscription": "Zakoupit předplatné",
"qrCode": "QR kód",
diff --git a/apps/user/locales/cs-CZ/wallet.json b/apps/user/locales/cs-CZ/wallet.json
index 510b20a..9c7f261 100644
--- a/apps/user/locales/cs-CZ/wallet.json
+++ b/apps/user/locales/cs-CZ/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Částka",
+ "assetOverview": "Přehled aktiv",
"balance": "zůstatek",
"commission": "Provize",
"createdAt": "čas",
diff --git a/apps/user/locales/de-DE/dashboard.json b/apps/user/locales/de-DE/dashboard.json
index 8a22033..bd31574 100644
--- a/apps/user/locales/de-DE/dashboard.json
+++ b/apps/user/locales/de-DE/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Meine Abonnements",
"nextResetDays": "Nächster Reset/Tage",
"noLimit": "Kein Limit",
+ "noReset": "Kein Zurücksetzen",
"prompt": "Aufforderung",
"purchaseSubscription": "Abonnement kaufen",
"qrCode": "QR-Code",
diff --git a/apps/user/locales/de-DE/wallet.json b/apps/user/locales/de-DE/wallet.json
index 6da3c0d..e5fa87e 100644
--- a/apps/user/locales/de-DE/wallet.json
+++ b/apps/user/locales/de-DE/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Betrag",
+ "assetOverview": "Vermögensübersicht",
"balance": "Kontostand",
"commission": "Provision",
"createdAt": "Zeit",
diff --git a/apps/user/locales/en-US/dashboard.json b/apps/user/locales/en-US/dashboard.json
index c535a6a..4b60c3b 100644
--- a/apps/user/locales/en-US/dashboard.json
+++ b/apps/user/locales/en-US/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "My Subscriptions",
"nextResetDays": "Next Reset in Days",
"noLimit": "No Limit",
+ "noReset": "No Reset",
"prompt": "Prompt",
"purchaseSubscription": "Purchase Subscription",
"qrCode": "QR Code",
diff --git a/apps/user/locales/en-US/wallet.json b/apps/user/locales/en-US/wallet.json
index 4934770..a3550fd 100644
--- a/apps/user/locales/en-US/wallet.json
+++ b/apps/user/locales/en-US/wallet.json
@@ -1,10 +1,11 @@
{
"amount": "Amount",
+ "assetOverview": "Asset Overview",
"balance": "Balance",
"commission": "Commission",
"createdAt": "Time",
"giftAmount": "Girt Amount",
- "totalAssets": "Asset overview",
+ "totalAssets": "Total Assets",
"type": {
"0": "Type",
"1": "Recharge",
diff --git a/apps/user/locales/es-ES/dashboard.json b/apps/user/locales/es-ES/dashboard.json
index 8c28ae7..57254e1 100644
--- a/apps/user/locales/es-ES/dashboard.json
+++ b/apps/user/locales/es-ES/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Mis suscripciones",
"nextResetDays": "Próximo reinicio/días",
"noLimit": "Sin límite",
+ "noReset": "Sin Reinicio",
"prompt": "sugerencia",
"purchaseSubscription": "Comprar suscripción",
"qrCode": "Código QR",
diff --git a/apps/user/locales/es-ES/wallet.json b/apps/user/locales/es-ES/wallet.json
index 575687f..f51d71b 100644
--- a/apps/user/locales/es-ES/wallet.json
+++ b/apps/user/locales/es-ES/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Cantidad",
+ "assetOverview": "Descripción del activo",
"balance": "saldo",
"commission": "Comisión",
"createdAt": "hora",
diff --git a/apps/user/locales/es-MX/dashboard.json b/apps/user/locales/es-MX/dashboard.json
index 8292a7c..f6602fd 100644
--- a/apps/user/locales/es-MX/dashboard.json
+++ b/apps/user/locales/es-MX/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Mis suscripciones",
"nextResetDays": "Próximo reinicio/días",
"noLimit": "Sin Límite",
+ "noReset": "Sin Reinicio",
"prompt": "Sugerencia",
"purchaseSubscription": "Comprar suscripción",
"qrCode": "Código QR",
diff --git a/apps/user/locales/es-MX/wallet.json b/apps/user/locales/es-MX/wallet.json
index 5faed0c..1531d49 100644
--- a/apps/user/locales/es-MX/wallet.json
+++ b/apps/user/locales/es-MX/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Monto",
+ "assetOverview": "Descripción del Activo",
"balance": "saldo",
"commission": "Comisión",
"createdAt": "Hora",
diff --git a/apps/user/locales/fa-IR/dashboard.json b/apps/user/locales/fa-IR/dashboard.json
index 15bff60..4f39cca 100644
--- a/apps/user/locales/fa-IR/dashboard.json
+++ b/apps/user/locales/fa-IR/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "اشتراکهای من",
"nextResetDays": "روزهای باقیمانده تا بازنشانی بعدی",
"noLimit": "بدون محدودیت",
+ "noReset": "عدم بازنشانی",
"prompt": "پیشنهاد",
"purchaseSubscription": "خرید اشتراک",
"qrCode": "کد QR",
diff --git a/apps/user/locales/fa-IR/wallet.json b/apps/user/locales/fa-IR/wallet.json
index 1ae61f2..1dcec66 100644
--- a/apps/user/locales/fa-IR/wallet.json
+++ b/apps/user/locales/fa-IR/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "مقدار",
+ "assetOverview": "بررسی دارایی",
"balance": "تعادل",
"commission": "کمیسیون",
"createdAt": "زمان",
diff --git a/apps/user/locales/fi-FI/dashboard.json b/apps/user/locales/fi-FI/dashboard.json
index d461475..796574b 100644
--- a/apps/user/locales/fi-FI/dashboard.json
+++ b/apps/user/locales/fi-FI/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Omat tilaukset",
"nextResetDays": "Seuraava nollaus/päivää",
"noLimit": "Ei rajoitusta",
+ "noReset": "Ei nollata",
"prompt": "kehotus",
"purchaseSubscription": "Osta tilaus",
"qrCode": "QR-koodi",
diff --git a/apps/user/locales/fi-FI/wallet.json b/apps/user/locales/fi-FI/wallet.json
index 1bdfef0..3070e06 100644
--- a/apps/user/locales/fi-FI/wallet.json
+++ b/apps/user/locales/fi-FI/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Määrä",
+ "assetOverview": "Omaisuuden yleiskatsaus",
"balance": "Saldo",
"commission": "Komissio",
"createdAt": "Aika",
diff --git a/apps/user/locales/fr-FR/dashboard.json b/apps/user/locales/fr-FR/dashboard.json
index 318d3a9..d73e9e3 100644
--- a/apps/user/locales/fr-FR/dashboard.json
+++ b/apps/user/locales/fr-FR/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Mes abonnements",
"nextResetDays": "Prochain réinitialisation/jours",
"noLimit": "Pas de limite",
+ "noReset": "Pas de réinitialisation",
"prompt": "invite",
"purchaseSubscription": "Acheter un abonnement",
"qrCode": "Code QR",
diff --git a/apps/user/locales/fr-FR/wallet.json b/apps/user/locales/fr-FR/wallet.json
index 17dcff6..8571aea 100644
--- a/apps/user/locales/fr-FR/wallet.json
+++ b/apps/user/locales/fr-FR/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Montant",
+ "assetOverview": "Aperçu des actifs",
"balance": "Solde",
"commission": "Commission",
"createdAt": "temps",
diff --git a/apps/user/locales/hi-IN/dashboard.json b/apps/user/locales/hi-IN/dashboard.json
index 4069873..b779e93 100644
--- a/apps/user/locales/hi-IN/dashboard.json
+++ b/apps/user/locales/hi-IN/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "मेरी सदस्यताएँ",
"nextResetDays": "अगली रीसेट/दिन",
"noLimit": "कोई सीमा नहीं",
+ "noReset": "कोई रीसेट नहीं",
"prompt": "प्रॉम्प्ट",
"purchaseSubscription": "सदस्यता खरीदें",
"qrCode": "क्यूआर कोड",
diff --git a/apps/user/locales/hi-IN/wallet.json b/apps/user/locales/hi-IN/wallet.json
index c37c7e7..d493139 100644
--- a/apps/user/locales/hi-IN/wallet.json
+++ b/apps/user/locales/hi-IN/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "राशि",
+ "assetOverview": "संपत्ति अवलोकन",
"balance": "शेष",
"commission": "आयोग",
"createdAt": "समय",
diff --git a/apps/user/locales/hu-HU/dashboard.json b/apps/user/locales/hu-HU/dashboard.json
index 7a539cf..0a3ec7c 100644
--- a/apps/user/locales/hu-HU/dashboard.json
+++ b/apps/user/locales/hu-HU/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Előfizetéseim",
"nextResetDays": "Következő visszaállítás/nap",
"noLimit": "Nincs korlát",
+ "noReset": "Nincs visszaállítás",
"prompt": "figyelmeztetés",
"purchaseSubscription": "Előfizetés vásárlása",
"qrCode": "QR-kód",
diff --git a/apps/user/locales/hu-HU/wallet.json b/apps/user/locales/hu-HU/wallet.json
index f191026..ec1f469 100644
--- a/apps/user/locales/hu-HU/wallet.json
+++ b/apps/user/locales/hu-HU/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Összeg",
+ "assetOverview": "Eszköz áttekintés",
"balance": "Egyenleg",
"commission": "Jutalék",
"createdAt": "idő",
diff --git a/apps/user/locales/ja-JP/dashboard.json b/apps/user/locales/ja-JP/dashboard.json
index 78dd871..a946e29 100644
--- a/apps/user/locales/ja-JP/dashboard.json
+++ b/apps/user/locales/ja-JP/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "私の購読",
"nextResetDays": "次のリセット/日",
"noLimit": "無制限",
+ "noReset": "リセットしない",
"prompt": "プロンプト",
"purchaseSubscription": "サブスクリプションを購入",
"qrCode": "QRコード",
diff --git a/apps/user/locales/ja-JP/wallet.json b/apps/user/locales/ja-JP/wallet.json
index 77c6f97..f1f6ca3 100644
--- a/apps/user/locales/ja-JP/wallet.json
+++ b/apps/user/locales/ja-JP/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "金額",
+ "assetOverview": "資産概要",
"balance": "残高",
"commission": "手数料",
"createdAt": "時間",
diff --git a/apps/user/locales/ko-KR/dashboard.json b/apps/user/locales/ko-KR/dashboard.json
index 24ca3db..cbddcc2 100644
--- a/apps/user/locales/ko-KR/dashboard.json
+++ b/apps/user/locales/ko-KR/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "내 구독",
"nextResetDays": "다음 초기화/일",
"noLimit": "제한 없음",
+ "noReset": "리셋 없음",
"prompt": "프롬프트",
"purchaseSubscription": "구독 구매",
"qrCode": "QR코드",
diff --git a/apps/user/locales/ko-KR/wallet.json b/apps/user/locales/ko-KR/wallet.json
index 0c6bc71..ffdbc34 100644
--- a/apps/user/locales/ko-KR/wallet.json
+++ b/apps/user/locales/ko-KR/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "금액",
+ "assetOverview": "자산 개요",
"balance": "잔액",
"commission": "위원회",
"createdAt": "시간",
diff --git a/apps/user/locales/no-NO/dashboard.json b/apps/user/locales/no-NO/dashboard.json
index b9fd29f..a1dc7e5 100644
--- a/apps/user/locales/no-NO/dashboard.json
+++ b/apps/user/locales/no-NO/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Mine abonnementer",
"nextResetDays": "Neste tilbakestilling/dager",
"noLimit": "Ingen grense",
+ "noReset": "Ingen tilbakestilling",
"prompt": "Hint",
"purchaseSubscription": "Kjøp abonnement",
"qrCode": "QR-kode",
diff --git a/apps/user/locales/no-NO/wallet.json b/apps/user/locales/no-NO/wallet.json
index 71c7eb1..ed9aec4 100644
--- a/apps/user/locales/no-NO/wallet.json
+++ b/apps/user/locales/no-NO/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Beløp",
+ "assetOverview": "Eiendomsoversikt",
"balance": "Balanse",
"commission": "Kommisjon",
"createdAt": "Tid",
diff --git a/apps/user/locales/pl-PL/dashboard.json b/apps/user/locales/pl-PL/dashboard.json
index a0cd93f..c15bc6f 100644
--- a/apps/user/locales/pl-PL/dashboard.json
+++ b/apps/user/locales/pl-PL/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Moje subskrypcje",
"nextResetDays": "Następny reset/dni",
"noLimit": "Bez limitu",
+ "noReset": "Brak resetu",
"prompt": "Podpowiedź",
"purchaseSubscription": "Zakup subskrypcji",
"qrCode": "Kod QR",
diff --git a/apps/user/locales/pl-PL/wallet.json b/apps/user/locales/pl-PL/wallet.json
index abaa54e..8af3b19 100644
--- a/apps/user/locales/pl-PL/wallet.json
+++ b/apps/user/locales/pl-PL/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "kwota",
+ "assetOverview": "Przegląd aktywów",
"balance": "saldo",
"commission": "Prowizja",
"createdAt": "czas",
diff --git a/apps/user/locales/pt-BR/dashboard.json b/apps/user/locales/pt-BR/dashboard.json
index d112baf..eab91f4 100644
--- a/apps/user/locales/pt-BR/dashboard.json
+++ b/apps/user/locales/pt-BR/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Minhas assinaturas",
"nextResetDays": "Próxima redefinição/dias",
"noLimit": "Sem Limite",
+ "noReset": "Sem Redefinição",
"prompt": "Sugestão",
"purchaseSubscription": "Comprar Assinatura",
"qrCode": "Código QR",
diff --git a/apps/user/locales/pt-BR/wallet.json b/apps/user/locales/pt-BR/wallet.json
index f042426..395a755 100644
--- a/apps/user/locales/pt-BR/wallet.json
+++ b/apps/user/locales/pt-BR/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "quantia",
+ "assetOverview": "Visão Geral do Ativo",
"balance": "saldo",
"commission": "Comissão",
"createdAt": "hora",
diff --git a/apps/user/locales/ro-RO/dashboard.json b/apps/user/locales/ro-RO/dashboard.json
index f7c806e..0989928 100644
--- a/apps/user/locales/ro-RO/dashboard.json
+++ b/apps/user/locales/ro-RO/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Abonamentele mele",
"nextResetDays": "Următoarea resetare/zile",
"noLimit": "Fără limită",
+ "noReset": "Fără Resetare",
"prompt": "Sfat",
"purchaseSubscription": "Achiziționează abonament",
"qrCode": "cod QR",
diff --git a/apps/user/locales/ro-RO/wallet.json b/apps/user/locales/ro-RO/wallet.json
index c6c7bef..4a4cfba 100644
--- a/apps/user/locales/ro-RO/wallet.json
+++ b/apps/user/locales/ro-RO/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Sumă",
+ "assetOverview": "Prezentare generală a activelor",
"balance": "Sold",
"commission": "Comision",
"createdAt": "Timp",
diff --git a/apps/user/locales/ru-RU/dashboard.json b/apps/user/locales/ru-RU/dashboard.json
index 8fb5016..847bc88 100644
--- a/apps/user/locales/ru-RU/dashboard.json
+++ b/apps/user/locales/ru-RU/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Мои подписки",
"nextResetDays": "Следующее сброс/дней",
"noLimit": "Без ограничений",
+ "noReset": "Нет сброса",
"prompt": "Подсказка",
"purchaseSubscription": "Купить подписку",
"qrCode": "QR-код",
diff --git a/apps/user/locales/ru-RU/wallet.json b/apps/user/locales/ru-RU/wallet.json
index e134ffa..a62ceec 100644
--- a/apps/user/locales/ru-RU/wallet.json
+++ b/apps/user/locales/ru-RU/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "сумма",
+ "assetOverview": "Обзор актива",
"balance": "Баланс",
"commission": "Комиссия",
"createdAt": "время",
diff --git a/apps/user/locales/th-TH/dashboard.json b/apps/user/locales/th-TH/dashboard.json
index 0c6fa5e..22c3290 100644
--- a/apps/user/locales/th-TH/dashboard.json
+++ b/apps/user/locales/th-TH/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "การสมัครสมาชิกของฉัน",
"nextResetDays": "รีเซ็ตครั้งถัดไป/วัน",
"noLimit": "ไม่จำกัด",
+ "noReset": "ไม่มีการรีเซ็ต",
"prompt": "คำแนะนำ",
"purchaseSubscription": "ซื้อการสมัครสมาชิก",
"qrCode": "คิวอาร์โค้ด",
diff --git a/apps/user/locales/th-TH/wallet.json b/apps/user/locales/th-TH/wallet.json
index 3826b03..55c1c35 100644
--- a/apps/user/locales/th-TH/wallet.json
+++ b/apps/user/locales/th-TH/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "จำนวนเงิน",
+ "assetOverview": "ภาพรวมสินทรัพย์",
"balance": "ยอดคงเหลือ",
"commission": "คอมมิชชั่น",
"createdAt": "เวลา",
diff --git a/apps/user/locales/tr-TR/dashboard.json b/apps/user/locales/tr-TR/dashboard.json
index 862eb57..22d2243 100644
--- a/apps/user/locales/tr-TR/dashboard.json
+++ b/apps/user/locales/tr-TR/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Aboneliklerim",
"nextResetDays": "Sonraki Sıfırlama/Gün",
"noLimit": "Sınırsız",
+ "noReset": "Sıfırlama Yok",
"prompt": "istem",
"purchaseSubscription": "Abonelik Satın Al",
"qrCode": "QR kodu",
diff --git a/apps/user/locales/tr-TR/wallet.json b/apps/user/locales/tr-TR/wallet.json
index 4609d53..75c21fa 100644
--- a/apps/user/locales/tr-TR/wallet.json
+++ b/apps/user/locales/tr-TR/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Tutar",
+ "assetOverview": "Varlık Genel Görünümü",
"balance": "Bakiye",
"commission": "Komisyon",
"createdAt": "zaman",
diff --git a/apps/user/locales/uk-UA/dashboard.json b/apps/user/locales/uk-UA/dashboard.json
index 4fcbe4c..2815aae 100644
--- a/apps/user/locales/uk-UA/dashboard.json
+++ b/apps/user/locales/uk-UA/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Мої підписки",
"nextResetDays": "Наступне скидання/днів",
"noLimit": "Без обмежень",
+ "noReset": "Без скидання",
"prompt": "підказка",
"purchaseSubscription": "Придбати підписку",
"qrCode": "QR-код",
diff --git a/apps/user/locales/uk-UA/wallet.json b/apps/user/locales/uk-UA/wallet.json
index 13824c6..e46d0d3 100644
--- a/apps/user/locales/uk-UA/wallet.json
+++ b/apps/user/locales/uk-UA/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Сума",
+ "assetOverview": "Огляд активів",
"balance": "Баланс",
"commission": "Комісія",
"createdAt": "Час",
diff --git a/apps/user/locales/vi-VN/dashboard.json b/apps/user/locales/vi-VN/dashboard.json
index d11cae3..e469aab 100644
--- a/apps/user/locales/vi-VN/dashboard.json
+++ b/apps/user/locales/vi-VN/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "Đăng ký của tôi",
"nextResetDays": "Lần đặt lại tiếp theo/ngày",
"noLimit": "Không Giới Hạn",
+ "noReset": "Không đặt lại",
"prompt": "gợi ý",
"purchaseSubscription": "Mua đăng ký",
"qrCode": "Mã QR",
diff --git a/apps/user/locales/vi-VN/wallet.json b/apps/user/locales/vi-VN/wallet.json
index aac935c..b8d3517 100644
--- a/apps/user/locales/vi-VN/wallet.json
+++ b/apps/user/locales/vi-VN/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "Số tiền",
+ "assetOverview": "Tổng Quan Tài Sản",
"balance": "Số dư",
"commission": "Hoa hồng",
"createdAt": "Thời gian",
diff --git a/apps/user/locales/zh-CN/dashboard.json b/apps/user/locales/zh-CN/dashboard.json
index 4e01a2b..b152f21 100644
--- a/apps/user/locales/zh-CN/dashboard.json
+++ b/apps/user/locales/zh-CN/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "我的订阅",
"nextResetDays": "下次重置/天",
"noLimit": "无限制",
+ "noReset": "不重置",
"prompt": "提示",
"purchaseSubscription": "购买订阅",
"qrCode": "二维码",
diff --git a/apps/user/locales/zh-CN/wallet.json b/apps/user/locales/zh-CN/wallet.json
index f1c627d..f6152db 100644
--- a/apps/user/locales/zh-CN/wallet.json
+++ b/apps/user/locales/zh-CN/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "金额",
+ "assetOverview": "资产概览",
"balance": "余额",
"commission": "佣金",
"createdAt": "时间",
diff --git a/apps/user/locales/zh-HK/dashboard.json b/apps/user/locales/zh-HK/dashboard.json
index 6bf1e81..e9681f8 100644
--- a/apps/user/locales/zh-HK/dashboard.json
+++ b/apps/user/locales/zh-HK/dashboard.json
@@ -13,6 +13,7 @@
"mySubscriptions": "我的訂閱",
"nextResetDays": "下次重置/天",
"noLimit": "無限制",
+ "noReset": "無重置",
"prompt": "提示",
"purchaseSubscription": "購買訂閱",
"qrCode": "QR碼",
diff --git a/apps/user/locales/zh-HK/wallet.json b/apps/user/locales/zh-HK/wallet.json
index ab3afaf..3b58273 100644
--- a/apps/user/locales/zh-HK/wallet.json
+++ b/apps/user/locales/zh-HK/wallet.json
@@ -1,5 +1,6 @@
{
"amount": "金額",
+ "assetOverview": "資產概覽",
"balance": "餘額",
"commission": "佣金",
"createdAt": "時間",
diff --git a/packages/ui/src/utils/formatting.ts b/packages/ui/src/utils/formatting.ts
index c128852..da3bf91 100644
--- a/packages/ui/src/utils/formatting.ts
+++ b/packages/ui/src/utils/formatting.ts
@@ -1,4 +1,4 @@
-import { intlFormat } from 'date-fns';
+import { differenceInMilliseconds, intlFormat } from 'date-fns';
export function formatBytes(bytes: number) {
if (bytes === 0) return '0 B';
@@ -24,3 +24,10 @@ export function formatDate(date?: Date | number, showTime: boolean = true) {
hour12: false,
});
}
+
+export function differenceInDays(dateLeft: Date | number, dateRight: Date | number) {
+ const diffInMs = differenceInMilliseconds(dateLeft, dateRight);
+ const diffInDays = diffInMs / (1000 * 60 * 60 * 24);
+ if (diffInDays % 1 === 0) return diffInDays;
+ return Number(diffInDays.toFixed(1));
+}