2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2014-08-20 14:41:50 -04:00
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
var ja = moment.defineLocale('ja', {
|
2019-04-26 09:00:57 -04:00
|
|
|
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
|
2018-04-26 03:15:53 -04:00
|
|
|
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
|
|
|
weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
|
|
|
|
weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
|
|
|
|
weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
|
|
|
|
longDateFormat : {
|
|
|
|
LT : 'HH:mm',
|
|
|
|
LTS : 'HH:mm:ss',
|
|
|
|
L : 'YYYY/MM/DD',
|
|
|
|
LL : 'YYYY年M月D日',
|
|
|
|
LLL : 'YYYY年M月D日 HH:mm',
|
|
|
|
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日(ddd) HH:mm'
|
|
|
|
},
|
|
|
|
meridiemParse: /午前|午後/i,
|
|
|
|
isPM : function (input) {
|
|
|
|
return input === '午後';
|
|
|
|
},
|
|
|
|
meridiem : function (hour, minute, isLower) {
|
|
|
|
if (hour < 12) {
|
|
|
|
return '午前';
|
|
|
|
} else {
|
|
|
|
return '午後';
|
|
|
|
}
|
|
|
|
},
|
|
|
|
calendar : {
|
|
|
|
sameDay : '[今日] LT',
|
|
|
|
nextDay : '[明日] LT',
|
|
|
|
nextWeek : function (now) {
|
|
|
|
if (now.week() < this.week()) {
|
|
|
|
return '[来週]dddd LT';
|
|
|
|
} else {
|
|
|
|
return 'dddd LT';
|
|
|
|
}
|
|
|
|
},
|
|
|
|
lastDay : '[昨日] LT',
|
|
|
|
lastWeek : function (now) {
|
|
|
|
if (this.week() < now.week()) {
|
|
|
|
return '[先週]dddd LT';
|
|
|
|
} else {
|
|
|
|
return 'dddd LT';
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sameElse : 'L'
|
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse : /\d{1,2}日/,
|
|
|
|
ordinal : function (number, period) {
|
|
|
|
switch (period) {
|
|
|
|
case 'd':
|
|
|
|
case 'D':
|
|
|
|
case 'DDD':
|
|
|
|
return number + '日';
|
|
|
|
default:
|
|
|
|
return number;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
relativeTime : {
|
|
|
|
future : '%s後',
|
|
|
|
past : '%s前',
|
|
|
|
s : '数秒',
|
|
|
|
ss : '%d秒',
|
|
|
|
m : '1分',
|
|
|
|
mm : '%d分',
|
|
|
|
h : '1時間',
|
|
|
|
hh : '%d時間',
|
|
|
|
d : '1日',
|
|
|
|
dd : '%d日',
|
|
|
|
M : '1ヶ月',
|
|
|
|
MM : '%dヶ月',
|
|
|
|
y : '1年',
|
|
|
|
yy : '%d年'
|
2017-04-20 00:24:20 -04:00
|
|
|
}
|
2018-04-26 03:15:53 -04:00
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
return ja;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|