Skip to content

Commit 282dfd3

Browse files
author
Nathan Reyes
committed
Resolve merge conflict
2 parents 635bd69 + 3032d7f commit 282dfd3

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v0.9.4
1+
# v0.9.5
22
## Improvements
33
### `v-calendar`
44
* Adds support for 'day-content' slots. :tada: :tada: :tada: This adds a lot of flexibility by allowing you to provide your own day cells. The layout has also been improved to grow with your cells, so you can now build larger calendars to fill with your own content.
@@ -34,6 +34,11 @@ You can get access to the following slot props:
3434
| `attibutes` | Array | List of attributes for this day. |
3535
| `contentStyle` | Object | Content style to apply if you wish, derived from `themeStyles.dayContent` and other attributes. |
3636

37+
# v0.9.4
38+
## Bug Fixes
39+
### `v-date-picker`
40+
* Fix bug where 'Do' format token was not supported. Closes #127.
41+
3742
# v0.9.3
3843
## Bug Fixes
3944
### `v-calendar`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v-calendar",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
55
"keywords": [
66
"vue",

src/utils/locales.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ const getDayNames = (locale, length) => {
9494
return getWeekdayDates({ utc: true }).map(d => dtf.format(d));
9595
};
9696

97+
/* eslint-disable no-bitwise */
98+
const DoFn = d =>
99+
`${d}${[null, 'st', 'nd', 'rd'][((d % 100) >> 3) ^ 1 && d % 10] || 'th'}`;
100+
97101
export default locale => {
98102
const detectedLocale = new Intl.DateTimeFormat().resolvedOptions().locale;
99103
const searchLocales = [
@@ -124,5 +128,6 @@ export default locale => {
124128
dayNamesNarrow,
125129
monthNames,
126130
monthNamesShort,
131+
DoFn,
127132
};
128133
};

0 commit comments

Comments
 (0)