spark-server/internal/pkg/i18n/catalog_validate_sms.go
zhr 13b42cef7b chore: 合并本地改动与 main(t_ 表名、lint、音乐分类)
在 fast-forward 到 origin/main 后解决 music logic/repo 冲突,SQL 与模型统一 t_* 表名;Makefile 修正 golangci-lint 变量并令 test/deploy 依赖 lint;补齐 admin/transport 等 lint 修复与 music logic 单测以满足覆盖率门禁。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 10:56:59 +08:00

62 lines
2.6 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package i18n
func init() {
register(map[string]map[Lang]string{
KeyFieldVerificationTarget: {
ZhCN: "账号", En: "Account", ZhTW: "帳號",
},
KeySMSLanguageRequired: {
ZhCN: "请填写 X-Language", En: "X-Language header is required", ZhTW: "請填寫 X-Language",
},
KeySMSTargetRequired: {
ZhCN: "请填写邮箱或手机号", En: "Email or phone is required", ZhTW: "請填寫郵箱或手機號",
},
KeySMSTargetInvalid: {
ZhCN: "邮箱或手机号格式无效", En: "Invalid email or phone", ZhTW: "郵箱或手機號格式無效",
},
KeyFieldVerificationPurpose: {
ZhCN: "验证码用途", En: "Verification purpose", ZhTW: "驗證碼用途",
},
KeySMSPurposeRequired: {
ZhCN: "请选择验证码用途", En: "Verification purpose is required", ZhTW: "請選擇驗證碼用途",
},
KeySMSPurposeInvalid: {
ZhCN: "验证码用途无效", En: "Invalid verification purpose", ZhTW: "驗證碼用途無效",
},
KeySMSDeletePhoneUnsupported: {
ZhCN: "注销验证码暂仅支持绑定邮箱", En: "Account deletion codes are email-only for now", ZhTW: "註銷驗證碼暫僅支援綁定郵箱",
},
KeySMSEmailSubjectLogin: {
ZhCN: "Spark 登录验证码", En: "Spark login code", ZhTW: "Spark 登入驗證碼",
},
KeySMSEmailBodyLogin: {
ZhCN: "您的登录验证码是 {code},5 分钟内有效。如非本人操作请忽略。",
En: "Your login code is {code}. It expires in 5 minutes. Ignore this if you did not request it.",
ZhTW: "您的登入驗證碼是 {code},5 分鐘內有效。如非本人操作請忽略。",
},
KeySMSEmailSubjectDelete: {
ZhCN: "Spark 账号注销验证码", En: "Spark account deletion code", ZhTW: "Spark 帳號註銷驗證碼",
},
KeySMSEmailBodyDelete: {
ZhCN: "您的注销验证码是 {code},5 分钟内有效。提交后将永久删除账号。",
En: "Your account deletion code is {code}. It expires in 5 minutes. Submitting will permanently delete your account.",
ZhTW: "您的註銷驗證碼是 {code},5 分鐘內有效。提交後將永久刪除帳號。",
},
"enum.verification_purpose.login": {
ZhCN: "登录", En: "Login", ZhTW: "登入",
},
"enum.verification_purpose.account_delete": {
ZhCN: "注销账号", En: "Delete account", ZhTW: "註銷帳號",
},
"enum.phone_carrier.mobile": {
ZhCN: "中国移动", En: "China Mobile", ZhTW: "中國移動",
},
"enum.phone_carrier.unicom": {
ZhCN: "中国联通", En: "China Unicom", ZhTW: "中國聯通",
},
"enum.phone_carrier.telecom": {
ZhCN: "中国电信", En: "China Telecom", ZhTW: "中國電信",
},
})
}