diff options
Diffstat (limited to 'resources/lib/moment/locale/zh-cn.js')
-rw-r--r-- | resources/lib/moment/locale/zh-cn.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/resources/lib/moment/locale/zh-cn.js b/resources/lib/moment/locale/zh-cn.js index a11589869da3..c14ca47cac9e 100644 --- a/resources/lib/moment/locale/zh-cn.js +++ b/resources/lib/moment/locale/zh-cn.js @@ -2,6 +2,7 @@ //! locale : Chinese (China) [zh-cn] //! author : suupic : https://github.com/suupic //! author : Zeno Zeng : https://github.com/zenozeng +//! author : uu109 : https://github.com/uu109 ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' @@ -67,9 +68,21 @@ calendar: { sameDay: '[今天]LT', nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + return '[下]dddLT'; + } else { + return '[本]dddLT'; + } + }, lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', + lastWeek: function (now) { + if (this.week() !== now.week()) { + return '[上]dddLT'; + } else { + return '[本]dddLT'; + } + }, sameElse: 'L', }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, @@ -99,6 +112,8 @@ hh: '%d 小时', d: '1 天', dd: '%d 天', + w: '1 周', + ww: '%d 周', M: '1 个月', MM: '%d 个月', y: '1 年', |