Class: I18nModule
Implements
OnModuleInit
OnModuleDestroy
NestModule
Constructors
constructor
• new I18nModule(i18n
, translations
, i18nOptions
, adapter
)
Parameters
Name | Type |
---|---|
i18n | I18nService <Record <string , unknown >> |
translations | Observable <I18nTranslation > |
i18nOptions | I18nOptions |
adapter | HttpAdapterHost <AbstractHttpAdapter <any , any , any >> |
Defined in
Properties
adapter
• Private
adapter: HttpAdapterHost
<AbstractHttpAdapter
<any
, any
, any
>>
Defined in
i18n
• Private
Readonly
i18n: I18nService
<Record
<string
, unknown
>>
Defined in
i18nOptions
• Private
Readonly
i18nOptions: I18nOptions
Defined in
translations
• Private
translations: Observable
<I18nTranslation
>
Defined in
unsubscribe
• Private
unsubscribe: Subject
<void
>
Defined in
Methods
configure
▸ configure(consumer
): void
Parameters
Name | Type |
---|---|
consumer | MiddlewareConsumer |
Returns
void
Implementation of
NestModule.configure
Defined in
onModuleDestroy
▸ onModuleDestroy(): void
Returns
void
Implementation of
OnModuleDestroy.onModuleDestroy
Defined in
onModuleInit
▸ onModuleInit(): Promise
<void
>
Returns
Promise
<void
>
Implementation of
OnModuleInit.onModuleInit
Defined in
createAsyncLanguagesProvider
▸ Static
Private
createAsyncLanguagesProvider(): Provider
<any
>
Returns
Provider
<any
>
Defined in
createAsyncLoaderOptionsProvider
▸ Static
Private
createAsyncLoaderOptionsProvider(): Provider
<any
>
Returns
Provider
<any
>
Defined in
createAsyncOptionsProvider
▸ Static
Private
createAsyncOptionsProvider(options
): Provider
<any
>
Parameters
Name | Type |
---|---|
options | I18nAsyncOptions |
Returns
Provider
<any
>
Defined in
createAsyncTranslationProvider
▸ Static
Private
createAsyncTranslationProvider(): Provider
<any
>
Returns
Provider
<any
>
Defined in
createResolverProviders
▸ Static
Private
createResolverProviders(resolvers?
): Provider
<any
>[]
Parameters
Name | Type |
---|---|
resolvers? | I18nOptionResolver [] |
Returns
Provider
<any
>[]
Defined in
forRoot
▸ Static
forRoot(options
): DynamicModule
Parameters
Name | Type |
---|---|
options | I18nOptions |
Returns
DynamicModule
Defined in
forRootAsync
▸ Static
forRootAsync(options
): DynamicModule
Parameters
Name | Type |
---|---|
options | I18nAsyncOptions |
Returns
DynamicModule
Defined in
sanitizeI18nOptions
▸ Static
Private
sanitizeI18nOptions<T
>(options
): T
Type parameters
Name | Type |
---|---|
T | I18nOptions | I18nAsyncOptions |
Parameters
Name | Type |
---|---|
options | T |
Returns
T