Skip to content

Commit

Permalink
Revert "[locale] ja: fix long month names (moment#4590)"
Browse files Browse the repository at this point in the history
This reverts commit cf30706.
  • Loading branch information
naokomc committed Feb 9, 2019
1 parent 8e6c9b9 commit c5136b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/locale/ja.js
Expand Up @@ -5,7 +5,7 @@
import moment from '../moment';

export default moment.defineLocale('ja', {
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
Expand Down
6 changes: 3 additions & 3 deletions src/test/locale/ja.js
Expand Up @@ -23,9 +23,9 @@ test('parse', function (assert) {

test('format', function (assert) {
var a = [
['dddd, MMMM Do YYYY, a h:mm:ss', '日曜日, 二月 14日 2010, 午後 3:25:50'],
['dddd, MMMM Do YYYY, a h:mm:ss', '日曜日, 2月 14日 2010, 午後 3:25:50'],
['ddd, Ah', '日, 午後3'],
['M Mo MM MMMM MMM', '2 2 02 二月 2月'],
['M Mo MM MMMM MMM', '2 2 02 2月 2月'],
['YYYY YY', '2010 10'],
['D Do DD', '14 14日 14'],
['d do dddd ddd dd', '0 0日 日曜日 日 日'],
Expand Down Expand Up @@ -55,7 +55,7 @@ test('format', function (assert) {
});

test('format month', function (assert) {
var expected = '一月 1月_二月 2月_三月 3月_四月 4月_五月 5月_六月 6月_七月 7月_八月 8月_九月 9月_十月 10月_十一月 11月_十二月 12月'.split('_'), i;
var expected = '1月 1月_2月 2月_3月 3月_4月 4月_5月 5月_6月 6月_7月 7月_8月 8月_9月 9月_10月 10月_11月 11月_12月 12月'.split('_'), i;
for (i = 0; i < expected.length; i++) {
assert.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
}
Expand Down

0 comments on commit c5136b5

Please sign in to comment.