diff options
author | paladox <thomasmulhall410@yahoo.com> | 2014-09-06 12:54:30 +0000 |
---|---|---|
committer | Timo Tijhof <krinklemail@gmail.com> | 2014-09-08 01:20:31 +0200 |
commit | 43f46b6c92aaaee0678d6516e799aa8717efda42 (patch) | |
tree | 12d89f45da18e81776916347f4ade4ba448f17b1 /resources/lib/moment/locale/vi.js | |
parent | d1b6cd35d4aa117c454994b4a7896fee8abf17d2 (diff) | |
download | mediawikicore-43f46b6c92aaaee0678d6516e799aa8717efda42.tar.gz mediawikicore-43f46b6c92aaaee0678d6516e799aa8717efda42.zip |
Update Moment.js from 2.8.1 to 2.8.3
Project site
* http://momentjs.com
* https://github.com/moment/moment/
File source
* https://github.com/moment/moment/tree/2.8.3
Changelog
* https://github.com/moment/moment/blob/2.8.3/CHANGELOG.md
Difference between 2.8.1 and 2.8.3
1.8.3
Bugfixes:
* #1801 proper pluralization for Arabic
* #1833 improve spm integration
* #1871 fix zone bug caused by Firefox 24
* #1882 Use hh:mm in Czech
* #1883 Fix 2.8.0 regression in duration as conversions
* #1890 Faster travis builds
* #1892 Faster isBefore/After/Same
* #1848 Fix flaky month diffs
* #1895 Fix 2.8.0 regression in moment.utc with format array
* #1896 Support setting invalid instance locale (noop)
* #1897 Support moment([str]) in addition to moment([int])
1.8.2
Minor bugfixes:
* #1874 use Object.prototype.hasOwnProperty instead of obj.hasOwnProperty (ie8 bug)
* #1873 add duration#toString()
* #1859 better month/weekday names in norwegian
* #1812 meridiem parsing for greek
* #1804 spanish del -> de
* #1800 korean LT improvement
Change-Id: I60595e8ea41e136c7afee12ad3702ecec6dd4aef
Diffstat (limited to 'resources/lib/moment/locale/vi.js')
-rw-r--r-- | resources/lib/moment/locale/vi.js | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/resources/lib/moment/locale/vi.js b/resources/lib/moment/locale/vi.js new file mode 100644 index 000000000000..20e3ffe24e18 --- /dev/null +++ b/resources/lib/moment/locale/vi.js @@ -0,0 +1,62 @@ +// moment.js locale configuration +// locale : vietnamese (vi) +// author : Bang Nguyen : https://github.com/bangnk + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return 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('_'), + 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('_'), + longDateFormat : { + LT : 'HH:mm', + L : 'DD/MM/YYYY', + LL : 'D MMMM [năm] YYYY', + LLL : 'D MMMM [năm] YYYY LT', + LLLL : 'dddd, D MMMM [năm] YYYY LT', + l : 'DD/M/YYYY', + ll : 'D MMM YYYY', + lll : 'D MMM YYYY LT', + llll : 'ddd, D MMM YYYY LT' + }, + calendar : { + sameDay: '[Hôm nay lúc] LT', + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tuần tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [tuần rồi lúc] LT', + sameElse: 'L' + }, + relativeTime : { + future : '%s tới', + past : '%s trước', + s : 'vài giây', + m : 'một phút', + mm : '%d phút', + h : 'một giờ', + hh : '%d giờ', + d : 'một ngày', + dd : '%d ngày', + M : 'một tháng', + MM : '%d tháng', + y : 'một năm', + yy : '%d năm' + }, + ordinal : function (number) { + return number; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); +})); |