From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/moment/src/locale/ja.js | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'node_modules/moment/src/locale/ja.js') diff --git a/node_modules/moment/src/locale/ja.js b/node_modules/moment/src/locale/ja.js index 5fffc83e0..9812a7363 100644 --- a/node_modules/moment/src/locale/ja.js +++ b/node_modules/moment/src/locale/ja.js @@ -16,11 +16,11 @@ export default moment.defineLocale('ja', { L : 'YYYY/MM/DD', LL : 'YYYY年M月D日', LLL : 'YYYY年M月D日 HH:mm', - LLLL : 'YYYY年M月D日 HH:mm dddd', + LLLL : 'YYYY年M月D日 dddd HH:mm', l : 'YYYY/MM/DD', ll : 'YYYY年M月D日', lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日 HH:mm dddd' + llll : 'YYYY年M月D日(ddd) HH:mm' }, meridiemParse: /午前|午後/i, isPM : function (input) { @@ -36,9 +36,21 @@ export default moment.defineLocale('ja', { calendar : { sameDay : '[今日] LT', nextDay : '[明日] LT', - nextWeek : '[来週]dddd LT', + nextWeek : function (now) { + if (now.week() < this.week()) { + return '[来週]dddd LT'; + } else { + return 'dddd LT'; + } + }, lastDay : '[昨日] LT', - lastWeek : '[前週]dddd LT', + lastWeek : function (now) { + if (this.week() < now.week()) { + return '[先週]dddd LT'; + } else { + return 'dddd LT'; + } + }, sameElse : 'L' }, dayOfMonthOrdinalParse : /\d{1,2}日/, @@ -56,6 +68,7 @@ export default moment.defineLocale('ja', { future : '%s後', past : '%s前', s : '数秒', + ss : '%d秒', m : '1分', mm : '%d分', h : '1時間', -- cgit v1.2.3