diff --git a/app/code/Magento/Translation/view/base/templates/translate.phtml b/app/code/Magento/Translation/view/base/templates/translate.phtml index 4c72e3a6da32d..a48a5e235c169 100644 --- a/app/code/Magento/Translation/view/base/templates/translate.phtml +++ b/app/code/Magento/Translation/view/base/templates/translate.phtml @@ -28,7 +28,7 @@ getTranslationFileTimestamp() . $block->getTranslationFilePath()); ?> - if (versionObj.version !== '') { + if (versionObj.version !== 'escapeJsQuote($version) ?>') { dependencies.push( 'text!' ); @@ -44,7 +44,7 @@ $.localStorage.set( 'mage-translation-file-version', { - version: '' + version: 'escapeJsQuote($version) ?>' } ); } else {