LogoPixi’VN
indexNamespacestranslatorVariables

Variable: beforeToTranslate (deprecated)

> beforeToTranslate: ((key) => string) | undefined

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

Deprecated

Optional hook that runs before the built-in TextReplaces before-translation replace pass. Useful for key normalization (e.g. trimming, lowercasing).

Prefer TextReplaces.add with type: "before-translation" instead.

On this page