@@ -7,13 +7,15 @@ import {
7
7
import "./icons/slim-arrow-down.js" ;
8
8
import { getRTL } from "@ui5/webcomponents-base/dist/config/RTL.js" ;
9
9
import { isIE } from "@ui5/webcomponents-core/dist/sap/ui/Device.js" ;
10
+ import { fetchI18nBundle , getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js" ;
10
11
import MultiComboBoxTemplate from "./generated/templates/MultiComboBoxTemplate.lit.js" ;
11
12
import Tokenizer from "./Tokenizer.js" ;
12
13
import Token from "./Token.js" ;
13
14
import Icon from "./Icon.js" ;
14
15
import Popover from "./Popover.js" ;
15
16
import List from "./List.js" ;
16
17
import StandardListItem from "./StandardListItem.js" ;
18
+ import { TOKENIZER_ARIA_CONTAIN_SEVERAL_TOKENS } from "../dist/generated/i18n/i18n-defaults.js" ;
17
19
18
20
// Styles
19
21
import styles from "./generated/themes/MultiComboBox.css.js" ;
@@ -275,6 +277,7 @@ class MultiComboBox extends UI5Element {
275
277
this . _inputLastValue = "" ;
276
278
this . _deleting = false ;
277
279
this . _validationTimeout = null ;
280
+ this . i18nBundle = getI18nBundle ( "@ui5/webcomponents" ) ;
278
281
}
279
282
280
283
_inputChange ( ) {
@@ -490,6 +493,10 @@ class MultiComboBox extends UI5Element {
490
493
return this . shadowRoot . querySelector ( "ui5-tokenizer" ) ;
491
494
}
492
495
496
+ get nMoreCountText ( ) {
497
+ return this . i18nBundle . getText ( TOKENIZER_ARIA_CONTAIN_SEVERAL_TOKENS , this . _getSelectedItems ( ) . length ) ;
498
+ }
499
+
493
500
rootFocusIn ( ) {
494
501
this . expandedTokenizer = true ;
495
502
}
@@ -520,6 +527,7 @@ class MultiComboBox extends UI5Element {
520
527
Popover . define ( ) ,
521
528
List . define ( ) ,
522
529
StandardListItem . define ( ) ,
530
+ fetchI18nBundle ( "@ui5/webcomponents" ) ,
523
531
] ) ;
524
532
525
533
super . define ( ...params ) ;
0 commit comments