fix: clarify localization note in SingleDatePicker documentation regarding screen reader impact

This commit is contained in:
Astrian Zheng 2025-02-19 21:42:59 +11:00
parent c758deda1f
commit 7a76aecb30
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -26,7 +26,7 @@ interface Props {
* function that will be called when a date is selected inside the panel. * 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. * @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 * Accept standard ISO 639-1 language code, such as 'zh-CN', 'en-US', 'ja-JP', etc. Default to the
* language of the users browser. * language of the users browser. Note that it will not effect to the screen reader.
*/ */
export default ({ value, onSelect, localization }: Props) => { export default ({ value, onSelect, localization }: Props) => {
const [currentMonth, setCurrentMonth] = useState(new Date().getMonth()) const [currentMonth, setCurrentMonth] = useState(new Date().getMonth())