@@ -5,6 +5,8 @@ import ScrollEnablement from "@ui5/webcomponents-base/dist/delegate/ScrollEnable
5
5
import ItemNavigation from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js" ;
6
6
import { isSpace , isEnter } from "@ui5/webcomponents-base/dist/events/PseudoEvents.js" ;
7
7
import { getRTL } from "@ui5/webcomponents-base/dist/config/RTL.js" ;
8
+ import { fetchI18nBundle , getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js" ;
9
+ import { TABCONTAINER_PREVIOUS_ICON_ACC_NAME , TABCONTAINER_NEXT_ICON_ACC_NAME , TABCONTAINER_OVERFLOW_MENU_TITLE } from "./generated/i18n/i18n-defaults.js" ;
8
10
import TabContainerTemplate from "./generated/templates/TabContainerTemplate.lit.js" ;
9
11
import Button from "./Button.js" ;
10
12
import CustomListItem from "./CustomListItem.js" ;
@@ -176,6 +178,8 @@ class TabContainer extends UI5Element {
176
178
177
179
// Init ItemNavigation
178
180
this . _initItemNavigation ( ) ;
181
+
182
+ this . i18nBundle = getI18nBundle ( "@ui5/webcomponents" ) ;
179
183
}
180
184
181
185
onBeforeRendering ( ) {
@@ -391,6 +395,18 @@ class TabContainer extends UI5Element {
391
395
return this . items . some ( item => item . icon ) && this . items . some ( item => item . text ) ;
392
396
}
393
397
398
+ get previousIconACCName ( ) {
399
+ return this . i18nBundle . getText ( TABCONTAINER_PREVIOUS_ICON_ACC_NAME ) ;
400
+ }
401
+
402
+ get nextIconACCName ( ) {
403
+ return this . i18nBundle . getText ( TABCONTAINER_NEXT_ICON_ACC_NAME ) ;
404
+ }
405
+
406
+ get overflowMenuTitle ( ) {
407
+ return this . i18nBundle . getText ( TABCONTAINER_OVERFLOW_MENU_TITLE ) ;
408
+ }
409
+
394
410
get rtl ( ) {
395
411
return getRTL ( ) ? "rtl" : undefined ;
396
412
}
@@ -402,6 +418,7 @@ class TabContainer extends UI5Element {
402
418
Icon . define ( ) ,
403
419
List . define ( ) ,
404
420
Popover . define ( ) ,
421
+ fetchI18nBundle ( "@ui5/webcomponents" ) ,
405
422
] ) ;
406
423
407
424
super . define ( ...params ) ;
0 commit comments