1 //! moment.js locale configuration
2 //! locale : Japanese [ja]
3 //! author : LI Long : https://github.com/baryon
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) :
10 }(this, (function (moment) { 'use strict';
12 //! moment.js locale configuration
14 var ja = moment.defineLocale('ja', {
72 eraYearOrdinalRegex: /(元|\d+)年/,
73 eraYearOrdinalParse: function (input, match) {
74 return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
76 months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
77 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
80 weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
81 weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
82 weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
88 LLL: 'YYYY年M月D日 HH:mm',
89 LLLL: 'YYYY年M月D日 dddd HH:mm',
92 lll: 'YYYY年M月D日 HH:mm',
93 llll: 'YYYY年M月D日(ddd) HH:mm',
95 meridiemParse: /午前|午後/i,
96 isPM: function (input) {
97 return input === '午後';
99 meridiem: function (hour, minute, isLower) {
109 nextWeek: function (now) {
110 if (now.week() !== this.week()) {
111 return '[来週]dddd LT';
117 lastWeek: function (now) {
118 if (this.week() !== now.week()) {
119 return '[先週]dddd LT';
126 dayOfMonthOrdinalParse: /\d{1,2}日/,
127 ordinal: function (number, period) {
130 return number === 1 ? '元年' : number + '年';