File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 15
15
"magento/module-media-storage" : " *" ,
16
16
"magento/module-require-js" : " *" ,
17
17
"magento/module-store" : " *" ,
18
- "magento/module-translation" : " *" ,
19
18
"magento/module-ui" : " *" ,
20
19
"magento/module-widget" : " *"
21
20
},
Original file line number Diff line number Diff line change 11
11
<block name =" require.js" class =" Magento\Framework\View\Element\Template" template =" Magento_Theme::page/js/require_js.phtml" />
12
12
<referenceContainer name =" after.body.start" >
13
13
<block class =" Magento\RequireJs\Block\Html\Head\Config" name =" requirejs-config" />
14
- <block class =" Magento\Translation\Block\Html\Head\Config" name =" translate-config" />
15
14
<block class =" Magento\Framework\View\Element\Js\Cookie" name =" js_cookies" template =" Magento_Theme::js/cookie.phtml" />
16
15
<block class =" Magento\Theme\Block\Html\Notices" name =" global_notices" template =" Magento_Theme::html/notices.phtml" />
17
16
</referenceContainer >
Original file line number Diff line number Diff line change @@ -68,14 +68,13 @@ public function __construct(
68
68
*/
69
69
public function getTranslationDictionary (): string
70
70
{
71
+ $ asset = $ this ->assetRepo ->createAsset (JsConfig::DICTIONARY_FILE_NAME );
71
72
if ($ this ->appState ->getMode () === AppState::MODE_PRODUCTION ) {
72
- $ asset = $ this ->assetRepo ->createAsset (JsConfig::DICTIONARY_FILE_NAME );
73
73
$ staticViewFilePath = $ this ->filesystem ->getDirectoryRead (
74
74
DirectoryList::STATIC_VIEW
75
75
)->getAbsolutePath ();
76
76
$ content = $ this ->filesystemDriver ->fileGetContents ($ staticViewFilePath . $ asset ->getPath ());
77
77
} else {
78
- $ asset = $ this ->assetRepo ->createAsset (JsConfig::DICTIONARY_FILE_NAME );
79
78
$ content = $ asset ->getContent ();
80
79
}
81
80
Original file line number Diff line number Diff line change 8
8
<page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
9
<body >
10
10
<referenceBlock name =" head.additional" >
11
+ <block class =" Magento\Translation\Block\Html\Head\Config" name =" translate-config" />
11
12
<block name =" translation_dictionary" template =" Magento_Translation::dictionary.phtml" before =" -" >
12
13
<arguments >
13
14
<argument name =" dictionary_view_model" xsi : type =" object" >Magento\Translation\ViewModel\Dictionary</argument >
You can’t perform that action at this time.
0 commit comments