novx
    Preparing search index...

    Interface I18N

    the user api for i18n

    interface I18N {
        tr: (key: string, params?: any) => string;
        translator: Translator;
    }
    Index

    Properties

    Properties

    tr: (key: string, params?: any) => string

    a function that can be used to translate keys

    Type Declaration

      • (key: string, params?: any): string
      • Parameters

        • key: string

          a key

        • Optionalparams: any

          optional params that can add placeholder values

        Returns string

    translator: Translator

    retrieves the current translator instance