277 lines
8.7 KiB
JavaScript
277 lines
8.7 KiB
JavaScript
export const lang = {
|
|
|
|
// 底部选项卡
|
|
tabBar: {
|
|
home: 'index',
|
|
category: 'category',
|
|
cart: 'cart',
|
|
member: 'member',
|
|
},
|
|
|
|
//公共
|
|
common: {
|
|
//语言包名称
|
|
name: '英文',
|
|
mescrollTextInOffset: 'pull to refresh',
|
|
mescrollTextOutOffset: 'Loading...',
|
|
mescrollEmpty: "No data available",
|
|
goodsRecommendTitle: 'Guess you like',
|
|
currencySymbol: '¥',
|
|
submit: 'Submit',
|
|
searchTip: 'Please enter search keywords',
|
|
// version update
|
|
updateTip: 'Update Available',
|
|
updateReady: 'A new version is ready, restart the app now?',
|
|
// network status
|
|
networkLost: 'Network Disconnected',
|
|
networkCheck: 'Please check your network connection',
|
|
// config related
|
|
config: {
|
|
siteJsNotConfigured: 'In the mini-program release environment, the site.js file must be configured, otherwise the default configuration will be used, which affects mini-program custom distribution!'
|
|
},
|
|
// platform detection
|
|
platform: {
|
|
wechatOfficialAccount: 'WeChat Official Account',
|
|
wechatMiniProgram: 'WeChat Mini Program',
|
|
alipayMiniProgram: 'Alipay Mini Program',
|
|
baiduMiniProgram: 'Baidu Mini Program',
|
|
toutiaoMiniProgram: 'Toutiao Mini Program',
|
|
qqMiniProgram: 'QQ Mini Program',
|
|
kuaishouMiniProgram: 'Kuaishou Mini Program',
|
|
jdMiniProgram: 'JD Mini Program',
|
|
miniProgram360: '360 Mini Program',
|
|
xhsMiniProgram: 'Xiaohongshu Mini Program',
|
|
harmonyService: 'Harmony Service',
|
|
app: 'APP',
|
|
pc: 'PC',
|
|
h5: 'H5',
|
|
unknown: 'Unknown Platform',
|
|
},
|
|
},
|
|
|
|
// navigation utility
|
|
navigation: {
|
|
serviceUnavailable: 'Navigation service temporarily unavailable',
|
|
},
|
|
|
|
// 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',
|
|
systemKefu: 'System Customer Service',
|
|
weChatWorkKefu: 'WeChat Work Customer Service',
|
|
},
|
|
|
|
// customer service module
|
|
customerService: {
|
|
openFailed: 'Failed to open customer service',
|
|
wxworkConfigIncomplete: 'WeChat Work configuration incomplete',
|
|
jumpFailed: 'Jump failed, please try again later',
|
|
miniProgramOnly: 'Third-party mini program customer service is only available in WeChat Mini Program',
|
|
linkCopied: 'Link copied, please open in browser',
|
|
customerLinkCopied: 'Customer service link copied',
|
|
noServicePhone: 'No customer service phone number',
|
|
getPhoneFailed: 'Failed to get customer service phone',
|
|
contactCustomerService: 'Contact Customer Service',
|
|
callServiceTip: 'Please contact customer service at {phone}',
|
|
noServiceOffline: 'Sorry, no customer service available, please contact offline',
|
|
configError: 'Customer Service Configuration Error',
|
|
configErrorDetail: 'Configuration errors:\n{errors}',
|
|
tip: 'Tip',
|
|
cannotAddWxwork: 'Cannot add WeChat Work directly, use other methods to contact customer service?',
|
|
onlineUnavailable: 'Online customer service unavailable, call customer service?',
|
|
developing: 'Customer service selection feature under development',
|
|
wxworkNotConfigured: 'WeChat Work customer service not configured',
|
|
serviceUnavailable: 'Customer service temporarily unavailable',
|
|
wxworkLinkNotConfigured: 'WeChat Work link not configured',
|
|
fromFloatButton: 'Inquiry from floating button',
|
|
serviceTypeNotConfigured: 'Customer service type not configured',
|
|
},
|
|
|
|
// WeChat Work JS-SDK
|
|
wxworkJssdk: {
|
|
notLoaded: 'WeChat Work JS-SDK not loaded',
|
|
notInitialized: 'WeChat Work JS-SDK not initialized',
|
|
openUserProfileFailed: 'Failed to open user profile',
|
|
},
|
|
|
|
// 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!',
|
|
},
|
|
|
|
// uniapp utility functions
|
|
uniappUtils: {
|
|
// error tip
|
|
errorTip: 'Error',
|
|
// copy related
|
|
copyTextEmpty: 'Copy text cannot be empty',
|
|
copyTimeout: 'Copy operation timed out, please check relevant permissions and configuration',
|
|
copyTimeoutTitle: 'Copy operation timed out!',
|
|
copyTimeoutReason: 'Reason:',
|
|
wechatClipboardReason1: '1. WeChat Platform -> User Privacy Protection Guidelines -> "Clipboard" feature not added or review not passed;',
|
|
wechatClipboardReason2: '2. WeChat platform has restrictions on clipboard API call frequency',
|
|
copyFailed: 'Copy failed',
|
|
},
|
|
|
|
// http request utility
|
|
http: {
|
|
// base URL not configured
|
|
baseUrlNotConfigured: 'Request domain not configured',
|
|
// domain not in whitelist: {url} is the domain placeholder
|
|
domainNotInList: '{url} is not in the request domain whitelist',
|
|
// request failed: {url} is the domain placeholder
|
|
requestFailed: '{url} request failed. {err}',
|
|
},
|
|
|
|
// share utility
|
|
share: {
|
|
// default share description: {name} is the filename placeholder
|
|
defaultDesc: 'View enterprise file: {name}',
|
|
// Toast messages
|
|
shareSuccess: 'Share successful',
|
|
shareFailed: 'Share failed',
|
|
linkCopied: 'Link copied, paste to share',
|
|
copyFailed: 'Copy failed',
|
|
// WeChat Mini Program share options
|
|
sendToFriend: 'Send to friend',
|
|
shareToTimeline: 'Share to Moments',
|
|
},
|
|
|
|
// platform detection
|
|
platform: {
|
|
wechatOfficialAccount: 'WeChat Official Account',
|
|
wechatMiniProgram: 'WeChat Mini Program',
|
|
alipayMiniProgram: 'Alipay Mini Program',
|
|
baiduMiniProgram: 'Baidu Mini Program',
|
|
toutiaoMiniProgram: 'Toutiao Mini Program',
|
|
qqMiniProgram: 'QQ Mini Program',
|
|
kuaishouMiniProgram: 'Kuaishou Mini Program',
|
|
jdMiniProgram: 'JD Mini Program',
|
|
miniProgram360: '360 Mini Program',
|
|
xhsMiniProgram: 'Xiaohongshu Mini Program',
|
|
harmonyService: 'Harmony Service',
|
|
app: 'APP',
|
|
pc: 'PC',
|
|
h5: 'H5',
|
|
unknown: 'Unknown Platform',
|
|
},
|
|
|
|
// 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',
|
|
// error messages
|
|
deepCloneNotObject: 'obj is not an object!',
|
|
},
|
|
|
|
// 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',
|
|
|
|
loginTips: 'Click to login and enjoy more exciting information',
|
|
toLogin: 'Go to login',
|
|
toGoodsCategoryPage: 'Go shopping',
|
|
|
|
// 订单状态
|
|
waitpay: 'Pending Payment',
|
|
waitsend: 'Pending Shipment',
|
|
waitconfirm: 'Pending Receipt',
|
|
activist: 'After-sales',
|
|
completed: 'Completed',
|
|
|
|
// 购买/购物车
|
|
buy: 'Buy',
|
|
buyNow: 'Buy Now',
|
|
addToCart: 'Add to Cart',
|
|
addToCartSuccess: 'Added to Cart',
|
|
addToCartFail: 'Failed to Add to Cart',
|
|
addToCartFailMax: 'Maximum purchase quantity reached',
|
|
addToCartFailMin: 'Minimum purchase quantity not met',
|
|
addToCartFailStock: 'Insufficient Stock',
|
|
|
|
// 咨询
|
|
consult: 'Consult Now',
|
|
consultSuccess: 'Consultation Successful',
|
|
consultFail: 'Consultation Failed',
|
|
|
|
// 会员相关
|
|
privacyPolicy: 'Privacy Policy',
|
|
registrationAgreement: 'Registration Agreement',
|
|
cancellation: 'Account Cancellation',
|
|
logout: 'Log Out',
|
|
logoutTitle: 'Tip',
|
|
logoutContent: 'Are you sure you want to log out?',
|
|
|
|
// WeChat Map JSSDK
|
|
mapWxJssdk: {
|
|
// error messages
|
|
keyFormatError: 'Invalid key format',
|
|
paramError: 'Request parameter error',
|
|
systemError: 'System error',
|
|
// error message with parameter: {param} is the parameter name
|
|
paramFormatError: 'Invalid {param} parameter format',
|
|
locationParamFormatError: 'Invalid location parameter format',
|
|
keyCannotBeEmpty: 'Key cannot be empty',
|
|
},
|
|
|
|
// Common JS text
|
|
auth: {
|
|
miniProgramConfigError: 'Mini program configuration error',
|
|
},
|
|
|
|
map: {
|
|
openMapFailed: 'Failed to open map, please try again later',
|
|
},
|
|
|
|
unit: {
|
|
piece: 'pc',
|
|
},
|
|
} |