完成app接口国际化
Some checks failed
CI Build and Test / build (push) Has been cancelled
Deploy to Server / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-10-21 10:15:38 +08:00
parent 1e356a03bb
commit 928bb078f0
16 changed files with 791 additions and 89 deletions

View File

@@ -0,0 +1,118 @@
# ===================================
# CoreWing I18n Resource Bundle - English
# ===================================
# ==================== Common Messages ====================
common.success=Operation successful
common.error=Operation failed
# ==================== User Module ====================
# User Controller
user.code.send.success=Verification code sent successfully
user.code.send.failed=Failed to send verification code
user.login.success=Login successful
user.register.success=Registration successful
user.logout.success=Logout successful
user.not.found=User not found
user.update.success=Update successful
user.update.failed=Update failed
user.password.old.incorrect=Incorrect old password
user.password.update.success=Password updated successfully
# User Service Exceptions
error.user.not.found=User not found
error.password.incorrect=Incorrect password
error.account.disabled=Account has been disabled
error.username.exists=Username already exists
error.email.or.phone.required=At least one of email or phone number is required
error.email.exists=Email already in use
error.phone.exists=Phone number already in use
error.verify.code.invalid=Verification code is incorrect or expired
# ==================== Verification Code Module ====================
error.account.empty=Account cannot be empty
error.verify.type.empty=Verification type cannot be empty
error.account.format.invalid=Please enter a valid phone number or email
error.sms.send.failed=SMS sending failed, please try again later
error.email.send.failed=Email sending failed, please try again later
# ==================== Feedback Module ====================
# Feedback Controller
feedback.submit.success=Feedback submitted successfully
feedback.submit.failed=Failed to submit feedback
feedback.not.found=Feedback not found
feedback.status.update.success=Status updated successfully
feedback.status.update.failed=Failed to update status
feedback.delete.success=Deleted successfully
feedback.delete.failed=Failed to delete
feedback.dingtalk.test.message=Test message
feedback.dingtalk.test.success=DingTalk push test successful, please check the DingTalk group
feedback.dingtalk.test.failed=DingTalk push test failed, please check configuration and logs
feedback.dingtalk.test.error=Test exception: {0}
# Feedback Service Exceptions
error.feedback.user.id.empty=User ID cannot be empty
error.feedback.id.empty=Feedback ID cannot be empty
error.feedback.status.empty=Status cannot be empty
# ==================== Global Exception Handler ====================
error.token.missing=Login credentials not provided
error.token.invalid=Invalid login credentials
error.token.expired=Login has expired, please login again
error.token.replaced=Account has been logged in elsewhere
error.token.kicked.out=Account has been kicked offline
error.not.login=Not logged in, please login first
error.server.internal=Internal server error: {0}
# ==================== Utility Classes ====================
# Redis Utility
error.redis.increment.positive=Increment factor must be greater than 0
error.redis.decrement.positive=Decrement factor must be greater than 0
# ==================== Email Template ====================
email.subject.verify.code=[CoreWing] Verification Code
email.greeting=Hi there!
email.verify.intro=Thank you for using CoreWing. We received your verification request. Please use the following verification code to complete the operation:
email.verify.code.label=Verification Code
email.verify.notice.title=Important Notice
email.verify.notice.content=The verification code is valid for 5 minutes. Please do not share it with others
email.verify.security.tips=If this was not you, you can safely ignore this email. Your account is still secure.
email.verify.support.tips=If you have any questions, feel free to contact our support team.
email.footer.notice=This is an automated email. Please do not reply directly
email.footer.copyright=© 2025 CoreWing · All Rights Reserved
# ==================== SMS Template ====================
sms.verify.code.template=[CoreWing] Your verification code is {0}, valid for 5 minutes. Do not share with others!
sms.result.success=Sent successfully
sms.result.password.error=Password error
sms.result.account.not.exist=Account does not exist
sms.result.balance.insufficient=Insufficient balance
sms.result.account.expired=Account has expired
sms.result.ip.restricted=IP address restricted
sms.result.sensitive.word=Content contains sensitive words
sms.result.phone.incorrect=Incorrect phone number
sms.result.unknown.error=Unknown error
# ==================== DingTalk Push ====================
dingtalk.feedback.title=📢 New User Feedback
dingtalk.feedback.header=### 📢 New User Feedback
dingtalk.feedback.user.id=**User ID:**
dingtalk.feedback.user.anonymous=Anonymous User
dingtalk.feedback.type=**Feedback Type:**
dingtalk.feedback.title.label=**Title:**
dingtalk.feedback.content.label=**Description:**
dingtalk.feedback.contact=**Contact:**
dingtalk.feedback.submit.ip=**Submit IP:**
dingtalk.feedback.submit.region=**IP Location:**
dingtalk.feedback.submit.time=**Submit Time:**
dingtalk.feedback.footer=> Please handle user feedback promptly!
# DingTalk Log Messages (Optional)
dingtalk.webhook.not.configured=DingTalk Webhook not configured, skipping message push
dingtalk.text.send.failed=Failed to send DingTalk text message: {0}
dingtalk.markdown.send.failed=Failed to send DingTalk Markdown message: {0}
dingtalk.sign.mode=Using signature mode, timestamp: {0}
dingtalk.send.message=Sending DingTalk message: {0}
dingtalk.push.success=DingTalk message pushed successfully, response: {0}
dingtalk.push.failed=DingTalk message push failed, HTTP status code: {0}, response: {1}
dingtalk.push.exception=DingTalk message push exception: {0}

