refactor: 完成多语言国际化全量替换与补充
1. 新增大量中英文语言包文件,覆盖自定义组件、页面、工具类的文案 2. 替换硬编码文本为多语言调用,统一全局文案管理 3. 优化语言包结构,拆分公共模块与业务模块 4. 修复部分语言加载与国际化适配问题
This commit is contained in:
@@ -18,7 +18,40 @@ export const lang = {
|
||||
goodsRecommendTitle: 'Guess you like',
|
||||
currencySymbol: '¥',
|
||||
submit: 'Submit',
|
||||
searchTip: 'Please enter search keywords'
|
||||
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
|
||||
@@ -58,6 +91,7 @@ export const lang = {
|
||||
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
|
||||
@@ -153,6 +187,8 @@ export const lang = {
|
||||
weekThursday: 'Thu',
|
||||
weekFriday: 'Fri',
|
||||
weekSaturday: 'Sat',
|
||||
// error messages
|
||||
deepCloneNotObject: 'obj is not an object!',
|
||||
},
|
||||
|
||||
// AI service
|
||||
@@ -215,11 +251,6 @@ export const lang = {
|
||||
logoutTitle: 'Tip',
|
||||
logoutContent: 'Are you sure you want to log out?',
|
||||
|
||||
// navigation utility
|
||||
navigation: {
|
||||
serviceUnavailable: 'Navigation service temporarily unavailable',
|
||||
},
|
||||
|
||||
// WeChat Map JSSDK
|
||||
mapWxJssdk: {
|
||||
// error messages
|
||||
|
||||
Reference in New Issue
Block a user