Class: I18nLanguageInterceptor
Implements
NestInterceptor
Constructors
constructor
• new I18nLanguageInterceptor(i18nOptions
, i18nResolvers
, i18nService
, moduleRef
)
Parameters
Name | Type |
---|---|
i18nOptions | I18nOptions |
i18nResolvers | I18nOptionResolver [] |
i18nService | I18nService <Record <string , unknown >> |
moduleRef | ModuleRef |
Defined in
src/interceptors/i18n-language.interceptor.ts:24
Properties
i18nOptions
• Private
Readonly
i18nOptions: I18nOptions
Defined in
src/interceptors/i18n-language.interceptor.ts:26
i18nResolvers
• Private
Readonly
i18nResolvers: I18nOptionResolver
[]
Defined in
src/interceptors/i18n-language.interceptor.ts:28
i18nService
• Private
Readonly
i18nService: I18nService
<Record
<string
, unknown
>>
Defined in
src/interceptors/i18n-language.interceptor.ts:29
moduleRef
• Private
Readonly
moduleRef: ModuleRef
Defined in
src/interceptors/i18n-language.interceptor.ts:30
Methods
getResolver
▸ Private
getResolver(r
): Promise
<I18nResolver
>
Parameters
Name | Type |
---|---|
r | I18nOptionResolver |
Returns
Promise
<I18nResolver
>
Defined in
src/interceptors/i18n-language.interceptor.ts:86
intercept
▸ intercept(context
, next
): Promise
<Observable
<any
>>
Parameters
Name | Type |
---|---|
context | ExecutionContext |
next | CallHandler <any > |
Returns
Promise
<Observable
<any
>>
Implementation of
NestInterceptor.intercept