diff --git a/packages/components/src/components/alert/component.tsx b/packages/components/src/components/alert/component.tsx index 119327cdb5..8af8301c97 100644 --- a/packages/components/src/components/alert/component.tsx +++ b/packages/components/src/components/alert/component.tsx @@ -93,7 +93,7 @@ export class KolAlertWc implements AlertAPI { icon: 'codicon codicon-close', }, }} - _label={translate('kol-close-alert', { placeholders: { label: this.state._label as string } })} + _label={translate('kol-close-alert', { placeholders: { label: this.state._label?.trim() || '' } })} _on={this.on} _tooltipAlign="left" > diff --git a/packages/components/src/locales/en.ts b/packages/components/src/locales/en.ts index 66bf67e66b..d764a6a8bd 100644 --- a/packages/components/src/locales/en.ts +++ b/packages/components/src/locales/en.ts @@ -43,7 +43,7 @@ export default { dropdown: 'Dropdown', 'nav-label-open': 'Submenu for {{label}} open', 'nav-label-close': 'Submenu for {{label}} close', - 'close-alert': 'Notification {{label}} close', + 'close-alert': 'Close notification {{label}}', 'show-password': 'Show', 'hide-password': 'Hide', 'no-results-message': 'No results found.',