Skip to content

I18n.getFixedT method

I18n › getFixedT

Unofficial

Gets a translation function fixed to a language and namespace.

Signature:

getFixedT(lng: string | string[], ns?: string | string[] | undefined): TFunction

Parameters:

ParameterTypeDescription
lngstring | string[]Language code or codes.
ns?string | string[] | undefinedNamespace or namespaces.

Returns: TFunctionA fixed translation function.