diff options
author | paladox <thomasmulhall410@yahoo.com> | 2014-08-04 11:13:21 +0000 |
---|---|---|
committer | Jdlrobson <jrobson@wikimedia.org> | 2014-08-15 17:05:51 +0000 |
commit | 96307e411c3b6ead354b6d96ff84200a627d9ed6 (patch) | |
tree | 36db2c92034b5e4382d4395f61323c07a668452d /resources/lib/moment/lang/zh-tw.js | |
parent | b061c276b59325e2cdb2004ef306cb3553fa69c0 (diff) | |
download | mediawikicore-96307e411c3b6ead354b6d96ff84200a627d9ed6.tar.gz mediawikicore-96307e411c3b6ead354b6d96ff84200a627d9ed6.zip |
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
Diffstat (limited to 'resources/lib/moment/lang/zh-tw.js')
-rw-r--r-- | resources/lib/moment/lang/zh-tw.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/lib/moment/lang/zh-tw.js b/resources/lib/moment/lang/zh-tw.js index bbb07376eaeb..edb1fb9879cd 100644 --- a/resources/lib/moment/lang/zh-tw.js +++ b/resources/lib/moment/lang/zh-tw.js @@ -1,5 +1,5 @@ -// moment.js language configuration -// language : traditional chinese (zh-tw) +// moment.js locale configuration +// locale : traditional chinese (zh-tw) // author : Ben : https://github.com/ben-lin (function (factory) { @@ -11,7 +11,7 @@ factory(window.moment); // Browser global } }(function (moment) { - return moment.lang('zh-tw', { + return moment.defineLocale('zh-tw', { months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), |