Parser
Magento\Translation\Model\Inline\Parser
What it does
This class parses HTML content and wraps translatable text with special markup to enable inline translation in Magento 2.
It processes response bodies and AJAX posts to allow administrators to edit translations directly on the frontend by adding data-translate attributes to elements.
Developers interact with this class when implementing or extending Magento's inline translation functionality.
Public Methods
- processAjaxPost()
- processResponseBodyString()
- getContent()
- setContent()
- setIsJson()