From 96307e411c3b6ead354b6d96ff84200a627d9ed6 Mon Sep 17 00:00:00 2001 From: paladox Date: Mon, 4 Aug 2014 11:13:21 +0000 Subject: Update Moment.js from 2.7.0 to 2.8.1 Project site * http://momentjs.com/ and https://github.com/moment/moment/ File source * https://github.com/moment/moment/blob/2.8.1/moment.js README * https://github.com/moment/moment/blob/2.8.1/readme.md Changelog 1.8.0 changelog * https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4 1.8.1 changelog * https://github.com/moment/moment/blob/2.8.1/CHANGELOG.md difference between 2.7.0 and 2.8.1 incompatible changes * #1761: moments created without a language are no longer following the global language, in case it changes. Only newly created moments take the global language by default. In case you're affected by this, wait, comment on #1797 and wait for a proper reimplementation * #1642: 45 days is no longer "a month" according to humanize, cutoffs for month, and year have changed. Hopefully your code does not depend on a particular answer from humanize (which it shouldn't anyway) * #1784: if you use the human readable English datetime format in a weird way (like storing them in a database) that would break when the format changes you're at risk. * #1785 moment.momentProperties is now an array of properties instead of a hash. If you have a plugin that uses it to make sure cloned moments will retain the plugin-added properties you need to change your code. deprecations (old behavior will be dropped in 3.0) * #1761 lang is renamed to locale , langData -> localeData . Also there is now defineLocale that should be used when creating new locales * #1763 add(unit, value) and subtract(unit, value) are now deprecated. Use add(value, unit) and subtract(value, unit) instead. * #1759 rename duration.toIsoString to duration.toISOString . The js standard library and moment's toISOString follow that convention. new locales * #1789 Tibetan (bo) * #1786 Africaans (af) * #1778 Burmese (my) * #1727 Belarusian (be) bugfixes * #1738 local to zone conversion with keepLocalTime=true * #1642 more accurate humanize performance * #1808 speedup cloning 49x * #1708 speedup creation with Date object features *#1716 moment.relativeTimeThreshold now supports getting the existing threshold locale bugfix * #1784 add comma between day-of-month and year in us-en * #1710 fix lithuanian month name 2.8.1 * bugfix #1813: fix moment().lang([key]) incompatibility Change-Id: Iaffaaa18e08773f8f36e83e918e61a2259f1e2e3 --- resources/lib/moment/lang/vi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources/lib/moment/lang/vi.js') diff --git a/resources/lib/moment/lang/vi.js b/resources/lib/moment/lang/vi.js index 94890b03dc72..3f8f5f5afc0d 100644 --- a/resources/lib/moment/lang/vi.js +++ b/resources/lib/moment/lang/vi.js @@ -1,5 +1,5 @@ -// moment.js language configuration -// language : vietnamese (vi) +// moment.js locale configuration +// locale : vietnamese (vi) // author : Bang Nguyen : https://github.com/bangnk (function (factory) { @@ -11,7 +11,7 @@ factory(window.moment); // Browser global } }(function (moment) { - return moment.lang('vi', { + 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("_"), -- cgit v1.2.3