wny d293047164
sku组件增加库存文案配置和自定义validator的配置 (#1732)
sku留言增加手机号类型的简单校验
customStepperConfig中新增stockFormatter参数来自定义剩余库存文案
新增customSkuValidator参数来做规格未选择完整时的自定义错误文案配置
2018-08-30 23:19:44 +08:00

113 lines
2.9 KiB
JavaScript
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.

export default {
name: 'Name',
tel: 'Phone',
save: 'Save',
confirm: 'Confirm',
cancel: 'Cancel',
delete: 'Delete',
complete: 'Complete',
loadingTip: 'Loading...',
telEmpty: 'Please fill in the tel',
nameEmpty: 'Please fill in the name',
confirmDelete: 'Are you sure you want to delete?',
telInvalid: 'Malformed phone number',
vanContactCard: {
addText: 'Add contact info'
},
vanContactList: {
addText: 'Add new contact'
},
vanPagination: {
prev: 'Previous',
next: 'Next'
},
vanPullRefresh: {
pulling: 'Pull to refresh...',
loosing: 'Loose to refresh...'
},
vanSubmitBar: {
label: 'Total'
},
vanCouponCell: {
title: 'Coupon',
tips: 'Select coupon',
count: count => `You have ${count} offers`
},
vanCouponList: {
empty: 'No coupons',
exchange: 'Exchange',
close: 'Close',
enable: 'Available',
disabled: 'Unavailable',
placeholder: 'Coupon code'
},
vanCouponItem: {
valid: 'Valid',
unlimited: 'Unlimited',
discount: discount => `${discount * 10}% off`,
condition: condition => `At least ${condition}`
},
vanAddressEdit: {
area: 'Area',
postal: 'Postal',
areaEmpty: 'Please select a receiving area',
addressEmpty: 'Address can not be empty',
postalEmpty: 'Wrong postal code',
defaultAddress: 'Set as the default address',
telPlaceholder: 'Phone',
namePlaceholder: 'Name',
areaPlaceholder: 'Area'
},
vanAddressEditDetail: {
label: 'Address',
placeholder: 'Address'
},
vanAddressList: {
add: 'Add new address'
},
vanSku: {
unavailable: 'The product is no longer available for purchase',
spec: 'Please select the goods 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',
upload: 'Please upload',
number: 'Please fill in the correct number format message',
mobile: 'The length of mobile number must be 6 to 12',
email: 'Please fill in the correct email message',
id_no: 'Please fill in the correct ID number message',
onePic: 'only one picture',
placeholder: {
id_no: 'Idcard Number',
text: 'Text',
tel: 'Number',
email: 'Email',
date: 'Date',
time: 'Time',
textarea: 'Text'
}
},
vanSkuImgUploader: {
or: 'Or',
uploading: 'Uploading...',
rephoto: 'Take Again',
photo: 'Take',
reselect: 'Reselect',
select: 'Select Photo',
maxSize: maxSize => `The upload limit is up to ${maxSize}MBplease try to compress the photo`
},
vanSkuStepper: {
title: 'Quantity',
remain: count => `Remain ${count} items`,
quota: quota => `Buy up to ${quota} items`
}
};