vant/src/sku/lang.ts
2019-08-21 10:42:28 +08:00

53 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Sku only provide zh-CN lang by default
*/
export default {
'zh-CN': {
vanSku: {
select: '选择',
selected: '已选',
selectSku: '请先选择商品规格',
soldout: '库存不足',
originPrice: '原价',
minusTip: '至少选择一件',
unavailable: '商品已经无法购买啦',
stock: (stock: number) => `剩余 ${stock}`,
quotaLimit: (quota: number) => `每人限购${quota}`,
quotaCount: (count: number) => `你已购买${count}`
},
vanSkuActions: {
buy: '立即购买',
addCart: '加入购物车'
},
vanSkuImgUploader: {
oversize: (maxSize: number) => `最大可上传图片为${maxSize}MB请尝试压缩图片尺寸`,
fail: '上传失败<br />重新上传'
},
vanSkuStepper: {
num: '购买数量'
},
vanSkuMessages: {
fill: '请填写',
upload: '请上传',
imageLabel: '仅限一张',
invalid: {
tel: '请填写正确的数字格式留言',
mobile: '手机号长度为6-20位数字',
email: '请填写正确的邮箱',
id_no: '请填写正确的身份证号码'
},
placeholder: {
id_no: '输入身份证号码',
text: '输入文本',
tel: '输入数字',
email: '输入邮箱',
date: '点击选择日期',
time: '点击选择时间',
textarea: '点击填写段落文本',
mobile: '输入手机号码'
}
}
}
};