LogoPixi’VN
indexNamespaces

translator

Manages the translation pipeline for all text displayed by pixi-vn-json.

The pipeline applies three optional hooks in order:

  1. beforeToTranslate – pre-processes the key before translation.
  2. translate – the main translation function (identity by default).
  3. afterToTranslate – post-processes the translated string.

Use TranslatorManager.t to translate a key or array of keys.

Variables

Functions

On this page