LogoPixi’VN
indexNamespacestranslatorFunctions

Function: translate()

> translate(key): string

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

Runs the composed translation pipeline:

  1. optional beforeToTranslate hook (deprecated)
  2. TextReplaces.replace – before-translation phase
  3. main translate function
  4. optional afterToTranslate hook (deprecated)
  5. TextReplaces.replace – after-translation phase

Parameters

key

string

Returns

string

On this page