index.d.ts (i18next-19.8.3) | : | index.d.ts (i18next-19.8.4) | ||
---|---|---|---|---|
export interface FallbackLngObjList { | export interface FallbackLngObjList { | |||
[language: string]: string[]; | [language: string]: string[]; | |||
} | } | |||
export type FallbackLng = string | string[] | FallbackLngObjList | ((code:string ) => string | string[] | FallbackLngObjList); | export type FallbackLng = string | string[] | FallbackLngObjList | ((code:string ) => string | string[] | FallbackLngObjList); | |||
export type FormatFunction = (value: any, format?: string, lng?: string) => stri ng; | export type FormatFunction = (value: any, format?: string, lng?: string, options ?: InterpolationOptions & { [key: string]: any }) => string; | |||
export interface InterpolationOptions { | export interface InterpolationOptions { | |||
/** | /** | |||
* Format function see formatting for details | * Format function see formatting for details | |||
* @default noop | * @default noop | |||
*/ | */ | |||
format?: FormatFunction; | format?: FormatFunction; | |||
/** | /** | |||
* Used to separate format from interpolation value | * Used to separate format from interpolation value | |||
* @default ',' | * @default ',' | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |