@softkit/i18n
Version:
This library is a simple wrapper based on [nestjs-i18n](https://nestjs-i18n.com/)
15 lines (14 loc) • 736 B
TypeScript
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { I18nOptions, I18nOptionResolver } from '../interfaces';
import { I18nService } from '../services/i18n.service';
import { ModuleRef } from '@nestjs/core';
import { Observable } from 'rxjs';
export declare class I18nLanguageInterceptor implements NestInterceptor {
private readonly i18nOptions;
private readonly i18nResolvers;
private readonly i18nService;
private readonly moduleRef;
constructor(i18nOptions: I18nOptions, i18nResolvers: I18nOptionResolver[], i18nService: I18nService, moduleRef: ModuleRef);
intercept(context: ExecutionContext, next: CallHandler<any>): Promise<Observable<any>>;
private getResolver;
}