* add lang for xuan global options.

This commit is contained in:
Tintin
2021-12-07 15:35:10 +08:00
parent 9a2148a540
commit b4398a1799
@@ -43,6 +43,7 @@ $(document).on('showapp', function(e, app)
</style>
<?php js::import($webRoot . 'data/xuanxuan/sdk/sdk.min.js'); ?>
<?php js::set('xuanConfig', $xuanConfig); ?>
<?php js::set('lang', $this->app->getClientLang()); ?>
<script>
/* Toggle xuan client popover */
function toggleXuanClient()
@@ -72,7 +73,8 @@ Xuanxuan.setGlobalOptions(
preload: true,
showHeader: false,
onNotice: handleXuanNoticeChange,
onRouteChange: handleXuanRouteChange
onRouteChange: handleXuanRouteChange,
lang: lang
});
$(function() {