mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 01:58:05 +08:00
FIX: force date-picker to work with english locale
This commit is contained in:
13
lib/javascripts/moment_locale/vi.js
Normal file → Executable file
13
lib/javascripts/moment_locale/vi.js
Normal file → Executable file
@ -13,9 +13,22 @@
|
||||
var vi = moment.defineLocale('vi', {
|
||||
months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
|
||||
monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
|
||||
monthsParseExact : true,
|
||||
weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
|
||||
weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
|
||||
weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
|
||||
weekdaysParseExact : true,
|
||||
meridiemParse: /sa|ch/i,
|
||||
isPM : function (input) {
|
||||
return /^ch$/i.test(input);
|
||||
},
|
||||
meridiem : function (hours, minutes, isLower) {
|
||||
if (hours < 12) {
|
||||
return isLower ? 'sa' : 'SA';
|
||||
} else {
|
||||
return isLower ? 'ch' : 'CH';
|
||||
}
|
||||
},
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
|
Reference in New Issue
Block a user