LogoPixi’VN
indexNamespacestranslatorFunctions

Function: setTranslate()

> setTranslate(value): void

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

Sets the main translation function. Defaults to an identity function (returns the key unchanged).

Parameters

value

(key) => string

Returns

void

Example

setTranslate((key) => i18n.t(key));

On this page