File

config/src/talenra-base-translate.pipe.ts

Description

Pipe for translating TalenraBase library keys to localized strings. Uses the TalenraBaseConfig service to retrieve reactive translations.

Example :
<!-- Component template -->
<span>{{ 'talenra.ui.base.button.cancel' | talenraBaseTranslate }}</span>

The pipe is impure (pure: false) to react to translation changes at runtime.

Import

Example :
import { TalenraBaseTranslatePipe } from '@talenra/components/config';

See TalenraBaseConfig See TalenraBaseTranslationKey

Metadata

Methods

transform
transform(key: TalenraBaseTranslationKey)

Transforms a translation key into its localized string value.

Parameters :
Name Type Optional Description
key TalenraBaseTranslationKey No
  • The translation key to look up
Returns : string

The localized string value for the given key

results matching ""

    No results matching ""