[Improvement] Sku: support i18n (#439)

This commit is contained in:
neverland
2017-12-15 15:38:32 +08:00
committed by GitHub
parent 2db9b12816
commit f43b496333
13 changed files with 846 additions and 507 deletions
+33
View File
@@ -93,5 +93,38 @@ export default {
vanAddressList: {
address: 'Address',
add: 'Add new address'
},
vanSku: {
unavailable: 'The product is no longer available for purchase',
spec: 'Please select the full specification',
least: 'Choose at least one',
quota: quota => `Buy up to ${quota} items`,
inventory: 'Inventory shortage',
purchase: count => `You have purchased ${count} items`
},
vanSkuActions: {
cart: 'Add to cart',
buy: 'Buy'
},
vanSkuMessages: {
fill: 'Please fill',
number: 'Please fill in the correct number format message',
email: 'Please fill in the correct email message',
idcard: 'Please fill in the correct ID number message',
overlimit: 'not more than 200 words',
placeholder: {
'id_no': 'Idcard Number',
text: 'Text',
tel: 'Number',
email: 'Email',
date: 'Date',
time: 'Time',
textarea: 'Text'
}
},
vanSkuStepper: {
title: 'Quantity',
remain: count => `Remain ${count} items`,
quota: quota => `Buy up to ${quota} items`
}
};
+33
View File
@@ -97,5 +97,38 @@ export default {
vanAddressList: {
address: '收货地址',
add: '新增收货地址'
},
vanSku: {
unavailable: '商品已经无法购买啦',
spec: '请选择完整的规格',
least: '至少选择一件',
quota: quota => `限购${quota}`,
inventory: '库存不足',
purchase: count => `您已购买${count}`
},
vanSkuActions: {
cart: '加入购物车',
buy: '立即购买'
},
vanSkuMessages: {
fill: '请填写',
number: '请填写正确的数字格式留言',
email: '请填写正确的邮箱',
'id_no': '请填写正确的身份证号码',
overlimit: '写的太多了,不要超过200字',
placeholder: {
'id_no': '输入18位身份证号码',
text: '输入文本',
tel: '输入数字',
email: '输入邮箱',
date: '点击选择日期',
time: '点击选择时间',
textarea: '点击填写段落文本'
}
},
vanSkuStepper: {
title: '购买数量',
remain: count => `剩余${count}`,
quota: quota => `每人限购${quota}`
}
};