| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
;(function (global, factory) { |
| 7 |
typeof exports === 'object' && typeof module !== 'undefined' |
| 8 |
&& typeof require === 'function' ? factory(require('../moment')) : |
| 9 |
typeof define === 'function' && define.amd ? define(['../moment'], factory) : |
| 10 |
factory(global.moment) |
| 11 |
}(this, (function (moment) { 'use strict'; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
var vi = moment.defineLocale('vi', { |
| 16 |
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( |
| 17 |
'_' |
| 18 |
), |
| 19 |
monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split( |
| 20 |
'_' |
| 21 |
), |
| 22 |
monthsParseExact: true, |
| 23 |
weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( |
| 24 |
'_' |
| 25 |
), |
| 26 |
weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), |
| 27 |
weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), |
| 28 |
weekdaysParseExact: true, |
| 29 |
meridiemParse: /sa|ch/i, |
| 30 |
isPM: function (input) { |
| 31 |
return /^ch$/i.test(input); |
| 32 |
}, |
| 33 |
meridiem: function (hours, minutes, isLower) { |
| 34 |
if (hours < 12) { |
| 35 |
return isLower ? 'sa' : 'SA'; |
| 36 |
} else { |
| 37 |
return isLower ? 'ch' : 'CH'; |
| 38 |
} |
| 39 |
}, |
| 40 |
longDateFormat: { |
| 41 |
LT: 'HH:mm', |
| 42 |
LTS: 'HH:mm:ss', |
| 43 |
L: 'DD/MM/YYYY', |
| 44 |
LL: 'D MMMM [năm] YYYY', |
| 45 |
LLL: 'D MMMM [năm] YYYY HH:mm', |
| 46 |
LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', |
| 47 |
l: 'DD/M/YYYY', |
| 48 |
ll: 'D MMM YYYY', |
| 49 |
lll: 'D MMM YYYY HH:mm', |
| 50 |
llll: 'ddd, D MMM YYYY HH:mm', |
| 51 |
}, |
| 52 |
calendar: { |
| 53 |
sameDay: '[Hôm nay lúc] LT', |
| 54 |
nextDay: '[Ngày mai lúc] LT', |
| 55 |
nextWeek: 'dddd [tuần tới lúc] LT', |
| 56 |
lastDay: '[Hôm qua lúc] LT', |
| 57 |
lastWeek: 'dddd [tuần trước lúc] LT', |
| 58 |
sameElse: 'L', |
| 59 |
}, |
| 60 |
relativeTime: { |
| 61 |
future: '%s tới', |
| 62 |
past: '%s trước', |
| 63 |
s: 'vài giây', |
| 64 |
ss: '%d giây', |
| 65 |
m: 'một phút', |
| 66 |
mm: '%d phút', |
| 67 |
h: 'một giờ', |
| 68 |
hh: '%d giờ', |
| 69 |
d: 'một ngày', |
| 70 |
dd: '%d ngày', |
| 71 |
M: 'một tháng', |
| 72 |
MM: '%d tháng', |
| 73 |
y: 'một năm', |
| 74 |
yy: '%d năm', |
| 75 |
}, |
| 76 |
dayOfMonthOrdinalParse: /\d{1,2}/, |
| 77 |
ordinal: function (number) { |
| 78 |
return number; |
| 79 |
}, |
| 80 |
week: { |
| 81 |
dow: 1, |
| 82 |
doy: 4, |
| 83 |
}, |
| 84 |
}); |
| 85 |
|
| 86 |
return vi; |
| 87 |
|
| 88 |
}))); |