Skip to main content

Class: I18nYamlLoader

Hierarchy

Constructors

constructor

new I18nYamlLoader(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): unknown

Parameters

NameType
dataany

Returns

unknown

Overrides

I18nAbstractLoader.formatData

Defined in

src/loaders/i18n.yaml.loader.ts:16


getDefaultOptions

getDefaultOptions(): Partial<I18nAbstractLoaderOptions>

Returns

Partial<I18nAbstractLoaderOptions>

Overrides

I18nAbstractLoader.getDefaultOptions

Defined in

src/loaders/i18n.yaml.loader.ts:9


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