Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / resources / lib / moment / locale / ja.js
1 //! moment.js locale configuration
2
3 ;(function (global, factory) {
4 typeof exports === 'object' && typeof module !== 'undefined'
5 && typeof require === 'function' ? factory(require('../moment')) :
6 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10
11 var ja = moment.defineLocale('ja', {
12 months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
13 monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
14 weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
15 weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
16 weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
17 longDateFormat : {
18 LT : 'HH:mm',
19 LTS : 'HH:mm:ss',
20 L : 'YYYY/MM/DD',
21 LL : 'YYYY年M月D日',
22 LLL : 'YYYY年M月D日 HH:mm',
23 LLLL : 'YYYY年M月D日 dddd HH:mm',
24 l : 'YYYY/MM/DD',
25 ll : 'YYYY年M月D日',
26 lll : 'YYYY年M月D日 HH:mm',
27 llll : 'YYYY年M月D日(ddd) HH:mm'
28 },
29 meridiemParse: /午前|午後/i,
30 isPM : function (input) {
31 return input === '午後';
32 },
33 meridiem : function (hour, minute, isLower) {
34 if (hour < 12) {
35 return '午前';
36 } else {
37 return '午後';
38 }
39 },
40 calendar : {
41 sameDay : '[今日] LT',
42 nextDay : '[明日] LT',
43 nextWeek : function (now) {
44 if (now.week() < this.week()) {
45 return '[来週]dddd LT';
46 } else {
47 return 'dddd LT';
48 }
49 },
50 lastDay : '[昨日] LT',
51 lastWeek : function (now) {
52 if (this.week() < now.week()) {
53 return '[先週]dddd LT';
54 } else {
55 return 'dddd LT';
56 }
57 },
58 sameElse : 'L'
59 },
60 dayOfMonthOrdinalParse : /\d{1,2}日/,
61 ordinal : function (number, period) {
62 switch (period) {
63 case 'd':
64 case 'D':
65 case 'DDD':
66 return number + '日';
67 default:
68 return number;
69 }
70 },
71 relativeTime : {
72 future : '%s後',
73 past : '%s前',
74 s : '数秒',
75 ss : '%d秒',
76 m : '1分',
77 mm : '%d分',
78 h : '1時間',
79 hh : '%d時間',
80 d : '1日',
81 dd : '%d日',
82 M : '1ヶ月',
83 MM : '%dヶ月',
84 y : '1年',
85 yy : '%d年'
86 }
87 });
88
89 return ja;
90
91 })));