[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 //! moment.js locale configuration 2 //! locale : Japanese [ja] 3 //! author : LI Long : https://github.com/baryon 4 5 ;(function (global, factory) { 6 typeof exports === 'object' && typeof module !== 'undefined' 7 && typeof require === 'function' ? factory(require('../moment')) : 8 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 9 factory(global.moment) 10 }(this, function (moment) { 'use strict'; 11 12 13 var ja = moment.defineLocale('ja', { 14 months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), 15 monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), 16 weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), 17 weekdaysShort : '日_月_火_水_木_金_土'.split('_'), 18 weekdaysMin : '日_月_火_水_木_金_土'.split('_'), 19 longDateFormat : { 20 LT : 'Ah時m分', 21 LTS : 'Ah時m分s秒', 22 L : 'YYYY/MM/DD', 23 LL : 'YYYY年M月D日', 24 LLL : 'YYYY年M月D日Ah時m分', 25 LLLL : 'YYYY年M月D日Ah時m分 dddd' 26 }, 27 meridiemParse: /午前|午後/i, 28 isPM : function (input) { 29 return input === '午後'; 30 }, 31 meridiem : function (hour, minute, isLower) { 32 if (hour < 12) { 33 return '午前'; 34 } else { 35 return '午後'; 36 } 37 }, 38 calendar : { 39 sameDay : '[今日] LT', 40 nextDay : '[明日] LT', 41 nextWeek : '[来週]dddd LT', 42 lastDay : '[昨日] LT', 43 lastWeek : '[前週]dddd LT', 44 sameElse : 'L' 45 }, 46 ordinalParse : /\d{1,2}日/, 47 ordinal : function (number, period) { 48 switch (period) { 49 case 'd': 50 case 'D': 51 case 'DDD': 52 return number + '日'; 53 default: 54 return number; 55 } 56 }, 57 relativeTime : { 58 future : '%s後', 59 past : '%s前', 60 s : '数秒', 61 m : '1分', 62 mm : '%d分', 63 h : '1時間', 64 hh : '%d時間', 65 d : '1日', 66 dd : '%d日', 67 M : '1ヶ月', 68 MM : '%dヶ月', 69 y : '1年', 70 yy : '%d年' 71 } 72 }); 73 74 return ja; 75 76 }));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 24 01:01:27 2023 | Cross-referenced by PHPXref 0.7.1 |