diff --git a/src/PickerInput/Selector/hooks/useInputProps.ts b/src/PickerInput/Selector/hooks/useInputProps.ts index bfc4e0004..251777982 100644 --- a/src/PickerInput/Selector/hooks/useInputProps.ts +++ b/src/PickerInput/Selector/hooks/useInputProps.ts @@ -123,7 +123,7 @@ export default function useInputProps( // ======================== Input ========================= const getInputProps = (index?: number): InputProps => { function getProp(propValue: T | T[]): T { - return index !== undefined ? propValue[index] : propValue; + return index !== undefined ? propValue[index] : (propValue as T); } const pickedAttrs = pickAttrs(props, { aria: true, data: true }); diff --git a/src/locale/it_IT.ts b/src/locale/it_IT.ts index 99279dc4b..bd137a47e 100644 --- a/src/locale/it_IT.ts +++ b/src/locale/it_IT.ts @@ -30,6 +30,8 @@ const locale: Locale = { nextDecade: 'Prossimo decennio', previousCentury: 'Secolo precedente', nextCentury: 'Prossimo secolo', + shortWeekDays: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'], + shortMonths: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'], }; export default locale;