Skip to content

Update vi_VN.tsx #5653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions components/locale/vi_VN.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,71 @@ const localeValues: Locale = {
Empty: {
description: 'Trống',
},
Icon: {
icon: 'biểu tượng'
},
Text: {
edit: 'Sửa',
copy: 'Sao chép',
copied: 'Đã sao chép',
expand: 'Mở rộng'
},
PageHeader: {
back: 'Quay lại'
},
Form: {
optional: '(tuỳ chọn)',
defaultValidateMessages: {
default: 'Lỗi xác thực cho trường ${label}',
required: 'Hãy nhập ${label}',
enum: '${label} phải là mộ trong [${enum}]',
whitespace: '${label} không thể là một ký tự trống',
date: {
format: '${label} định dạng ngày không hợp lệ',
parse: '${label} không thể chuyển đổi sang định dạng ngày',
invalid: '${label} là một ngày không hợp lệ',
},
types: {
string: typeTemplate,
method: typeTemplate,
array: typeTemplate,
object: typeTemplate,
number: typeTemplate,
date: typeTemplate,
boolean: typeTemplate,
integer: typeTemplate,
float: typeTemplate,
regexp: typeTemplate,
email: typeTemplate,
url: typeTemplate,
hex: typeTemplate
},
Comment on lines +68 to +82
Copy link
Contributor

@doommm doommm May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tangjinzhou @HadesD hey bro, this pr will cause a compiling error. typeTemplate is not defined.

string: {
len: '${label} phải là ${len} ký tự',
min: '${label} phải có ít nhất ${min} ký tự',
max: '${label} phải có tối đa ${max} ký tự',
range: '${label} phải nằm trong khoảng ${min}-${max} ký tự'
},
number: {
len: '${label} phải bằng ${len}',
min: '${label} phải tối thiểu là ${min}',
max: '${label} phải tối đa là ${max}',
range: '${label} phải nằm trong khoảng từ ${min}-${max}'
},
array: {
len: 'Phải là ${len} ${label}',
min: 'Tối thiểu ${min} ${label}',
max: 'Tối đa ${max} ${label}',
range: 'Số lượng ${label} phải nằm trong khoảng ${min}-${max}'
},
pattern: {
mismatch: '${label} không khớp với mẫu ${pattern}'
},
},
},
Image: {
preview: 'Xem trước'
}
};

export default localeValues;