LogoPixi’VN
indexNamespacestranslatorFunctions

Function: t()

> t<T>(key): T

Defined in: src/translator/TranslatorManager.ts:53

Translates a single key or an array of keys using the registered pipeline. Returns the same type (string or string[]) as the input.

Type Parameters

T

T = string | string[]

Parameters

key

T

The string key or array of string keys to translate.

Returns

T

The translated string(s).

On this page