Skip to content

Commit 45a32d8

Browse files
committed
MAGETWO-34363: Pull request processing
1 parent eb0783a commit 45a32d8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/code/Magento/Translation/view/base/templates/translate.phtml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
?>
77
<?php /** @var $block \Magento\Translation\Block\Js */ ?>
88
<?php if ($block->dictionaryEnabled()): ?>
9-
<script>
10-
//<![CDATA[
11-
require(
12-
["jquery", "mage/translate", "text!<?php echo Magento\Translation\Model\Js\Config::DICTIONARY_FILE_NAME?>"],
13-
function($, translate, data){ $.mage.translate.add(JSON.parse(data)); }
14-
);
15-
// ]]>
16-
</script>
9+
<script>
10+
require([
11+
"jquery",
12+
"mage/translate",
13+
"text!<?php echo Magento\Translation\Model\Js\Config::DICTIONARY_FILE_NAME?>"
14+
], function($, translate, data) {
15+
$.mage.translate.add(JSON.parse(data));
16+
});
17+
</script>
1718
<?php endif; ?>

0 commit comments

Comments
 (0)