novx
    Preparing search index...

    Class Translator

    A Translator is responsible to load and fetch i18n values given keys that consist of a namespace and a path.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • make sure that the specified namespaces are laoded

      Parameters

      • ...namespaces: string[]

        list of namespaces

      Returns Promise<void>

    • return all values for the specific namespace, assuming that they have been already loaded

      Parameters

      • namespace: string

      Returns any

    • return an observable containing all values for the specific namespace

      Parameters

      • namespace: string

      Returns Promise<any>

    • return an observable containing the translated key or the transformed key in case of missing values

      Parameters

      • key: string

        the translation key

      Returns Promise<string>