From b17a9d201ad874e66b96e1d4fc4193e0abbbb859 Mon Sep 17 00:00:00 2001 From: sight <26325820+Sight-wcg@users.noreply.github.com> Date: Mon, 30 Jun 2025 13:13:15 +0800 Subject: [PATCH] update --- 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 f8d54c3e..ead40fc0 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -183,6 +183,7 @@ layui.define(['lay', 'i18n'], function(exports) { Class.prototype.getI18nMessages = function () { var that = this; var options = that.config; + var locale = i18n.config.locale; // 纠正旧版「简体中文」语言码 if (options.lang === 'cn') { @@ -190,7 +191,7 @@ layui.define(['lay', 'i18n'], function(exports) { }else if(!options.lang){ options.lang = i18n.config.locale; } - var locale = options.lang || i18n.config.locale; + locale = options.lang; return { month: i18n.$t('laydate.month', null, {