mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 15:38:34 +08:00
feat: |Worker| multi language add messages (#587)
This commit is contained in:
@@ -20,6 +20,24 @@ const messages: LocaleMessages = {
|
||||
InvalidAddressMsg: "Invalid address",
|
||||
InvalidAddressCredentialMsg: "Invalid address credential",
|
||||
UserDeleteEmailDisabledMsg: "User delete address/email is disabled, please contact the administrator",
|
||||
|
||||
UserNotFoundMsg: "User not found",
|
||||
UserAlreadyExistsMsg: "User already exists, please login",
|
||||
FailedToRegisterMsg: "Failed to register",
|
||||
UserRegistrationDisabledMsg: "User registration is disabled, please contact the administrator",
|
||||
UserMailDomainMustInMsg: "User mail domain must be in this list",
|
||||
InvalidVerifyCodeMsg: "Invalid verify code",
|
||||
InvalidEmailOrPasswordMsg: "Invalid email or password",
|
||||
VerifyMailSenderNotSetMsg: "Verify mail sender address is not set, please contact the administrator",
|
||||
CodeAlreadySentMsg: "Code already sent, please wait",
|
||||
InvalidUserDefaultRoleMsg: "Invalid user default role, please contact the administrator",
|
||||
FailedUpdateUserDefaultRoleMsg: "Failed to update user default role, please contact the administrator",
|
||||
|
||||
Oauth2ClientIDNotFoundMsg: "Oauth2 client ID is not set, please contact the administrator",
|
||||
Oauth2CliendIDOrCodeMissingMsg: "Oauth2 client ID or code is missing",
|
||||
Oauth2FailedGetUserInfoMsg: "Failed to get user info from Oauth2 provider",
|
||||
Oauth2FailedGetAccessTokenMsg: "Failed to get access token from Oauth2 provider",
|
||||
Oauth2FailedGetUserEmailMsg: "Failed to get user email from Oauth2 provider",
|
||||
}
|
||||
|
||||
export default messages;
|
||||
|
||||
@@ -18,4 +18,22 @@ export type LocaleMessages = {
|
||||
InvalidAddressMsg: string
|
||||
InvalidAddressCredentialMsg: string
|
||||
UserDeleteEmailDisabledMsg: string
|
||||
|
||||
UserNotFoundMsg: string
|
||||
UserAlreadyExistsMsg: string
|
||||
FailedToRegisterMsg: string
|
||||
UserRegistrationDisabledMsg: string
|
||||
UserMailDomainMustInMsg: string
|
||||
InvalidVerifyCodeMsg: string
|
||||
InvalidEmailOrPasswordMsg: string
|
||||
VerifyMailSenderNotSetMsg: string
|
||||
CodeAlreadySentMsg: string
|
||||
InvalidUserDefaultRoleMsg: string
|
||||
FailedUpdateUserDefaultRoleMsg: string
|
||||
|
||||
Oauth2ClientIDNotFoundMsg: string
|
||||
Oauth2CliendIDOrCodeMissingMsg: string
|
||||
Oauth2FailedGetUserInfoMsg: string
|
||||
Oauth2FailedGetAccessTokenMsg: string
|
||||
Oauth2FailedGetUserEmailMsg: string
|
||||
}
|
||||
|
||||
+19
-1
@@ -18,8 +18,26 @@ const messages: LocaleMessages = {
|
||||
NewAddressAnonymousDisabledMsg: "匿名用户新建邮箱地址已禁用, 请联系管理员",
|
||||
FailedCreateAddressMsg: "创建邮箱地址失败",
|
||||
InvalidAddressMsg: "无效的邮箱地址",
|
||||
InvalidAddressCredentialMsg: "无效的邮箱地址凭证",
|
||||
InvalidAddressCredentialMsg: "无效的邮箱地址凭据",
|
||||
UserDeleteEmailDisabledMsg: "用户删除邮箱/邮件已禁用, 请联系管理员",
|
||||
|
||||
UserNotFoundMsg: "用户不存在",
|
||||
UserAlreadyExistsMsg: "用户已存在, 请登录",
|
||||
FailedToRegisterMsg: "注册失败",
|
||||
UserRegistrationDisabledMsg: "用户注册已禁用, 请联系管理员",
|
||||
UserMailDomainMustInMsg: "用户邮箱域必须在此列表中",
|
||||
InvalidVerifyCodeMsg: "无效的验证码",
|
||||
InvalidEmailOrPasswordMsg: "无效的邮箱或密码",
|
||||
VerifyMailSenderNotSetMsg: "验证邮件发送邮箱未设置, 请联系管理员",
|
||||
CodeAlreadySentMsg: "验证码已发送, 请稍等",
|
||||
InvalidUserDefaultRoleMsg: "无效的用户默认角色, 请联系管理员",
|
||||
FailedUpdateUserDefaultRoleMsg: "更新用户默认角色失败, 请联系管理员",
|
||||
|
||||
Oauth2ClientIDNotFoundMsg: "Oauth2 客户端 ID 未设置, 请联系管理员",
|
||||
Oauth2CliendIDOrCodeMissingMsg: "Oauth2 客户端 ID 或 code 缺失",
|
||||
Oauth2FailedGetUserInfoMsg: "从 Oauth2 提供商获取用户信息失败",
|
||||
Oauth2FailedGetAccessTokenMsg: "从 Oauth2 提供商获取访问令牌失败",
|
||||
Oauth2FailedGetUserEmailMsg: "从 Oauth2 提供商获取用户邮箱失败",
|
||||
}
|
||||
|
||||
export default messages;
|
||||
|
||||
Reference in New Issue
Block a user