Skip to main content

Class: I18nAbstractLoader

Hierarchy

Implements

  • OnModuleDestroy

Constructors

constructor

new I18nAbstractLoader(options)

Parameters

NameType
optionsI18nAbstractLoaderOptions

Overrides

I18nLoader.constructor

Defined in

src/loaders/i18n.abstract.loader.ts:38

Properties

events

Private events: Subject<string>

Defined in

src/loaders/i18n.abstract.loader.ts:36


options

Private options: I18nAbstractLoaderOptions

Defined in

src/loaders/i18n.abstract.loader.ts:40


watcher

Private Optional watcher: FSWatcher

Defined in

src/loaders/i18n.abstract.loader.ts:34

Methods

assignPrefixedTranslation

Protected assignPrefixedTranslation(translations, prefix, property, value): void

Parameters

NameType
translationsstring | I18nTranslation
prefixstring[]
propertystring
valuestring

Returns

void

Defined in

src/loaders/i18n.abstract.loader.ts:149


formatData

Abstract formatData(data): any

Parameters

NameType
dataany

Returns

any

Defined in

src/loaders/i18n.abstract.loader.ts:188


getDefaultOptions

Abstract getDefaultOptions(): Partial<I18nAbstractLoaderOptions>

Returns

Partial<I18nAbstractLoaderOptions>

Defined in

src/loaders/i18n.abstract.loader.ts:189


languages

languages(): Promise<string[] | Observable<string[]>>

Returns

Promise<string[] | Observable<string[]>>

Overrides

I18nLoader.languages

Defined in

src/loaders/i18n.abstract.loader.ts:60


load

load(): Promise<I18nTranslation | Observable<I18nTranslation>>

Returns

Promise<I18nTranslation | Observable<I18nTranslation>>

Overrides

I18nLoader.load

Defined in

src/loaders/i18n.abstract.loader.ts:70


onModuleDestroy

onModuleDestroy(): Promise<void>

Returns

Promise<void>

Implementation of

OnModuleDestroy.onModuleDestroy

Defined in

src/loaders/i18n.abstract.loader.ts:54


parseLanguages

Protected parseLanguages(): Promise<string[]>

Returns

Promise<string[]>

Defined in

src/loaders/i18n.abstract.loader.ts:170


parseTranslations

Protected parseTranslations(): Promise<I18nTranslation>

Returns

Promise<I18nTranslation>

Defined in

src/loaders/i18n.abstract.loader.ts:80


sanitizeOptions

Protected sanitizeOptions(options): I18nAbstractLoaderOptions

Parameters

NameType
optionsI18nAbstractLoaderOptions

Returns

I18nAbstractLoaderOptions

Defined in

src/loaders/i18n.abstract.loader.ts:177