Model
PreProcessor
Magento\Translation\Model\Js\PreProcessor
What it does
This class preprocesses JavaScript files during static content deployment to embed translated strings directly into JS files.
Developers would use this when needing to optimize translation performance by replacing translation function calls with actual translated text at build time, rather than runtime translation lookups.
Public Methods
- process()
- translate()
- loadTranslationDataBasedOnThemesAndLocales()
- isCheckStrategyCompact()