diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.stories.ts index c5e06f8ff3..ae2ed56aa3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.stories.ts @@ -9,6 +9,13 @@ const meta: Meta = { args: { key: 'general_areyousure', }, + argTypes: { + args: { + control: { + type: 'array', + }, + }, + }, decorators: [ (story) => { return html`
@@ -31,6 +38,13 @@ type Story = StoryObj; export const Overview: Story = {}; +export const WithArguments: Story = { + args: { + key: 'blueprints_createdBlueprintMessage', + args: ['About us'], + }, +}; + export const KeyNotFound: Story = { args: { key: 'general_ok_not_found', diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts index 5eabaaee29..d561e999c9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts @@ -17,9 +17,10 @@ export class UmbLocalizeElement extends UmbLitElement { key!: string; /** - * The comma-separated values to forward to the localization function. + * The values to forward to the localization function (must be JSON compatible). * @attr * @example args="[1,2,3]" + * @type {any[] | undefined} */ @property({ type: Array,