Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / i18n / TOptions

Type Alias: TOptions<TInterpolationMap>

TOptions<TInterpolationMap> = TOptionsBase & TInterpolationMap

Defined in: node_modules/i18next/typescript/options.d.ts:786

Options for i18next translation string interpolation.

Passed as the third parameter to t() to provide dynamic values for placeholder variables in translation strings (i18next double-brace syntax).

Type Parameters

TInterpolationMap

TInterpolationMap extends object = $Dictionary

Example

ts
t('error.fileNotFound', 'File {{path}} not found.', { path: '/foo/bar' })

See

https://www.i18next.com/interpolation.html

Released under the Apache-2.0 License.