feat: i18n next

This commit is contained in:
chenjiahan
2020-07-05 08:26:58 +08:00
parent 3bc6495b04
commit 0a4c6676ba
16 changed files with 885 additions and 119 deletions
+77
View File
@@ -0,0 +1,77 @@
export default {
name: 'Name',
tel: 'Phone',
save: 'Save',
confirm: 'Confirm',
cancel: 'Cancel',
delete: 'Delete',
complete: 'Complete',
loading: 'Loading...',
telEmpty: 'Please fill in the tel',
nameEmpty: 'Please fill in the name',
nameInvalid: 'Malformed name',
confirmDelete: 'Are you sure you want to delete?',
telInvalid: 'Malformed phone number',
vanCalendar: {
end: 'End',
start: 'Start',
title: 'Calendar',
startEnd: 'Start/End',
weekdays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
monthTitle: (year: number, month: number) => `${year}/${month}`,
rangePrompt: (maxRange: number) => `Choose no more than ${maxRange} days`,
},
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',
},
vanCoupon: {
unlimited: 'Unlimited',
discount: (discount: number) => `${discount * 10}% off`,
condition: (condition: number) => `At least ${condition}`,
},
vanCouponCell: {
title: 'Coupon',
tips: 'No coupons',
count: (count: number) => `You have ${count} coupons`,
},
vanCouponList: {
empty: 'No coupons',
exchange: 'Exchange',
close: 'Close',
enable: 'Available',
disabled: 'Unavailable',
placeholder: 'Coupon code',
},
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',
},
};