Skip to main content
cngx-src documentation

CngxTabsI18n

Interface

projects/common/tabs/i18n/tabs-i18n.ts

Import#

import { CngxTabsI18n } from '@cngx/common/tabs'

Description#

Tabs i18n surface. Library defaults are English; consumers override via provideTabsI18n. Sibling to CNGX_STEPPER_I18N and CNGX_CHART_I18N.

Index#

Instance Properties#

addTab#string
Readonly

Accessible name for the add-tab button.

closeTab#function
Readonly

Accessible name for a tab's close button. Receives the tab label (or a generic fallback when unlabeled) and yields the button's aria-label, e.g. Close "Profile".

commitFailedRetry#string
Readonly
Superseded by {@link commitRolledBackTo}. Retained as the defensive fallback in `liveAnnouncement` when the origin label is unresolvable - fires for unlabeled tabs or programmatic `commitState` writes that bypass `select()`. See `tabs-accepted-debt §4`.

the defensive fallback in liveAnnouncement when the origin label is unresolvable - fires for unlabeled tabs or programmatic commitState writes that bypass select(). See tabs-accepted-debt §4.

commitInFlight#string
Readonly
commitRolledBackTo#function
Readonly

Origin-aware rollback announcement. Receives the safe-harbour tab label and yields the rollback phrase. Read on the pending → error transition when both lastFailedIndex and originIndexDuringCommit are set.

moreTabsLabel#function
Readonly
nextTab#string
Readonly
previousTab#string
Readonly
selectedTab#function
Readonly
tabHasErrors#function
Readonly
tabLabelWithDetail#function
Readonly

Folds a tab's optional secondary label into its accessible name. Receives the primary label and the sub-label detail; the result is passed to selectedTab as the label part, e.g. Tab 2 of 5: Bookmarks, 45. Only invoked when a sub-label is present.

tabsLabel#string
Readonly