[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/resources/lib/moment/locale/ -> ja.js (source)

   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(window.moment); // Browser 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              L : 'YYYY/MM/DD',
  23              LL : 'YYYY年M月D日',
  24              LLL : 'YYYY年M月D日LT',
  25              LLLL : 'YYYY年M月D日LT dddd'
  26          },
  27          meridiem : function (hour, minute, isLower) {
  28              if (hour < 12) {
  29                  return '午前';
  30              } else {
  31                  return '午後';
  32              }
  33          },
  34          calendar : {
  35              sameDay : '[今日] LT',
  36              nextDay : '[明日] LT',
  37              nextWeek : '[来週]dddd LT',
  38              lastDay : '[昨日] LT',
  39              lastWeek : '[前週]dddd LT',
  40              sameElse : 'L'
  41          },
  42          relativeTime : {
  43              future : '%s後',
  44              past : '%s前',
  45              s : '数秒',
  46              m : '1分',
  47              mm : '%d分',
  48              h : '1時間',
  49              hh : '%d時間',
  50              d : '1日',
  51              dd : '%d日',
  52              M : '1ヶ月',
  53              MM : '%dヶ月',
  54              y : '1年',
  55              yy : '%d年'
  56          }
  57      });
  58  }));


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1