From b17a95c47beb5f7dd445a2fa36706382aa257b47 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Wed, 19 Feb 2025 21:43:35 +1100 Subject: [PATCH] fix: update documentation in SingleDatePicker to clarify screen reader behavior with localization --- src/components/SingleDatePicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/SingleDatePicker.tsx b/src/components/SingleDatePicker.tsx index f6c47ee..d6f7627 100644 --- a/src/components/SingleDatePicker.tsx +++ b/src/components/SingleDatePicker.tsx @@ -26,7 +26,8 @@ interface Props { * function that will be called when a date is selected inside the panel. * @param {string} props.localization - The language code that will be used to localize the panel. * Accept standard ISO 639-1 language code, such as 'zh-CN', 'en-US', 'ja-JP', etc. Default to the - * language of the user’s browser. Note that it will not effect to the screen reader. + * language of the user’s browser. Note that it will not effect to the screen reader, but the screen + * reader will still read the date in the user’s language. */ export default ({ value, onSelect, localization }: Props) => { const [currentMonth, setCurrentMonth] = useState(new Date().getMonth())