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