Interface: I18nTranslator<K>
Type parameters
Name | Type |
---|---|
K | Record <string , unknown > |
Implemented by
Methods
t
▸ t<P
, R
>(key
, options?
): IfAnyOrNever
<R
, string
, R
>
Type parameters
Name | Type |
---|---|
P | extends string = any |
R | PathValue <K , P > |
Parameters
Name | Type |
---|---|
key | P |
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
Name | Type |
---|---|
P | extends string = any |
R | PathValue <K , P > |
Parameters
Name | Type |
---|---|
key | P |
options? | TranslateOptions |
Returns
IfAnyOrNever
<R
, string
, R
>
Defined in
src/interfaces/i18n-translator.interface.ts:6
validate
▸ validate(value
, options?
): Promise
<ValidationError
[]>
Parameters
Name | Type |
---|---|
value | any |
options? | TranslateOptions |
Returns
Promise
<ValidationError
[]>