1 //! moment.js locale configuration
2 //! locale : Vietnamese [vi]
3 //! author : Bang Nguyen : https://github.com/bangnk
5 ;(function (global
, factory
) {
6 typeof exports
=== 'object' && typeof module
!== 'undefined'
7 && typeof require
=== 'function' ? factory(require('../moment')) :
8 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
10 }(this, (function (moment
) { 'use strict';
13 var vi
= moment
.defineLocale('vi', {
14 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('_'),
15 monthsShort
: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
16 monthsParseExact
: true,
17 weekdays
: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18 weekdaysShort
: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19 weekdaysMin
: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20 weekdaysParseExact
: true,
21 meridiemParse
: /sa|ch/i,
22 isPM : function (input
) {
23 return /^ch$/i.test(input
);
25 meridiem : function (hours
, minutes
, isLower
) {
27 return isLower
? 'sa' : 'SA';
29 return isLower
? 'ch' : 'CH';
36 LL
: 'D MMMM [năm] YYYY',
37 LLL
: 'D MMMM [năm] YYYY HH:mm',
38 LLLL
: 'dddd, D MMMM [năm] YYYY HH:mm',
41 lll
: 'D MMM YYYY HH:mm',
42 llll
: 'ddd, D MMM YYYY HH:mm'
45 sameDay
: '[Hôm nay lúc] LT',
46 nextDay
: '[Ngày mai lúc] LT',
47 nextWeek
: 'dddd [tuần tới lúc] LT',
48 lastDay
: '[Hôm qua lúc] LT',
49 lastWeek
: 'dddd [tuần rồi lúc] LT',
67 dayOfMonthOrdinalParse
: /\d{1,2}/,
68 ordinal : function (number
) {
72 dow
: 1, // Monday is the first day of the week.
73 doy
: 4 // The week that contains Jan 4th is the first week of the year.