diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-10-14 18:40:54 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-10-14 18:40:54 +0200 |
commit | 9df98e65f842cf3acae09cbdd969966f42d64469 (patch) | |
tree | f071d3e09a342c208fb8e1cd3f5241d64fbfbaf3 /node_modules/moment/locale/ko.js | |
parent | 008926b18470e7f394cd640302957b29728a9803 (diff) |
update dependencies
Diffstat (limited to 'node_modules/moment/locale/ko.js')
-rw-r--r-- | node_modules/moment/locale/ko.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/node_modules/moment/locale/ko.js b/node_modules/moment/locale/ko.js index 13d1c4d30..8ac7913fd 100644 --- a/node_modules/moment/locale/ko.js +++ b/node_modules/moment/locale/ko.js @@ -53,8 +53,22 @@ var ko = moment.defineLocale('ko', { y : '일 년', yy : '%d년' }, - dayOfMonthOrdinalParse : /\d{1,2}일/, - ordinal : '%d일', + dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/, + ordinal : function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '일'; + case 'M': + return number + '월'; + case 'w': + case 'W': + return number + '주'; + default: + return number; + } + }, meridiemParse : /오전|오후/, isPM : function (token) { return token === '오후'; |