GPQAPP
1//! moment.js locale configuration
2//! locale : Japanese [ja]
3//! author : LI Long : https://github.com/baryon
4
5;(function (global, factory) {6typeof exports === 'object' && typeof module !== 'undefined'7&& typeof require === 'function' ? factory(require('../moment')) :8typeof define === 'function' && define.amd ? define(['../moment'], factory) :9factory(global.moment)10}(this, (function (moment) { 'use strict';11
12//! moment.js locale configuration13
14var ja = moment.defineLocale('ja', {15eras: [16{17since: '2019-05-01',18offset: 1,19name: '令和',20narrow: '㋿',21abbr: 'R',22},23{24since: '1989-01-08',25until: '2019-04-30',26offset: 1,27name: '平成',28narrow: '㍻',29abbr: 'H',30},31{32since: '1926-12-25',33until: '1989-01-07',34offset: 1,35name: '昭和',36narrow: '㍼',37abbr: 'S',38},39{40since: '1912-07-30',41until: '1926-12-24',42offset: 1,43name: '大正',44narrow: '㍽',45abbr: 'T',46},47{48since: '1873-01-01',49until: '1912-07-29',50offset: 6,51name: '明治',52narrow: '㍾',53abbr: 'M',54},55{56since: '0001-01-01',57until: '1873-12-31',58offset: 1,59name: '西暦',60narrow: 'AD',61abbr: 'AD',62},63{64since: '0000-12-31',65until: -Infinity,66offset: 1,67name: '紀元前',68narrow: 'BC',69abbr: 'BC',70},71],72eraYearOrdinalRegex: /(元|\d+)年/,73eraYearOrdinalParse: function (input, match) {74return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);75},76months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),77monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(78'_'79),80weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),81weekdaysShort: '日_月_火_水_木_金_土'.split('_'),82weekdaysMin: '日_月_火_水_木_金_土'.split('_'),83longDateFormat: {84LT: 'HH:mm',85LTS: 'HH:mm:ss',86L: 'YYYY/MM/DD',87LL: 'YYYY年M月D日',88LLL: 'YYYY年M月D日 HH:mm',89LLLL: 'YYYY年M月D日 dddd HH:mm',90l: 'YYYY/MM/DD',91ll: 'YYYY年M月D日',92lll: 'YYYY年M月D日 HH:mm',93llll: 'YYYY年M月D日(ddd) HH:mm',94},95meridiemParse: /午前|午後/i,96isPM: function (input) {97return input === '午後';98},99meridiem: function (hour, minute, isLower) {100if (hour < 12) {101return '午前';102} else {103return '午後';104}105},106calendar: {107sameDay: '[今日] LT',108nextDay: '[明日] LT',109nextWeek: function (now) {110if (now.week() !== this.week()) {111return '[来週]dddd LT';112} else {113return 'dddd LT';114}115},116lastDay: '[昨日] LT',117lastWeek: function (now) {118if (this.week() !== now.week()) {119return '[先週]dddd LT';120} else {121return 'dddd LT';122}123},124sameElse: 'L',125},126dayOfMonthOrdinalParse: /\d{1,2}日/,127ordinal: function (number, period) {128switch (period) {129case 'y':130return number === 1 ? '元年' : number + '年';131case 'd':132case 'D':133case 'DDD':134return number + '日';135default:136return number;137}138},139relativeTime: {140future: '%s後',141past: '%s前',142s: '数秒',143ss: '%d秒',144m: '1分',145mm: '%d分',146h: '1時間',147hh: '%d時間',148d: '1日',149dd: '%d日',150M: '1ヶ月',151MM: '%dヶ月',152y: '1年',153yy: '%d年',154},155});156
157return ja;158
159})));160