Compare commits

...

3 Commits

Author SHA1 Message Date
chenjiahan
b42e674042 docs(changelog): 2.12.47 2022-04-07 16:46:42 +08:00
chenjiahan
001667b0fe chore: release 2.12.47 2022-04-07 16:45:38 +08:00
药玄灵
3dc99a30a3
feat: update locale(add vi-VN) (#10477)
Co-authored-by: dean <zhu.xuefeng@idcm.io>
2022-04-07 16:38:57 +08:00
6 changed files with 100 additions and 1 deletions

View File

@ -16,6 +16,14 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
## Details
### [v2.12.47](https://github.com/youzan/vant/compare/v2.12.46...v2.12.47)
`2022-04-07`
**Feature**
- Locale: add vi-VN lang [#10477](https://github.com/youzan/vant/issues/10477)
### [v2.12.46](https://github.com/youzan/vant/compare/v2.12.45...v2.12.46)
`2022-03-30`

View File

@ -22,6 +22,14 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
## 更新内容
### [v2.12.47](https://github.com/youzan/vant/compare/v2.12.46...v2.12.47)
`2022-04-07`
**Feature**
- Locale: 新增 vi-VN 越南语 [#10477](https://github.com/youzan/vant/issues/10477)
### [v2.12.46](https://github.com/youzan/vant/compare/v2.12.45...v2.12.46)
`2022-03-30`

View File

@ -1,6 +1,6 @@
{
"name": "vant",
"version": "2.12.46",
"version": "2.12.47",
"description": "Mobile UI Components built on Vue",
"main": "lib/index.js",
"module": "es/index.js",

View File

@ -54,6 +54,7 @@ Current supported languages:
| Turkish | tr-TR |
| Thai | th-TH |
| French | fr-FR |
| Vietnamese | vi-VN |
> View all language configs [Here](https://github.com/youzan/vant/tree/2.x/src/locale/lang).

View File

@ -55,6 +55,7 @@ Locale.add(messages);
| 挪威语 | nb-NO |
| 泰语 | th-TH |
| 法语 | fr-FR |
| 越南语 | vi-VN |
> 在 [这里](https://github.com/youzan/vant/tree/2.x/src/locale/lang) 查看所有的语言包源文件。

81
src/locale/lang/vi-VN.ts Normal file
View File

@ -0,0 +1,81 @@
export default {
name: 'Tên',
tel: 'điện thoại',
save: 'tiết kiệm',
confirm: 'xác nhận',
cancel: 'Hủy bỏ',
delete: 'xóa bỏ',
complete: 'Hoàn thành',
loading: 'Đang tải...',
telEmpty: 'Vui lòng điền số điện thoại',
nameEmpty: 'vui lòng điền tên',
nameInvalid: 'Vui lòng nhập tên chính xác',
confirmDelete: 'Bạn có chắc chắn muốn xóa',
telInvalid: 'Vui lòng nhập số điện thoại chính xác',
vanCalendar: {
end: 'chấm dứt',
start: 'Bắt đầu',
title: 'chọn ngày',
confirm: 'Đảm bảo',
startEnd: 'bắt đầu / kết thúc',
weekdays: ['Chủ nhật','Thứ Hai','Thứ Ba','Thứ Tư','Thứ Năm','Thứ Sáu','Thứ Bảy'],
monthTitle: (year: number, month: number) => `${year} năm ${month} tháng`,
rangePrompt: (maxRange: number) => `Các ngày được chọn không được vượt quá ${maxRange} ngày`,
},
vanCascader: {
select: 'Xin hãy lựa chọn',
},
vanContactCard: {
addText: 'Thêm địa chỉ liên hệ',
},
vanContactList: {
addText: 'Địa chỉ liên lạc mới',
},
vanPagination: {
prev: 'trang trước',
next: 'trang sau',
},
vanPullRefresh: {
pulling: 'Kéo xuống để làm mới...',
loosing: 'Phát hành để làm mới...',
},
vanSubmitBar: {
label: 'toàn bộ:',
},
vanCoupon: {
unlimited: 'Không có ngưỡng sử dụng',
discount: (discount: number) => `${discount} Chiết khấu`,
condition: (condition: number) => `Có sẵn sau khi chi tiêu ${condition} nhân dân tệ`,
},
vanCouponCell: {
title: 'phiếu giảm giá',
tips: 'Chưa có',
count: (count: number) => `${count} trang tính khả dụng`,
},
vanCouponList: {
empty: 'Chưa có phiếu giảm giá',
exchange: 'trao đổi',
close: 'Không sử dụng phiếu giảm giá',
enable: 'Có sẵn',
disabled: 'không có sẵn',
placeholder: 'Vui lòng nhập mã khuyến mãi',
},
vanAddressEdit: {
area: 'vùng',
postal: 'mã bưu điện',
areaEmpty: 'vui lòng chọn khu vực',
addressEmpty: 'Vui lòng điền vào địa chỉ chi tiết',
postalEmpty: 'Định dạng mã zip không chính xác',
defaultAddress: 'đặt làm địa chỉ giao hàng mặc định',
telPlaceholder: 'Số điện thoại của người nhận hàng',
namePlaceholder: 'Tên người nhận hàng',
areaPlaceholder: 'Chọn Tỉnh / Thành phố / Quận / Huyện',
},
vanAddressEditDetail: {
label: 'Địa chỉ chi tiết',
placeholder: 'Số đường phố, số phòng tầng, v.v.',
},
vanAddressList: {
add: 'Thêm địa chỉ',
},
};