Skip to content

Commit

Permalink
💄 style: Add displaying the message "Reset Successfully." (lobehub#2158)
Browse files Browse the repository at this point in the history
* Upon completion of the reset process, a pop-up window will appear, displaying the message "Reset Successfully."

* Update zh-CN/setting.json

* translation
  • Loading branch information
RubuJam authored Apr 25, 2024
1 parent c684d4e commit 27913ef
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions locales/ar/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "هل تؤكد إعادة تعيين جميع الإعدادات؟",
"currentVersion": "الإصدار الحالي",
"desc": "إعادة تعيين جميع عناصر الإعدادات إلى القيم الافتراضية",
"success": "تمت إعادة ضبط جميع الإعدادات",
"title": "إعادة تعيين جميع الإعدادات"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/bg-BG/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Потвърдете нулирането на всички настройки?",
"currentVersion": "Текуща версия",
"desc": "Нулирайте всички настройки до стойностите по подразбиране",
"success": "Всички настройки са нулирани успешно",
"title": "Нулиране на всички настройки"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/de-DE/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Alle Einstellungen zurücksetzen?",
"currentVersion": "Aktuelle Version",
"desc": "Alle Einstellungen auf Standardwerte zurücksetzen",
"success": "Alle Einstellungen wurden zurückgesetzt",
"title": "Alle Einstellungen zurücksetzen"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Confirm to reset all settings?",
"currentVersion": "Current Version",
"desc": "Reset all settings to default values",
"success": "All settings have been reset",
"title": "Reset All Settings"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "¿Confirmar el restablecimiento de todas las configuraciones?",
"currentVersion": "Versión actual",
"desc": "Restablecer todas las opciones de configuración a sus valores predeterminados",
"success": "Se han restablecido todas las configuraciones",
"title": "Restablecer todas las configuraciones"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/fr-FR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Confirmer la réinitialisation de tous les paramètres ?",
"currentVersion": "Version actuelle",
"desc": "Réinitialiser tous les paramètres aux valeurs par défaut",
"success": "Toutes les configurations ont été réinitialisées avec succès",
"title": "Réinitialiser tous les paramètres"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/it-IT/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Confermi di ripristinare tutte le impostazioni?",
"currentVersion": "Versione corrente",
"desc": "Ripristina tutte le impostazioni ai valori predefiniti",
"success": "Tutte le impostazioni sono state ripristinate con successo",
"title": "Ripristina tutte le impostazioni"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "すべての設定をリセットしますか?",
"currentVersion": "現在のバージョン",
"desc": "すべての設定をデフォルト値にリセットします",
"success": "すべての設定がリセットされました",
"title": "すべての設定をリセット"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "모든 설정을 재설정하시겠습니까?",
"currentVersion": "현재 버전",
"desc": "모든 설정을 기본값으로 재설정합니다",
"success": "모든 설정이 재설정되었습니다",
"title": "모든 설정 재설정"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/nl-NL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Alle instellingen resetten bevestigen?",
"currentVersion": "Huidige versie",
"desc": "Alle instellingen worden teruggezet naar de standaardwaarden",
"success": "Alle instellingen zijn succesvol gereset",
"title": "Alle instellingen resetten"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/pl-PL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Potwierdź zresetowanie wszystkich ustawień?",
"currentVersion": "Aktualna wersja",
"desc": "Zresetuj wszystkie ustawienia do wartości domyślnych",
"success": "Wszystkie ustawienia zostały zresetowane",
"title": "Zresetuj wszystkie ustawienia"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Confirmar a redefinição de todas as configurações?",
"currentVersion": "Versão Atual",
"desc": "Redefinir todas as configurações para os valores padrão",
"success": "Todas as configurações foram redefinidas com sucesso",
"title": "Redefinir Todas as Configurações"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Вы уверены, что хотите сбросить все настройки?",
"currentVersion": "Текущая версия",
"desc": "Сброс всех параметров настройки до значений по умолчанию",
"success": "Все настройки были успешно сброшены",
"title": "Сброс всех настроек"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/tr-TR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Tüm ayarları sıfırlamayı onaylıyor musunuz?",
"currentVersion": "Geçerli Sürüm",
"desc": "Tüm ayarları varsayılan değerlere sıfırlar",
"success": "Tüm ayarlar sıfırlandı",
"title": "Tüm Ayarları Sıfırla"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/vi-VN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "Xác nhận đặt lại tất cả cài đặt?",
"currentVersion": "Phiên bản hiện tại",
"desc": "Đặt lại tất cả cài đặt về giá trị mặc định",
"success": "Đã đặt lại tất cả cài đặt",
"title": "Đặt lại tất cả cài đặt"
}
},
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-CN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"action": "立即重置",
"confirm": "确认重置所有设置?",
"currentVersion": "当前版本",
"desc": "重置所有设置项回默认值",
"desc": "重置所有设置,使用默认值",
"success": "已重置所有设置",
"title": "重置所有设置"
}
},
Expand Down
1 change: 1 addition & 0 deletions locales/zh-TW/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"confirm": "確認重置所有設定?",
"currentVersion": "當前版本",
"desc": "重置所有設定項回預設值",
"success": "已重設所有設定",
"title": "重置所有設定"
}
},
Expand Down
1 change: 1 addition & 0 deletions src/app/settings/common/Common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const Common = memo<SettingsCommonProps>(({ showAccessCodeConfig, showOAuthLogin
onOk: () => {
resetSettings();
form.setFieldsValue(DEFAULT_SETTINGS);
message.success(t('danger.reset.success'));
},
title: t('danger.reset.confirm'),
});
Expand Down
3 changes: 2 additions & 1 deletion src/locales/default/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default {
action: '立即重置',
confirm: '确认重置所有设置?',
currentVersion: '当前版本',
desc: '重置所有设置项回默认值',
desc: '重置所有设置,使用默认值',
success: '已重置所有设置',
title: '重置所有设置',
},
},
Expand Down

0 comments on commit 27913ef

Please sign in to comment.