Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TranslateService

Hierarchy

  • TranslateService
    • TranslateService

Index

Constructors

Methods

Constructors

  • new TranslateService(store: TranslateStore, currentLoader: TranslateLoader, compiler: TranslateCompiler, parser: TranslateParser, missingTranslationHandler: MissingTranslationHandler, useDefaultLang: boolean, isolate: boolean, extend: boolean, defaultLanguage: string): TranslateService
  • Parameters

    • store: TranslateStore

      an instance of the store (that is supposed to be unique)

    • currentLoader: TranslateLoader

      An instance of the loader currently used

    • compiler: TranslateCompiler

      An instance of the compiler currently used

    • parser: TranslateParser

      An instance of the parser currently used

    • missingTranslationHandler: MissingTranslationHandler

      A handler for missing translations.

    • useDefaultLang: boolean

      whether we should use default language translation when current language translation is missing.

    • isolate: boolean

      whether this service should use the store or not

    • extend: boolean

      To make a child module extend (and use) translations from parent modules.

    • defaultLanguage: string

      Set the default language using configuration

    Returns TranslateService

Methods

  • getParsedResult(translations: any, key: any, interpolateParams?: any): any

Generated using TypeDoc