Skip to content

Commit 6fcb0bd

Browse files
authored
feat: Add shortWeekDays and shortMonths to it_IT.ts (#916)
* feat: Add shortWeekDays and shortMonths to it_IT.ts close: #898 * fix: type error in useInputProps getProp function
1 parent 6bc9cb4 commit 6fcb0bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/PickerInput/Selector/hooks/useInputProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default function useInputProps<DateType extends object = any>(
123123
// ======================== Input =========================
124124
const getInputProps = (index?: number): InputProps => {
125125
function getProp<T>(propValue: T | T[]): T {
126-
return index !== undefined ? propValue[index] : propValue;
126+
return index !== undefined ? propValue[index] : (propValue as T);
127127
}
128128

129129
const pickedAttrs = pickAttrs(props, { aria: true, data: true });

src/locale/it_IT.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const locale: Locale = {
3030
nextDecade: 'Prossimo decennio',
3131
previousCentury: 'Secolo precedente',
3232
nextCentury: 'Prossimo secolo',
33+
shortWeekDays: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
34+
shortMonths: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'],
3335
};
3436

3537
export default locale;

0 commit comments

Comments
 (0)