diff --git a/dev/test-studio/plugins/locale-no-nb/bundles/studio.ts b/dev/test-studio/plugins/locale-no-nb/bundles/studio.ts index 96491893e61..83890d2e876 100644 --- a/dev/test-studio/plugins/locale-no-nb/bundles/studio.ts +++ b/dev/test-studio/plugins/locale-no-nb/bundles/studio.ts @@ -114,16 +114,20 @@ const studioResources: Record = { /** --- DateTime (and Date) Input --- */ + /** Action message for navigating to next month */ + 'inputs.datetime.calendar.action.go-to-next-month': 'Gå til forrige måned', /** Action message for navigating to previous month */ - 'inputs.datetime.calendar.action.previous-month': `Forrige måned`, + 'inputs.datetime.calendar.action.go-to-previous-month': 'Gå til neste måned', /** Action message for navigating to next year */ - 'inputs.datetime.calendar.action.next-year': `Neste år`, + 'inputs.datetime.calendar.action.go-to-next-year': 'Gå til neste år', /** Action message for navigating to previous year */ - 'inputs.datetime.calendar.action.previous-year': `Forrige år`, - /** Action message for selecting hour */ - 'inputs.datetime.calendar.action.select-hour': `Velg time`, - /** Action message for setting to current time */ - 'inputs.datetime.calendar.action.set-to-current-time': `Sett til nå`, + 'inputs.datetime.calendar.action.go-to-previous-year': 'Gå til forrige år', + /** Action message for setting to the current time */ + 'inputs.datetime.calendar.action.set-to-current-time': 'Sett til nå', + /** Action message for selecting the hour */ + 'inputs.datetime.calendar.action.select-hour': 'Velg time', + /** Action message for selecting the minute */ + 'inputs.datetime.calendar.action.select-minute': 'Velg minutt', /** Month names */ 'inputs.datetime.calendar.month-names.january': 'Januar', diff --git a/packages/sanity/src/core/form/inputs/DateInputs/__tests__/CommonDateTimeInput.test.tsx b/packages/sanity/src/core/form/inputs/DateInputs/__tests__/CommonDateTimeInput.test.tsx index 2a3d2c95e1b..26c7baabc83 100644 --- a/packages/sanity/src/core/form/inputs/DateInputs/__tests__/CommonDateTimeInput.test.tsx +++ b/packages/sanity/src/core/form/inputs/DateInputs/__tests__/CommonDateTimeInput.test.tsx @@ -30,10 +30,12 @@ function serialize(date: Date): string { } const CALENDAR_LABELS: CalendarLabels = { - previousYear: 'Previous year', - nextYear: 'Next year', - goToPreviousMonth: 'Goto previous mont', + goToPreviousYear: 'Previous year', + goToNextYear: 'Next year', + goToNextMonth: 'Go to next month', + goToPreviousMonth: 'Go to previous month', selectHour: 'Select hour', + selectMinute: 'Select minute', setToCurrentTime: 'Set to current time', monthNames: [ 'January', diff --git a/packages/sanity/src/core/form/inputs/DateInputs/base/calendar/Calendar.tsx b/packages/sanity/src/core/form/inputs/DateInputs/base/calendar/Calendar.tsx index d954d9a33fd..470a09fd8c8 100644 --- a/packages/sanity/src/core/form/inputs/DateInputs/base/calendar/Calendar.tsx +++ b/packages/sanity/src/core/form/inputs/DateInputs/base/calendar/Calendar.tsx @@ -188,7 +188,10 @@ export const Calendar = forwardRef(function Calendar( @@ -196,7 +199,10 @@ export const Calendar = forwardRef(function Calendar( @@ -247,7 +253,7 @@ export const Calendar = forwardRef(function Calendar( - {monthNames.map((m, i) => ( + {monthNames.map((monthName, i) => ( // eslint-disable-next-line react/no-array-index-key ))}