CngxTabsI18n
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#
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".
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.
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.
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.