1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| // moment.js locale configuration
| // locale : japanese (ja)
| // author : LI Long : https://github.com/baryon
|
| (function (factory) {
| if (typeof define === 'function' && define.amd) {
| define(['moment'], factory); // AMD
| } else if (typeof exports === 'object') {
| module.exports = factory(require('../moment')); // Node
| } else {
| factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
| }
| }(function (moment) {
| return moment.defineLocale('ja', {
| months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
| monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
| weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
| weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
| weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
| longDateFormat : {
| LT : 'Ah時m分',
| LTS : 'LTs秒',
| L : 'YYYY/MM/DD',
| LL : 'YYYY年M月D日',
| LLL : 'YYYY年M月D日LT',
| LLLL : 'YYYY年M月D日LT dddd'
| },
| meridiemParse: /午前|午後/i,
| isPM : function (input) {
| return input === '午後';
| },
| meridiem : function (hour, minute, isLower) {
| if (hour < 12) {
| return '午前';
| } else {
| return '午後';
| }
| },
| calendar : {
| sameDay : '[今日] LT',
| nextDay : '[明日] LT',
| nextWeek : '[来週]dddd LT',
| lastDay : '[昨日] LT',
| lastWeek : '[前週]dddd LT',
| sameElse : 'L'
| },
| relativeTime : {
| future : '%s後',
| past : '%s前',
| s : '数秒',
| m : '1分',
| mm : '%d分',
| h : '1時間',
| hh : '%d時間',
| d : '1日',
| dd : '%d日',
| M : '1ヶ月',
| MM : '%dヶ月',
| y : '1年',
| yy : '%d年'
| }
| });
| }));
|
|