A translation function that resolves and interpolates a translation string.
Translation key, or a value to format directly.
OptionaldataOrLang: string | Record<string, unknown> | null
Interpolation data for a key, or Intl formatting options for a number or date; or a language code used when lang is omitted. null means no data.
Optionallang: string
Optional language code; takes precedence over dataOrLang and the default language.
The resolved and interpolated translation string.
Signature of the translation function returned by i18n.