Log in
Model

Config

Magento\Translation\Model\Js\Config

What it does

This class manages JavaScript translation configuration in Magento 2, determining how translatable strings in JS files are handled.

Developers interact with this class to check which translation strategy is active (embedded translation during publishing or dynamic dictionary-based translation) and to retrieve regex patterns for identifying translatable strings in JavaScript code.

Public Methods

  • isEmbeddedStrategy()
  • dictionaryEnabled()
  • getPatterns()