feat: 添加注销账号功能

- 在个人资料页面添加注销账号按钮
- 需要输入用户名确认才能删除
- 删除所有用户数据:牌组、卡片、笔记、关注等
- 添加 8 种语言翻译
This commit is contained in:
2026-03-10 19:54:19 +08:00
parent db0b0ff348
commit 8099320e00
12 changed files with 324 additions and 1 deletions

View File

@@ -428,6 +428,21 @@
"memberSince": "Member Since",
"joined": "Joined",
"logout": "Logout",
"deleteAccount": {
"button": "Delete Account",
"title": "Delete Account",
"warning": "This action is irreversible. All your data will be permanently deleted.",
"warningDecks": "All your decks and cards",
"warningCards": "All your learning progress",
"warningHistory": "All your translation and dictionary history",
"warningPermanent": "This action cannot be undone",
"confirmLabel": "Type your username to confirm:",
"usernameMismatch": "Username does not match",
"cancel": "Cancel",
"confirm": "Delete My Account",
"success": "Account deleted successfully",
"failed": "Failed to delete account"
},
"decks": {
"title": "Decks",
"noDecks": "No decks yet",