diff --git a/src/ListBox/ListBoxMenuIcon.svelte b/src/ListBox/ListBoxMenuIcon.svelte index 0ed8f211..9c68b736 100644 --- a/src/ListBox/ListBoxMenuIcon.svelte +++ b/src/ListBox/ListBoxMenuIcon.svelte @@ -22,7 +22,9 @@ [translationIds.open]: "Open menu", }; - $: description = open ? translateWithId("close") : translateWithId("open"); + $: translationId = open ? translationIds.close : translationIds.open; + $: description = + translateWithId?.(translationId) ?? defaultTranslations[translationId];