Skip to main content

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

NameType
lngundefined | string
optionsany

Returns

fn

▸ (value): string

Parameters
NameType
valueany
Returns

string

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:185