feat: enhance notification system and integrate DOMPurify for HTML sanitization
- Added `dompurify` for improved HTML sanitization in the play rules. - Updated `PlayerNotificationBell` component to handle unread notifications and improve user interaction. - Enhanced `usePendingWalletReconcile` hook to manage unread notifications and mark them as read. - Added new translations for notification-related texts in English, Nepali, and Chinese to support multilingual users.
This commit is contained in:
@@ -27,7 +27,15 @@
|
||||
"wallet": "Wallet"
|
||||
},
|
||||
"notifications": {
|
||||
"empty": "No notifications"
|
||||
"title": "Notifications",
|
||||
"empty": "No notifications",
|
||||
"unread": "Unread",
|
||||
"read": "Read",
|
||||
"open": "Open",
|
||||
"markRead": "Mark as read",
|
||||
"markAllRead": "Mark all read",
|
||||
"unreadCount_one": "{{count}} unread",
|
||||
"unreadCount_other": "{{count}} unread"
|
||||
},
|
||||
"panel": {
|
||||
"home": "Home"
|
||||
|
||||
@@ -27,7 +27,15 @@
|
||||
"wallet": "वालेट"
|
||||
},
|
||||
"notifications": {
|
||||
"empty": "कुनै सूचना छैन"
|
||||
"title": "सूचनाहरू",
|
||||
"empty": "कुनै सूचना छैन",
|
||||
"unread": "नपढिएको",
|
||||
"read": "पढिएको",
|
||||
"open": "खोल्नुहोस्",
|
||||
"markRead": "पढिएको चिन्ह लगाउनुहोस्",
|
||||
"markAllRead": "सबै पढिएको",
|
||||
"unreadCount_one": "{{count}} नपढिएको",
|
||||
"unreadCount_other": "{{count}} नपढिएको"
|
||||
},
|
||||
"panel": {
|
||||
"home": "गृह"
|
||||
|
||||
@@ -27,7 +27,15 @@
|
||||
"wallet": "钱包"
|
||||
},
|
||||
"notifications": {
|
||||
"empty": "暂无通知"
|
||||
"title": "通知",
|
||||
"empty": "暂无通知",
|
||||
"unread": "未读",
|
||||
"read": "已读",
|
||||
"open": "打开",
|
||||
"markRead": "标记已读",
|
||||
"markAllRead": "全部已读",
|
||||
"unreadCount_one": "未读 {{count}} 条",
|
||||
"unreadCount_other": "未读 {{count}} 条"
|
||||
},
|
||||
"panel": {
|
||||
"home": "首页"
|
||||
|
||||
Reference in New Issue
Block a user