Skip to main content

Class: I18nJsonLoader

Hierarchy

Constructors

constructor

new I18nJsonLoader(options)

Parameters

NameType
optionsI18nAbstractLoaderOptions

Inherited from

I18nAbstractLoader.constructor

Defined in

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

Methods

assignPrefixedTranslation

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

Parameters

NameType
translationsstring | I18nTranslation
prefixstring[]
propertystring
valuestring

Returns

void

Inherited from

I18nAbstractLoader.assignPrefixedTranslation

Defined in

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


formatData

formatData(data): any

Parameters

NameType
dataany

Returns

any

Overrides

I18nAbstractLoader.formatData

Defined in

src/loaders/i18n.json.loader.ts:14


getDefaultOptions

getDefaultOptions(): Partial<I18nAbstractLoaderOptions>

Returns

Partial<I18nAbstractLoaderOptions>

Overrides

I18nAbstractLoader.getDefaultOptions

Defined in

src/loaders/i18n.json.loader.ts:8


languages

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

Returns

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

Inherited from

I18nAbstractLoader.languages

Defined in

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


load

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

Returns

Promise<I18nTranslation | Observable<I18nTranslation>>

Inherited from

I18nAbstractLoader.load

Defined in

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


onModuleDestroy

onModuleDestroy(): Promise<void>

Returns

Promise<void>

Inherited from

I18nAbstractLoader.onModuleDestroy

Defined in

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


parseLanguages

Protected parseLanguages(): Promise<string[]>

Returns

Promise<string[]>

Inherited from

I18nAbstractLoader.parseLanguages

Defined in

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


parseTranslations

Protected parseTranslations(): Promise<I18nTranslation>

Returns

Promise<I18nTranslation>

Inherited from

I18nAbstractLoader.parseTranslations

Defined in

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


sanitizeOptions

Protected sanitizeOptions(options): I18nAbstractLoaderOptions

Parameters

NameType
optionsI18nAbstractLoaderOptions

Returns

I18nAbstractLoaderOptions

Inherited from

I18nAbstractLoader.sanitizeOptions

Defined in

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