Model
FileManager
Magento\Translation\Model\FileManager
What it does
This class manages translation configuration files for Magento 2's JavaScript inline translation feature.
Developers use it to create, update, and version translation dictionary files (js-translation.json) that store translated phrases for the frontend.
It handles file operations like checking timestamps, merging translation content, and generating version hashes for cache busting.
Public Methods
- createTranslateConfigAsset()
- getTranslationFileTimestamp()
- getTranslationFilePath()
- updateTranslationFileContent()
- getTranslationFileVersion()