PreProcessor
Magento\Translation\Model\Json\PreProcessor
What it does
This class processes JavaScript translation dictionary files during asset preprocessing in Magento 2.
When a JS translation dictionary file is requested, it loads the appropriate translations based on the current theme, area, and locale, then outputs them as JSON.
Developers typically don't interact with this class directly as it's automatically invoked during the asset compilation process to generate translation files for the frontend.
Public Methods
- process()