update format API#228
Conversation
| name: 'th', | ||
| weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), | ||
| weekdaysShort: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), | ||
| weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), |
There was a problem hiding this comment.
@saknarak
In order to pass the unit test compared to moment.js, I've changed this locale a little bit. Is this still OK in thai?
There was a problem hiding this comment.
Yes, it still OK in Thai.
// from moment.js
weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
There was a problem hiding this comment.
Thanks @saknarak , just wondering if we should add weekdaysMin as well?
There was a problem hiding this comment.
Yes, moment use
d => this.$W
dd => weekdaysMin
ddd => weekdaysShort
dddd => weekdays
Codecov Report
@@ Coverage Diff @@
## master #228 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 23 24 +1
Lines 338 344 +6
Branches 52 51 -1
=====================================
+ Hits 338 344 +6
Continue to review full report at Codecov.
|
<a name="1.6.6"></a> ## [1.6.6](v1.6.5...v1.6.6) (2018-06-06) ### Bug Fixes * format API update and locale file update ([5ca48f0](5ca48f0)), closes [#228](#228)
|
🎉 This PR is included in version 1.6.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
<a name="1.6.6"></a> ## [1.6.6](iamkun/dayjs@v1.6.5...v1.6.6) (2018-06-06) ### Bug Fixes * format API update and locale file update ([5ca48f0](iamkun/dayjs@5ca48f0)), closes [#228](iamkun/dayjs#228)
<a name="1.6.6"></a> ## [1.6.6](iamkun/dayjs@v1.6.5...v1.6.6) (2018-06-06) ### Bug Fixes * format API update and locale file update ([5ca48f0](iamkun/dayjs@5ca48f0)), closes [#228](iamkun/dayjs#228)
<a name="1.6.6"></a> ## [1.6.6](iamkun/dayjs@v1.6.5...v1.6.6) (2018-06-06) ### Bug Fixes * format API update and locale file update ([5ca48f0](iamkun/dayjs@5ca48f0)), closes [#228](iamkun/dayjs#228)
No description provided.