From a06e2e4f54c0eb4674eb4ee1cef08f4aeb05e4fe Mon Sep 17 00:00:00 2001 From: sight <26325820+Sight-wcg@users.noreply.github.com> Date: Thu, 22 May 2025 23:19:05 +0800 Subject: [PATCH] fix --- src/modules/laydate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/laydate.js b/src/modules/laydate.js index de8f301f..d890ecc1 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -176,7 +176,7 @@ ,showBottom: true //是否显示底部栏 ,isPreview: true //是否显示值预览 ,btns: ['clear', 'now', 'confirm'] //右下角显示的按钮,会按照数组顺序排列 - ,lang: (isLayui && layui.cache.locale) || 'cn' //语言,只支持cn/en,即中文和英文 + ,lang: 'cn' //语言,只支持cn/en,即中文和英文 ,theme: 'default' //主题 ,position: null //控件定位方式定位, 默认absolute,支持:fixed/absolute/static ,calendar: false //是否开启公历重要节日,仅支持中文版 @@ -279,6 +279,7 @@ }; if(isLayui){ + options.lang = layui.cache.locale; var message = layui.cache.i18nMessages[layui.cache.locale]; if(message){ text[layui.cache.locale] = message.lay.laydate;