-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update format API #228
update format API #228
Conversation
@@ -3,7 +3,7 @@ import dayjs from 'dayjs' | |||
const locale = { | |||
name: 'th', | |||
weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), | |||
weekdaysShort: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), | |||
weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it still OK in Thai.
// from moment.js
weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @saknarak , just wondering if we should add weekdaysMin as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, moment use
d => this.$W
dd => weekdaysMin
ddd => weekdaysShort
dddd => weekdays
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great.
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)
No description provided.