Skip to content

Commit

Permalink
[l10n] Improve Vietnamese (vi-VN) locale (#14238)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@Admin-PC>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent b4e8bf4 commit 8122b11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
"languageTag": "vi-VN",
"importName": "viVN",
"localeName": "Vietnamese",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/viVN.ts"
}
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/viVN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const viVNPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Bắt đầu',
end: 'Kết thúc',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Ngày bắt đầu',
startTime: 'Thời gian bắt đầu',
endDate: 'Ngày kết thúc',
endTime: 'Thời gian kết thúc',

// Action bar
cancelButtonLabel: 'Hủy',
Expand Down Expand Up @@ -67,7 +67,7 @@ const viVNPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `Chọn giờ, giờ đã chọn là ${utils.format(value, 'fullTime')}`
: 'Chọn giờ',
// fieldClearLabel: 'Clear value',
fieldClearLabel: 'Xóa giá trị',

// Table labels
timeTableLabel: 'chọn giờ',
Expand All @@ -84,17 +84,17 @@ const viVNPickers: Partial<PickersLocaleText<any>> = {
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'Năm',
month: 'Tháng',
day: 'Ngày',
weekDay: 'Thứ',
hours: 'Giờ',
minutes: 'Phút',
seconds: 'Giây',
meridiem: 'Buổi',

// Common
// empty: 'Empty',
empty: 'Trống',
};

export const viVN = getPickersLocalization(viVNPickers);

0 comments on commit 8122b11

Please sign in to comment.