mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 10:27:49 +00:00
fix: normalize all API responses, add error handling and reset confirmation
- Extract normalizeConfig() for consistent response normalization - Add onError handlers to mutations with useNotify - Add window.confirm before destructive reset action - Add resetConfirm translation key to all locales
This commit is contained in:
@@ -1292,6 +1292,7 @@
|
||||
"emojiId": "Custom Emoji ID",
|
||||
"emojiPlaceholder": "Custom emoji ID (optional)",
|
||||
"resetAll": "Reset all styles",
|
||||
"resetConfirm": "Reset all button styles to defaults?",
|
||||
"hidden": "Hidden",
|
||||
"customLabels": "Button labels",
|
||||
"labelPlaceholder": "Custom button text",
|
||||
|
||||
@@ -1001,6 +1001,7 @@
|
||||
"emojiId": "شناسه ایموجی سفارشی",
|
||||
"emojiPlaceholder": "شناسه ایموجی سفارشی (اختیاری)",
|
||||
"resetAll": "بازنشانی همه سبکها",
|
||||
"resetConfirm": "همه سبکهای دکمه به حالت پیشفرض بازنشانی شوند؟",
|
||||
"hidden": "پنهان",
|
||||
"customLabels": "نامهای دکمه",
|
||||
"labelPlaceholder": "متن سفارشی دکمه",
|
||||
|
||||
@@ -1807,6 +1807,7 @@
|
||||
"emojiId": "Custom Emoji ID",
|
||||
"emojiPlaceholder": "ID кастомного эмодзи (необязательно)",
|
||||
"resetAll": "Сбросить все стили",
|
||||
"resetConfirm": "Сбросить все стили кнопок к значениям по умолчанию?",
|
||||
"hidden": "Скрыта",
|
||||
"customLabels": "Названия кнопки",
|
||||
"labelPlaceholder": "Свой текст кнопки",
|
||||
|
||||
@@ -1039,6 +1039,7 @@
|
||||
"emojiId": "自定义表情 ID",
|
||||
"emojiPlaceholder": "自定义表情 ID(可选)",
|
||||
"resetAll": "重置所有样式",
|
||||
"resetConfirm": "将所有按钮样式重置为默认值?",
|
||||
"hidden": "已隐藏",
|
||||
"customLabels": "按钮名称",
|
||||
"labelPlaceholder": "自定义按钮文本",
|
||||
|
||||
Reference in New Issue
Block a user