Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-translation
view
base
templates
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();
15
$fileName
=
Magento\Translation\Model\Js\Config::DICTIONARY_FILE_NAME
;
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
; ?>
$version
$version
Definition:
pre_composer_update_2.3.php:161
$block
$block
Definition:
block.php:8
$fileName
$fileName
Definition:
translate.phtml:15
endif
endif
Definition:
translate.phtml:22
Magento\Translation\Model\Js\Config\DICTIONARY_FILE_NAME
const DICTIONARY_FILE_NAME
Definition:
Config.php:39