Skip to content

Commit e41e091

Browse files
committed
fix(VCalendar): translate eventMoreText
fixes #22062
1 parent 8b2fae3 commit e41e091

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/vuetify/src/labs/VCalendar/composables/calendarWithEvents.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ export function useCalendarWithEvents (props: CalendarWithEventsProps, slots: an
213213
: e.color || props.eventColor
214214
}
215215

216-
// Reference to track DOM elements
217216
const eventsRef = ref<HTMLElement[]>([])
218217

219218
function updateEventVisibility () {
@@ -250,10 +249,10 @@ export function useCalendarWithEvents (props: CalendarWithEventsProps, slots: an
250249
}
251250
}
252251

252+
// TODO: avoid direct DOM manipulation
253253
if (hidden) {
254254
more.style.display = ''
255-
// Assuming $vuetify is available in the context - this may need to be modified
256-
more.innerHTML = `${hidden} more` // This would need proper i18n support
255+
more.innerHTML = base.locale.t(props.eventMoreText, hidden)
257256
} else {
258257
more.style.display = 'none'
259258
}

0 commit comments

Comments
 (0)