View File

@@ -0,0 +1,118 @@
# ===================================
# CoreWing 国际化资源文件 - 中文
# ===================================
# ==================== 通用消息 ====================
common.success=操作成功
common.error=操作失败
# ==================== 用户模块 ====================
# 用户Controller
user.code.send.success=验证码发送成功
user.code.send.failed=验证码发送失败
user.login.success=登录成功
user.register.success=注册成功
user.logout.success=登出成功
user.not.found=用户不存在
user.update.success=更新成功
user.update.failed=更新失败
user.password.old.incorrect=原密码错误
user.password.update.success=密码修改成功
# 用户Service异常
error.user.not.found=用户不存在
error.password.incorrect=密码错误
error.account.disabled=账号已被禁用
error.username.exists=用户名已存在
error.email.or.phone.required=邮箱和手机号至少填写一个
error.email.exists=邮箱已被使用
error.phone.exists=手机号已被使用
error.verify.code.invalid=验证码错误或已过期
# ==================== 验证码模块 ====================
error.account.empty=账号不能为空
error.verify.type.empty=验证码类型不能为空
error.account.format.invalid=请输入正确的手机号或邮箱
error.sms.send.failed=短信发送失败,请稍后重试
error.email.send.failed=邮件发送失败,请稍后重试
# ==================== 反馈模块 ====================
# 反馈Controller
feedback.submit.success=反馈提交成功
feedback.submit.failed=反馈提交失败
feedback.not.found=反馈不存在
feedback.status.update.success=状态更新成功
feedback.status.update.failed=状态更新失败
feedback.delete.success=删除成功
feedback.delete.failed=删除失败
feedback.dingtalk.test.message=测试消息
feedback.dingtalk.test.success=钉钉推送测试成功,请检查钉钉群消息
feedback.dingtalk.test.failed=钉钉推送测试失败,请检查配置和日志
feedback.dingtalk.test.error=测试异常: {0}
# 反馈Service异常
error.feedback.user.id.empty=用户ID不能为空
error.feedback.id.empty=反馈ID不能为空
error.feedback.status.empty=状态不能为空
# ==================== 全局异常处理 ====================
error.token.missing=未提供登录凭证
error.token.invalid=登录凭证无效
error.token.expired=登录已过期,请重新登录
error.token.replaced=账号已在其他地方登录
error.token.kicked.out=账号已被踢下线
error.not.login=未登录,请先登录
error.server.internal=服务器内部错误:{0}
# ==================== 工具类 ====================
# Redis工具类
error.redis.increment.positive=递增因子必须大于0
error.redis.decrement.positive=递减因子必须大于0
# ==================== 邮件模板 ====================
email.subject.verify.code=【CoreWing】验证码
email.greeting=Hi你好
email.verify.intro=感谢使用 CoreWing。我们收到了你的验证请求请使用以下验证码完成操作
email.verify.code.label=验证码
email.verify.notice.title=重要提示
email.verify.notice.content=验证码 5 分钟内有效,请勿泄露给他人
email.verify.security.tips=如果这不是你本人的操作,可以直接忽略这封邮件,你的账号仍然是安全的。
email.verify.support.tips=有任何问题都可以联系我们的客服团队。
email.footer.notice=这是一封自动发送的邮件,请不要直接回复
email.footer.copyright=© 2025 CoreWing · 保留所有权利
# ==================== 短信模板 ====================
sms.verify.code.template=【CoreWing】您的验证码是{0}5分钟内有效。请勿泄露给他人
sms.result.success=发送成功
sms.result.password.error=密码错误
sms.result.account.not.exist=账号不存在
sms.result.balance.insufficient=余额不足
sms.result.account.expired=账户已过期
sms.result.ip.restricted=IP地址限制
sms.result.sensitive.word=内容含有敏感词
sms.result.phone.incorrect=手机号码不正确
sms.result.unknown.error=未知错误
# ==================== 钉钉推送 ====================
dingtalk.feedback.title=📢 新的用户反馈
dingtalk.feedback.header=### 📢 新的用户反馈
dingtalk.feedback.user.id=**用户ID**
dingtalk.feedback.user.anonymous=匿名用户
dingtalk.feedback.type=**问题类型:**
dingtalk.feedback.title.label=**问题标题:**
dingtalk.feedback.content.label=**问题描述:**
dingtalk.feedback.contact=**联系方式:**
dingtalk.feedback.submit.ip=**提交IP**
dingtalk.feedback.submit.region=**IP归属地**
dingtalk.feedback.submit.time=**提交时间:**
dingtalk.feedback.footer=> 请及时处理用户反馈!
# 钉钉日志消息(可选)
dingtalk.webhook.not.configured=钉钉 Webhook 未配置,跳过消息推送
dingtalk.text.send.failed=发送钉钉文本消息失败: {0}
dingtalk.markdown.send.failed=发送钉钉 Markdown 消息失败: {0}
dingtalk.sign.mode=使用加签模式timestamp: {0}
dingtalk.send.message=发送钉钉消息: {0}
dingtalk.push.success=钉钉消息推送成功, 响应: {0}
dingtalk.push.failed=钉钉消息推送失败, HTTP 状态码: {0}, 响应: {1}
dingtalk.push.exception=钉钉消息推送异常: {0}