diff --git a/src/MultiSelect/MultiSelect.svelte b/src/MultiSelect/MultiSelect.svelte index 05fbd066..c7d369de 100644 --- a/src/MultiSelect/MultiSelect.svelte +++ b/src/MultiSelect/MultiSelect.svelte @@ -100,6 +100,18 @@ */ export let translateWithId = undefined; + /** + * Override the default translation ids for the menu + * @type {(id: any) => string} + */ + export let translateWithIdMenu = undefined; + + /** + * Override the default translation ids for the input + * @type {(id: any) => string} + */ + export let translateWithIdInput = undefined; + /** Specify the title text */ export let titleText = ""; @@ -361,7 +373,7 @@ }}" id="{id}" disabled="{disabled}" - translateWithId="{translateWithId}" + translateWithId="{translateWithIdMenu}" > {#if checked.length > 0} {/if} @@ -439,7 +451,7 @@ inputValue = ''; open = false; }}" - translateWithId="{translateWithId}" + translateWithId="{translateWithIdInput}" disabled="{disabled}" open="{open}" />