feat: 新增多语言文案与组件国际化适配
本次提交完成了大量多语言相关的新增与优化工作: 1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案 2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包 3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案 4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持 5. 修复企业微信JS-SDK的错误提示文案硬编码问题
This commit is contained in:
@@ -21,6 +21,13 @@ export const lang = {
|
||||
searchTip: 'Please enter search keywords'
|
||||
},
|
||||
|
||||
// diy custom page
|
||||
diy: {
|
||||
networkError: 'Network error, please try again later',
|
||||
noDiyData: 'Custom page data not configured',
|
||||
locationNotAvailable: 'Location not available',
|
||||
},
|
||||
|
||||
//customer service
|
||||
customer: {
|
||||
weChatKefu: 'WeChat Customer Service',
|
||||
@@ -53,6 +60,65 @@ export const lang = {
|
||||
fromFloatButton: 'Inquiry from floating button',
|
||||
},
|
||||
|
||||
// WeChat Work JS-SDK
|
||||
wxworkJssdk: {
|
||||
notInitialized: 'WeChat Work JS-SDK not initialized',
|
||||
},
|
||||
|
||||
// WeChat Channel
|
||||
wechatChannel: {
|
||||
notWechat: 'Current environment is not a WeChat Mini Program',
|
||||
lowVersion: 'WeChat base library version is too low, requires 2.19.2 or above',
|
||||
notSupported: 'Current environment does not support WeChat Channel',
|
||||
missingFields: 'Missing required field: {field}',
|
||||
playFailed: 'WeChat video playback failed!',
|
||||
},
|
||||
|
||||
// util utility functions
|
||||
util: {
|
||||
// upload
|
||||
uploading: 'Uploading image',
|
||||
uploadSuccess: 'Upload successful',
|
||||
uploadFailed: 'Upload failed',
|
||||
// copy
|
||||
copySuccess: 'Copied successfully',
|
||||
// date format
|
||||
dateYear: 'Y',
|
||||
dateMonth: 'M',
|
||||
dateDay: 'D',
|
||||
// week days
|
||||
weekSunday: 'Sun',
|
||||
weekMonday: 'Mon',
|
||||
weekTuesday: 'Tue',
|
||||
weekWednesday: 'Wed',
|
||||
weekThursday: 'Thu',
|
||||
weekFriday: 'Fri',
|
||||
weekSaturday: 'Sat',
|
||||
},
|
||||
|
||||
// AI service
|
||||
aiService: {
|
||||
// WebSocket errors
|
||||
wsDomainInvalid: 'WebSocket domain configuration invalid',
|
||||
wsAuthFailed: 'WebSocket authentication failed',
|
||||
wsConnectionFailed: 'WebSocket connection failed',
|
||||
wsConnectionClosed: 'WebSocket connection closed unexpectedly',
|
||||
// Service errors
|
||||
serviceUnavailable: 'AI service temporarily unavailable, please try again later',
|
||||
serviceResponseError: 'AI service returned an error',
|
||||
invalidResponse: 'Invalid response',
|
||||
// Service status
|
||||
statusNormal: 'Service normal',
|
||||
statusAbnormal: 'Service abnormal',
|
||||
statusCheckFailed: 'Service check failed',
|
||||
// Conversation
|
||||
conversationIdRequired: 'conversation_id is a required parameter',
|
||||
getHistoryFailed: 'Failed to get conversation history',
|
||||
getHistoryError: 'Error getting conversation history, please try again later',
|
||||
// Connection
|
||||
connectionFailed: 'Connection failed',
|
||||
},
|
||||
|
||||
getDynacode: 'Get Code',
|
||||
|
||||
login: 'Login/Register',
|
||||
|
||||
Reference in New Issue
Block a user