Skip to main content

Class: I18nLanguageInterceptor

Implements

  • NestInterceptor

Constructors

constructor

new I18nLanguageInterceptor(i18nOptions, i18nResolvers, i18nService, moduleRef)

Parameters

NameType
i18nOptionsI18nOptions
i18nResolversI18nOptionResolver[]
i18nServiceI18nService<Record<string, unknown>>
moduleRefModuleRef

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

NameType
rI18nOptionResolver

Returns

Promise<I18nResolver>

Defined in

src/interceptors/i18n-language.interceptor.ts:86


intercept

intercept(context, next): Promise<Observable<any>>

Parameters

NameType
contextExecutionContext
nextCallHandler<any>

Returns

Promise<Observable<any>>

Implementation of

NestInterceptor.intercept

Defined in

src/interceptors/i18n-language.interceptor.ts:33