UNPKG

@softkit/i18n

Version:

This library is a simple wrapper based on [nestjs-i18n](https://nestjs-i18n.com/)

42 lines (41 loc) 1.77 kB
import { I18nContext, I18nService } from '../../../../'; import { I18nTranslations } from '../../generated/i18n.generated'; import { CreateUserDto } from '../dto/create-user.dto'; import { Hero, HeroById } from '../interfaces/hero.interface'; export declare class HelloController { private i18n; private static readonly TEST_HELLO_KEY; constructor(i18n: I18nService<I18nTranslations>); hello(lang: string): any; helloTyped(lang: string): string; index(): any; index2(): any; index3(): any; helloShort(lang: string): any; helloShortTyped(lang: string): string; helloContext(i18n: I18nContext<I18nTranslations>): any; helloContextTyped(i18n: I18nContext<I18nTranslations>): string; helloShortContext(i18n: I18nContext<I18nTranslations>): any; helloShortContextTyped(i18n: I18nContext<I18nTranslations>): string; helloRequestScope(): any; helloRequestScopeAdditionalInterceptor(): any; helloRequestScopeTyped(): string | undefined; helloShortRequestScope(): string | undefined; helloShortRequestScopeTyped(): string | undefined; object(): any; array(): any; plurarization(count: string): any; nested(username: string): any; nestedNoArgs(): any; deeplyNested(count: number): any; guard(): any; exception(): any; private static readonly THIS_ACTION_ADDS_NEW_USER; validation(_: CreateUserDto): any; validationWithoutDetails(_: CreateUserDto): any; validationWithCustomHttpCode(_: CreateUserDto): any; validationCustomFormatter(_: CreateUserDto): any; validationResponseBodyFormatter(_: CreateUserDto): any; customValidation(i18n: I18nContext<I18nTranslations>): any; findOne(data: HeroById, i18n: I18nContext<I18nTranslations>): Hero; }