File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
app/code/Magento/Translation/view/base/templates Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 11
11
require.config({
12
12
deps: [
13
13
'jquery',
14
+ 'mage/translate',
14
15
'jquery/jquery-storageapi'
15
16
],
16
17
callback: function ($) {
17
18
'use strict';
18
19
19
- var dependencies,
20
- timeout ;
20
+ var dependencies = [] ,
21
+ versionObj ;
21
22
22
23
$.initNamespaceStorage('mage-translation-storage');
23
24
$.initNamespaceStorage('mage-translation-file-version');
24
- timeout = $.localStorage.get('mage-translation-file-version');
25
+ versionObj = $.localStorage.get('mage-translation-file-version');
25
26
26
- if (timeout .version !== '<?php /* @escapeNotVerified */
27
+ if (versionObj .version !== '<?php /* @escapeNotVerified */
27
28
echo sha1 ($ block ->getTranslationFileTimestamp () . $ block ->getTranslationFilePath ()) ?> ') {
28
- dependencies = [
29
- 'text!<?php /* @escapeNotVerified */ echo Magento \Translation \Model \Js \Config::DICTIONARY_FILE_NAME ?> ',
30
- 'mage/translate'
31
- ];
29
+ dependencies.push(
30
+ 'text!<?php /* @escapeNotVerified */ echo Magento \Translation \Model \Js \Config::DICTIONARY_FILE_NAME ?> '
31
+ );
32
32
33
- } else {
34
- dependencies = [
35
- 'mage/translate'
36
- ];
37
33
}
38
34
39
35
require.config({
You can’t perform that action at this time.
0 commit comments