Skip to main content
cngx-src documentation

provideFeedbackI18n

Functionui/feedback/i18nv0.1.0

projects/ui/feedback/config/feedback-i18n.ts

Description#

Provider for the feedback i18n bundle on its own, without the rest of provideFeedback(). This is the entry point a consumer-composed language file uses - provideFeedback() replaces the whole CNGX_FEEDBACK_CONFIG value, so routing a translation through it would reset unrelated feedback defaults the app set elsewhere.

Signature#

provideFeedbackI18n(overrides: CngxFeedbackI18nOverrides)

Parameters#

Returns#

Provider

Example

// src/i18n/de.ts - the app's language file: every per-lib provider it uses,
// composed in one const. See the "Localisation" core-concepts page for the
// full recipe and the per-area entry points.
export const DE: Provider[] = [
  provideFeedbackI18n({
    alertsRegionLabel: 'Hinweise',
    notificationsRegionLabel: 'Meldungen',
    announcements: { alertDismissed: 'Hinweis verworfen' },
  }),
  provideTabsI18n(withTabsI18nLabels({ tabsLabel: 'Reiter' })),
  provideCardI18n(withCardI18nLabels({ selected: 'Ausgewählt' })),
];

bootstrapApplication(App, { providers: [...DE] });