diff --git a/packages/vant/src/contact-card/ContactCard.tsx b/packages/vant/src/contact-card/ContactCard.tsx index 56297914e..c0de1d199 100644 --- a/packages/vant/src/contact-card/ContactCard.tsx +++ b/packages/vant/src/contact-card/ContactCard.tsx @@ -32,7 +32,7 @@ export default defineComponent({ const renderContent = () => { if (props.type === 'add') { - return props.addText || t('addText'); + return props.addText || t('addContact'); } return [ diff --git a/packages/vant/src/contact-card/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/contact-card/test/__snapshots__/demo.spec.ts.snap index 058d0451b..b71809428 100644 --- a/packages/vant/src/contact-card/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/contact-card/test/__snapshots__/demo.spec.ts.snap @@ -9,7 +9,7 @@ exports[`should render demo and match snapshot 1`] = `
- Add contact info + Add contact
diff --git a/packages/vant/src/contact-list/ContactList.tsx b/packages/vant/src/contact-list/ContactList.tsx index da5782b9e..61265d5c2 100644 --- a/packages/vant/src/contact-list/ContactList.tsx +++ b/packages/vant/src/contact-list/ContactList.tsx @@ -100,7 +100,7 @@ export default defineComponent({ block type="danger" class={bem('add')} - text={props.addText || t('addText')} + text={props.addText || t('addContact')} onClick={() => emit('add')} /> diff --git a/packages/vant/src/contact-list/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/contact-list/test/__snapshots__/demo.spec.ts.snap index 84697b7b0..2695dfe09 100644 --- a/packages/vant/src/contact-list/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/contact-list/test/__snapshots__/demo.spec.ts.snap @@ -62,7 +62,7 @@ exports[`should render demo and match snapshot 1`] = ` >
- Add new contact + Add contact
diff --git a/packages/vant/src/contact-list/test/__snapshots__/index.spec.ts.snap b/packages/vant/src/contact-list/test/__snapshots__/index.spec.ts.snap index efdf4727a..6d72b3398 100644 --- a/packages/vant/src/contact-list/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/contact-list/test/__snapshots__/index.spec.ts.snap @@ -39,7 +39,7 @@ exports[`should render ContactList correctly 1`] = ` >
- Add new contact + Add contact
diff --git a/packages/vant/src/locale/lang/de-DE-formal.ts b/packages/vant/src/locale/lang/de-DE-formal.ts index f55c57a63..43ae97020 100644 --- a/packages/vant/src/locale/lang/de-DE-formal.ts +++ b/packages/vant/src/locale/lang/de-DE-formal.ts @@ -8,6 +8,7 @@ export default { loading: 'Laden...', noCoupon: 'Keine Coupons', nameEmpty: 'Bitte geben Sie den Name an', + addContact: 'Neuen Kontakt hinzufügen', telInvalid: 'Ungültige Telefonnummer', vanCalendar: { end: 'Ende', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Wählen', }, - vanContactCard: { - addText: 'Kontaktinformationen hinzufügen', - }, - vanContactList: { - addText: 'Neuen Kontakt hinzufügen', - }, vanPagination: { prev: 'Vorherige', next: 'Nächste', diff --git a/packages/vant/src/locale/lang/de-DE.ts b/packages/vant/src/locale/lang/de-DE.ts index 135554c82..958d284d6 100644 --- a/packages/vant/src/locale/lang/de-DE.ts +++ b/packages/vant/src/locale/lang/de-DE.ts @@ -8,6 +8,7 @@ export default { loading: 'Laden...', noCoupon: 'Keine Coupons', nameEmpty: 'Bitte den Name angeben', + addContact: 'Neuen Kontakt hinzufügen', telInvalid: 'Ungültige Telefonnummer', vanCalendar: { end: 'Ende', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Wählen', }, - vanContactCard: { - addText: 'Kontaktinformationen hinzufügen', - }, - vanContactList: { - addText: 'Neuen Kontakt hinzufügen', - }, vanPagination: { prev: 'Vorherige', next: 'Nächste', diff --git a/packages/vant/src/locale/lang/en-US.ts b/packages/vant/src/locale/lang/en-US.ts index cf91d99af..738b5fe85 100644 --- a/packages/vant/src/locale/lang/en-US.ts +++ b/packages/vant/src/locale/lang/en-US.ts @@ -8,6 +8,7 @@ export default { loading: 'Loading...', noCoupon: 'No coupons', nameEmpty: 'Please fill in the name', + addContact: 'Add contact', telInvalid: 'Malformed phone number', vanCalendar: { end: 'End', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Select', }, - vanContactCard: { - addText: 'Add contact info', - }, - vanContactList: { - addText: 'Add new contact', - }, vanPagination: { prev: 'Previous', next: 'Next', diff --git a/packages/vant/src/locale/lang/es-ES.ts b/packages/vant/src/locale/lang/es-ES.ts index 65abe9121..4834beb07 100644 --- a/packages/vant/src/locale/lang/es-ES.ts +++ b/packages/vant/src/locale/lang/es-ES.ts @@ -8,6 +8,7 @@ export default { loading: 'Cargando...', noCoupon: 'Sin cupones', nameEmpty: 'Por favor rellena el nombre', + addContact: 'Añadi contacto', telInvalid: 'Teléfono inválido', vanCalendar: { end: 'Fin', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Seleccione', }, - vanContactCard: { - addText: 'Añadir información de contacto', - }, - vanContactList: { - addText: 'Añadir nuevo contacto', - }, vanPagination: { prev: 'Anterior', next: 'Siguiente', diff --git a/packages/vant/src/locale/lang/fr-FR.ts b/packages/vant/src/locale/lang/fr-FR.ts index 9ef526951..3d803e909 100644 --- a/packages/vant/src/locale/lang/fr-FR.ts +++ b/packages/vant/src/locale/lang/fr-FR.ts @@ -8,6 +8,7 @@ export default { loading: 'Chargement...', noCoupon: 'Pas de coupons', nameEmpty: 'Veuillez remplir le nom', + addContact: 'Ajouter contact', telInvalid: 'Numéro de téléphone incorrect', vanCalendar: { end: 'Fin', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Sélectionner', }, - vanContactCard: { - addText: 'Ajouter des informations de contact', - }, - vanContactList: { - addText: 'Ajouter un nouveau contact', - }, vanPagination: { prev: 'Précédent', next: 'Suivant', diff --git a/packages/vant/src/locale/lang/ja-JP.ts b/packages/vant/src/locale/lang/ja-JP.ts index b13c8f7c3..1d6327069 100644 --- a/packages/vant/src/locale/lang/ja-JP.ts +++ b/packages/vant/src/locale/lang/ja-JP.ts @@ -8,6 +8,7 @@ export default { loading: '読み込み中...', noCoupon: 'クーポンはありません', nameEmpty: '名前を入力してください', + addContact: '連絡先を追加', telInvalid: '正しい電話番号を入力してください', vanCalendar: { end: '終了', @@ -21,12 +22,6 @@ export default { vanCascader: { select: '選択する', }, - vanContactCard: { - addText: '連絡先を追加', - }, - vanContactList: { - addText: '新しい連絡先を追加', - }, vanPagination: { prev: '前のページ', next: '次のページ', diff --git a/packages/vant/src/locale/lang/ko-KR.ts b/packages/vant/src/locale/lang/ko-KR.ts index b6b2ba793..154f85028 100644 --- a/packages/vant/src/locale/lang/ko-KR.ts +++ b/packages/vant/src/locale/lang/ko-KR.ts @@ -8,6 +8,7 @@ export default { loading: '로딩 중...', noCoupon: '쿠폰 없음', nameEmpty: '이름을 기입해주세요', + addContact: '새 연락처 추가', telInvalid: '잘못된 전화번호', vanCalendar: { end: '끝', @@ -28,12 +29,6 @@ export default { vanCascader: { select: '선택하다', }, - vanContactCard: { - addText: '연락처 정보 추가', - }, - vanContactList: { - addText: '새 연락처 추가', - }, vanPagination: { prev: '이전의', next: '다음', diff --git a/packages/vant/src/locale/lang/nb-NO.ts b/packages/vant/src/locale/lang/nb-NO.ts index 4c6e4259b..c5b7b2020 100644 --- a/packages/vant/src/locale/lang/nb-NO.ts +++ b/packages/vant/src/locale/lang/nb-NO.ts @@ -8,6 +8,7 @@ export default { loading: 'Laster...', noCoupon: 'Ingen kuponger', nameEmpty: 'Vennligst fyll inn navn', + addContact: 'Legg til ny kontakt', telInvalid: 'Ugyldig telefonnummer', vanCalendar: { end: 'Slutt', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Plukke ut', }, - vanContactCard: { - addText: 'Legg til kontakt info', - }, - vanContactList: { - addText: 'Legg til ny kontakt', - }, vanPagination: { prev: 'Forrige', next: 'Neste', diff --git a/packages/vant/src/locale/lang/pt-BR.ts b/packages/vant/src/locale/lang/pt-BR.ts index 04d50f95d..34122e211 100644 --- a/packages/vant/src/locale/lang/pt-BR.ts +++ b/packages/vant/src/locale/lang/pt-BR.ts @@ -8,6 +8,7 @@ export default { loading: 'Carregando...', noCoupon: 'Nenhum cupom', nameEmpty: 'Por favor, preencha o nome', + addContact: 'Adicionar novo contato', telInvalid: 'Telefone em formato inválido', vanCalendar: { end: 'Fim', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Selecione', }, - vanContactCard: { - addText: 'Adicionar informações de contato', - }, - vanContactList: { - addText: 'Adicionar novo contato', - }, vanPagination: { prev: 'Anterior', next: 'Próximo', diff --git a/packages/vant/src/locale/lang/ro-RO.ts b/packages/vant/src/locale/lang/ro-RO.ts index 5b52b02e6..270d7d358 100644 --- a/packages/vant/src/locale/lang/ro-RO.ts +++ b/packages/vant/src/locale/lang/ro-RO.ts @@ -8,6 +8,7 @@ export default { loading: 'Încărcare...', noCoupon: 'Fără cupoane', nameEmpty: 'Te rugăm să completezi numele', + addContact: 'Adaugă contact nou', telInvalid: 'Număr de telefon invalid', vanCalendar: { end: 'Sfârșit', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Selectați', }, - vanContactCard: { - addText: 'Adaugă informațiile de contact', - }, - vanContactList: { - addText: 'Adaugă contact nou', - }, vanPagination: { prev: 'Precedenta', next: 'Urmatoarea', diff --git a/packages/vant/src/locale/lang/ru-RU.ts b/packages/vant/src/locale/lang/ru-RU.ts index 01f7f1884..41774dc0e 100644 --- a/packages/vant/src/locale/lang/ru-RU.ts +++ b/packages/vant/src/locale/lang/ru-RU.ts @@ -8,6 +8,7 @@ export default { loading: 'Загрузка...', noCoupon: 'Нет купонов', nameEmpty: 'Пожалуйста укажите имя', + addContact: 'Создать контакт', telInvalid: 'Некорректный номер телефона', vanCalendar: { end: 'Конец', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Выбрать', }, - vanContactCard: { - addText: 'Добавить информацию', - }, - vanContactList: { - addText: 'Создать контакт', - }, vanPagination: { prev: 'Назад', next: 'Вперед', diff --git a/packages/vant/src/locale/lang/th-TH.ts b/packages/vant/src/locale/lang/th-TH.ts index 2a1ca2e95..1d28aeedf 100644 --- a/packages/vant/src/locale/lang/th-TH.ts +++ b/packages/vant/src/locale/lang/th-TH.ts @@ -8,6 +8,7 @@ export default { loading: 'กำลังโหลด...', noCoupon: 'ไม่มีคูปอง', nameEmpty: 'กรุณากรอกชื่อของคุณ', + addContact: 'เพิ่มผู้ติดต่อ', telInvalid: 'กรุณากรอกหมายเลขโทรศัพท์ที่ถูกต้อง', vanCalendar: { end: 'จบ', @@ -22,12 +23,6 @@ export default { vanCascader: { select: 'โปรดเลือก', }, - vanContactCard: { - addText: 'เพิ่มผู้ติดต่อ', - }, - vanContactList: { - addText: 'รายชื่อติดต่อใหม่', - }, vanPagination: { prev: 'หน้าที่แล้ว', next: 'หน้าต่อไป', diff --git a/packages/vant/src/locale/lang/tr-TR.ts b/packages/vant/src/locale/lang/tr-TR.ts index 30a09a1ac..ee2b52e0b 100644 --- a/packages/vant/src/locale/lang/tr-TR.ts +++ b/packages/vant/src/locale/lang/tr-TR.ts @@ -8,6 +8,7 @@ export default { loading: 'Yükleniyor...', noCoupon: 'Kupon yok', nameEmpty: 'Lütfen isim giriniz', + addContact: 'Yeni kişi ekle', telInvalid: 'Geçersiz tel. numarası', vanCalendar: { end: 'Son', @@ -20,12 +21,6 @@ export default { vanCascader: { select: 'Seçiniz', }, - vanContactCard: { - addText: 'Kişi bilgisi ekle', - }, - vanContactList: { - addText: 'Yeni kişi ekle', - }, vanPagination: { prev: 'Önceki', next: 'Sonraki', diff --git a/packages/vant/src/locale/lang/zh-CN.ts b/packages/vant/src/locale/lang/zh-CN.ts index 32789e3b7..8203f5d73 100644 --- a/packages/vant/src/locale/lang/zh-CN.ts +++ b/packages/vant/src/locale/lang/zh-CN.ts @@ -8,6 +8,7 @@ export default { loading: '加载中...', noCoupon: '暂无优惠券', nameEmpty: '请填写姓名', + addContact: '添加联系人', telInvalid: '请填写正确的电话', vanCalendar: { end: '结束', @@ -21,12 +22,6 @@ export default { vanCascader: { select: '请选择', }, - vanContactCard: { - addText: '添加联系人', - }, - vanContactList: { - addText: '新建联系人', - }, vanPagination: { prev: '上一页', next: '下一页', diff --git a/packages/vant/src/locale/lang/zh-HK.ts b/packages/vant/src/locale/lang/zh-HK.ts index 610fe1c33..851a33aa6 100644 --- a/packages/vant/src/locale/lang/zh-HK.ts +++ b/packages/vant/src/locale/lang/zh-HK.ts @@ -8,6 +8,7 @@ export default { loading: '加載中...', noCoupon: '暫無優惠券', nameEmpty: '請填寫姓名', + addContact: '添加聯系人', telInvalid: '請填寫正確的電話', vanCalendar: { end: '結束', @@ -21,12 +22,6 @@ export default { vanCascader: { select: '請選擇', }, - vanContactCard: { - addText: '添加聯系人', - }, - vanContactList: { - addText: '新建聯系人', - }, vanPagination: { prev: '上一頁', next: '下一頁', diff --git a/packages/vant/src/locale/lang/zh-TW.ts b/packages/vant/src/locale/lang/zh-TW.ts index 714f55ede..04c0f339f 100644 --- a/packages/vant/src/locale/lang/zh-TW.ts +++ b/packages/vant/src/locale/lang/zh-TW.ts @@ -8,6 +8,7 @@ export default { loading: '載入中...', noCoupon: '暫無優惠券', nameEmpty: '請填寫姓名', + addContact: '建立聯絡人', telInvalid: '請填寫正確的電話', vanCalendar: { end: '結束', @@ -21,12 +22,6 @@ export default { vanCascader: { select: '請選擇', }, - vanContactCard: { - addText: '新增聯絡人', - }, - vanContactList: { - addText: '建立聯絡人', - }, vanPagination: { prev: '上一頁', next: '下一頁',