# Variable: beforeToTranslate (deprecated) (/pixi-vn-json/index/namespaces/translator/variables/beforeToTranslate)



\> **beforeToTranslate**: ((`key`) => `string`) | `undefined`

Defined in: [src/translator/TranslatorManager.ts:35](https://github.com/DRincs-Productions/pixi-vn-json/blob/f2528001a05fe854a897e0c1d03c7e311fe08af2/src/translator/TranslatorManager.ts#L35)

## Deprecated [#deprecated]

Optional hook that runs **before** the built-in [TextReplaces](/pixi-vn-json/index/namespaces/TextReplaces) before-translation
replace pass. Useful for key normalization (e.g. trimming, lowercasing).

Prefer [TextReplaces.add](/pixi-vn-json/index/namespaces/TextReplaces/functions/add) with `type: "before-translation"` instead.
