Interface: I18nextNamedCachedFormatter
@sapphire/plugin-i18next.I18nextNamedCachedFormatter
Represents a cached formatter that is added to i18next with i18next.services.formatter.addCached
.
Since
7.1.0
Seealso
https://www.i18next.com/translation-function/formatting#adding-custom-format-function
Properties
cached
• cached: true
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:183
name
• name: string
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:184
Methods
format
▸ format(lng
, options
): (value
: any
) => string
Parameters
Name | Type |
---|---|
lng | undefined | string |
options | any |
Returns
fn
▸ (value
): string
Parameters
Name | Type |
---|---|
value | any |
Returns
string