From a77389f310bc16abdbe01c72ae03f491e01361b6 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 16 Apr 2021 10:29:41 +0200 Subject: [PATCH] Add formatDay prop, fix Day ignoring locale when formatting day numbers Closes #508 --- README.md | 3 +- src/Calendar.jsx | 3 + src/Calendar.spec.jsx | 13 ++ src/MonthView.spec.jsx | 15 ++ src/MonthView/Day.jsx | 13 +- src/MonthView/Day.spec.jsx | 22 +++ src/shared/dateFormatter.js | 6 +- test/yarn.lock | 354 +++++++++++++++++++++++++++--------- 8 files changed, 332 insertions(+), 97 deletions(-) diff --git a/README.md b/README.md index 33570f6e..1e61f87d 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,8 @@ Displays a complete, interactive calendar. |defaultActiveStartDate|The beginning of a period that shall be displayed by default. If you wish to use React-Calendar in a controlled way, use `activeStartDate` instead.|(today)|`new Date(2017, 0, 1)`| |defaultValue|Calendar value that shall be selected initially. Can be either one value or an array of two values. If you wish to use React-Calendar in a controlled way, use `value` instead.|n/a|