Skip to content

Commit 29bc18f

Browse files
authored
fix(SelectDialog): add translation for selection announcement (#7647)
1 parent 6272c3b commit 29bc18f

File tree

1 file changed

+1
-5
lines changed
  • packages/main/src/components/SelectDialog

1 file changed

+1
-5
lines changed

packages/main/src/components/SelectDialog/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import { enrichEventWithDetails, useI18nBundle, useStylesheet, useSyncRef } from
1313
import { clsx } from 'clsx';
1414
import type { ReactNode } from 'react';
1515
import { forwardRef, useEffect, useState } from 'react';
16-
// todo: remove comment once translations are available
17-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1816
import { CANCEL, CLEAR, SEARCH, SELECT, SELECTED, SELECTED_ITEMS } from '../../i18n/i18n-defaults.js';
1917
import { Button, Dialog, FlexBox, FlexBoxAlignItems, Icon, Input, List, Text, Title } from '../../index.js';
2018
import type { Ui5CustomEvent } from '../../types/index.js';
@@ -244,9 +242,7 @@ const SelectDialog = forwardRef<DialogDomRef, SelectDialogPropTypes>((props, ref
244242
if (selectionMode === ListSelectionMode.Multiple) {
245243
setSelectedItems(selectedItems);
246244
if (selectedItems.length) {
247-
announce('Selected Items ' + selectedItems.length, InvisibleMessageMode.Polite);
248-
//todo: uncomment this, once translations are available
249-
// announce(i18nBundle.getText(SELECTED_ITEMS, selectedItems.length), InvisibleMessageMode.Polite);
245+
announce(i18nBundle.getText(SELECTED_ITEMS, selectedItems.length), InvisibleMessageMode.Polite);
250246
}
251247
} else {
252248
if (typeof onConfirm === 'function') {

0 commit comments

Comments
 (0)