Skip to main content

Interface: I18nTranslator<K>

Type parameters

NameType
KRecord<string, unknown>

Implemented by

Methods

t

t<P, R>(key, options?): IfAnyOrNever<R, string, R>

Type parameters

NameType
Pextends string = any
RPathValue<K, P>

Parameters

NameType
keyP
options?TranslateOptions

Returns

IfAnyOrNever<R, string, R>

Defined in

src/interfaces/i18n-translator.interface.ts:11


translate

translate<P, R>(key, options?): IfAnyOrNever<R, string, R>

Type parameters

NameType
Pextends string = any
RPathValue<K, P>

Parameters

NameType
keyP
options?TranslateOptions

Returns

IfAnyOrNever<R, string, R>

Defined in

src/interfaces/i18n-translator.interface.ts:6


validate

validate(value, options?): Promise<ValidationError[]>

Parameters

NameType
valueany
options?TranslateOptions

Returns

Promise<ValidationError[]>

Defined in

src/interfaces/i18n-translator.interface.ts:16