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