docs(i18n): update request failed error prompt to include error info
add {err} placeholder to both en-us and zh-cn language packs for request failed error message, also fix indentation consistency in zh-cn common.js
This commit is contained in:
@@ -131,7 +131,7 @@ export const lang = {
|
|||||||
// domain not in whitelist: {url} is the domain placeholder
|
// domain not in whitelist: {url} is the domain placeholder
|
||||||
domainNotInList: '{url} is not in the request domain whitelist',
|
domainNotInList: '{url} is not in the request domain whitelist',
|
||||||
// request failed: {url} is the domain placeholder
|
// request failed: {url} is the domain placeholder
|
||||||
requestFailed: '{url} request failed',
|
requestFailed: '{url} request failed. {err}',
|
||||||
},
|
},
|
||||||
|
|
||||||
// share utility
|
// share utility
|
||||||
|
|||||||
@@ -8,52 +8,52 @@ export const lang = {
|
|||||||
member: '个人中心'
|
member: '个人中心'
|
||||||
},
|
},
|
||||||
|
|
||||||
//公共
|
//公共
|
||||||
common: {
|
common: {
|
||||||
//语言包名称
|
//语言包名称
|
||||||
name: '中文',
|
name: '中文',
|
||||||
mescrollTextInOffset: '下拉刷新',
|
mescrollTextInOffset: '下拉刷新',
|
||||||
mescrollTextOutOffset: '释放更新',
|
mescrollTextOutOffset: '释放更新',
|
||||||
mescrollEmpty: "暂无相关数据",
|
mescrollEmpty: "暂无相关数据",
|
||||||
goodsRecommendTitle: '猜你喜欢',
|
goodsRecommendTitle: '猜你喜欢',
|
||||||
currencySymbol: '¥',
|
currencySymbol: '¥',
|
||||||
submit: '提交',
|
submit: '提交',
|
||||||
searchTip: '请输入搜索关键词',
|
searchTip: '请输入搜索关键词',
|
||||||
// 版本更新
|
// 版本更新
|
||||||
updateTip: '更新提示',
|
updateTip: '更新提示',
|
||||||
updateReady: '新版本已经准备好,是否重启应用?',
|
updateReady: '新版本已经准备好,是否重启应用?',
|
||||||
// 网络状态
|
// 网络状态
|
||||||
networkLost: '网络失去链接',
|
networkLost: '网络失去链接',
|
||||||
networkCheck: '请检查网络链接',
|
networkCheck: '请检查网络链接',
|
||||||
// 配置相关
|
// 配置相关
|
||||||
config: {
|
config: {
|
||||||
siteJsNotConfigured: '小程序发行环境下,必须配置site.js文件,不然将使用默认配置,影响小程序定制分发!'
|
siteJsNotConfigured: '小程序发行环境下,必须配置site.js文件,不然将使用默认配置,影响小程序定制分发!'
|
||||||
},
|
},
|
||||||
// 平台检测
|
// 平台检测
|
||||||
platform: {
|
platform: {
|
||||||
wechatOfficialAccount: '微信公众号',
|
wechatOfficialAccount: '微信公众号',
|
||||||
wechatMiniProgram: '微信小程序',
|
wechatMiniProgram: '微信小程序',
|
||||||
alipayMiniProgram: '支付宝小程序',
|
alipayMiniProgram: '支付宝小程序',
|
||||||
baiduMiniProgram: '百度小程序',
|
baiduMiniProgram: '百度小程序',
|
||||||
toutiaoMiniProgram: '头条小程序',
|
toutiaoMiniProgram: '头条小程序',
|
||||||
qqMiniProgram: 'QQ小程序',
|
qqMiniProgram: 'QQ小程序',
|
||||||
kuaishouMiniProgram: '快手小程序',
|
kuaishouMiniProgram: '快手小程序',
|
||||||
jdMiniProgram: '京东小程序',
|
jdMiniProgram: '京东小程序',
|
||||||
miniProgram360: '360小程序',
|
miniProgram360: '360小程序',
|
||||||
xhsMiniProgram: '小红书小程序',
|
xhsMiniProgram: '小红书小程序',
|
||||||
harmonyService: '鸿蒙元服务',
|
harmonyService: '鸿蒙元服务',
|
||||||
app: 'APP',
|
app: 'APP',
|
||||||
pc: 'PC端',
|
pc: 'PC端',
|
||||||
h5: 'H5',
|
h5: 'H5',
|
||||||
unknown: '未知平台',
|
unknown: '未知平台',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// 导航工具
|
// 导航工具
|
||||||
navigation: {
|
navigation: {
|
||||||
serviceUnavailable: '导航服务暂时不可用',
|
serviceUnavailable: '导航服务暂时不可用',
|
||||||
},
|
},
|
||||||
|
|
||||||
//客服
|
//客服
|
||||||
customer: {
|
customer: {
|
||||||
weChatKefu: '微信客服',
|
weChatKefu: '微信客服',
|
||||||
@@ -131,7 +131,7 @@ export const lang = {
|
|||||||
// 域名不在合法列表中: {url} 为域名占位符
|
// 域名不在合法列表中: {url} 为域名占位符
|
||||||
domainNotInList: '{url}不在request 合法域名列表中',
|
domainNotInList: '{url}不在request 合法域名列表中',
|
||||||
// 请求失败: {url} 为域名占位符
|
// 请求失败: {url} 为域名占位符
|
||||||
requestFailed: '{url}请求失败',
|
requestFailed: '{url}请求失败. {err}',
|
||||||
},
|
},
|
||||||
|
|
||||||
// share 分享工具
|
// share 分享工具
|
||||||
|
|||||||
Reference in New Issue
Block a user