Class: I18nAbstractLoader
Hierarchy
↳
I18nAbstractLoader
Implements
OnModuleDestroy
Constructors
constructor
• new I18nAbstractLoader(options
)
Parameters
Name | Type |
---|---|
options | I18nAbstractLoaderOptions |
Overrides
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
Name | Type |
---|---|
translations | string | I18nTranslation |
prefix | string [] |
property | string |
value | string |
Returns
void
Defined in
src/loaders/i18n.abstract.loader.ts:149
formatData
▸ Abstract
formatData(data
): any
Parameters
Name | Type |
---|---|
data | any |
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
Defined in
src/loaders/i18n.abstract.loader.ts:60
load
▸ load(): Promise
<I18nTranslation
| Observable
<I18nTranslation
>>
Returns
Promise
<I18nTranslation
| Observable
<I18nTranslation
>>
Overrides
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
Name | Type |
---|---|
options | I18nAbstractLoaderOptions |