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:

Parameter Type Description
lng string | string[] Language code or codes.
ns? string | string[] | undefined Namespace or namespaces.

Returns: TFunctionA fixed translation function.