diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php
index 3d834e7ff0..e8f8cf2fd0 100644
--- a/lib/base/front/front.class.php
+++ b/lib/base/front/front.class.php
@@ -1224,6 +1224,7 @@ EOT;
$jsConfig->requiredFields = $requiredFields;
$jsConfig->router = $app->server->SCRIPT_NAME;
$jsConfig->save = $lang->save ?? '';
+ $jsConfig->expand = $lang->expand ?? '';
$jsConfig->runMode = $runMode;
$jsConfig->timeout = $config->timeout ?? '';
$jsConfig->pingInterval = $config->pingInterval ?? '';
diff --git a/www/js/zui3/zin.js b/www/js/zui3/zin.js
index 6b9beaefcb..bd28c2babe 100644
--- a/www/js/zui3/zin.js
+++ b/www/js/zui3/zin.js
@@ -1101,7 +1101,7 @@
maxHeightStyle = $image.height() > 0 ? 'max-height:' + maxHeight + 'px' : '';
if(!document.getElementsByClassName('xxc-embed').length && $image.width() > 0 && $image.width() > maxWidth) $image.attr('width', maxWidth);
$image.wrap('');
- if($image.height() > 0 && $image.height() > maxHeight) $image.closest('a').append("" + lang.expand + " ");
+ if($image.height() > 0 && $image.height() > maxHeight) $image.closest('a').append("" + window.config.expand + " ");
}, 50);
}