Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
translate.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php if ($block->dictionaryEnabled()): ?>
12 
13 <?php
14  $version = $block->getTranslationFileVersion();
16 ?>
17  <script type="text/x-magento-init">
18  {
19  "*": {
20  "mage/translate-init": {
21  "dictionaryFile": "text!<?= $block->escapeJs($fileName); ?>",
22  "version": "<?= $block->escapeJs($version) ?>"
23  }
24  }
25  }
26  </script>
27 <?php endif; ?>
$block
Definition: block.php:8
$fileName
Definition: translate.phtml:15
endif
Definition: translate.phtml:22