From 753f12e5d9dd9cf1b70862ca2f703b54a842ce5c Mon Sep 17 00:00:00 2001 From: hehh Date: Thu, 27 Nov 2025 02:24:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(about):=20=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=94=AF=E6=8C=81=E4=B8=AD=E7=9A=84=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E8=AE=BE=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将默认英文区域设置从 'en-US' 更改为 'en' - 统一日期本地化方法中的区域参数 - 确保中英文切换时的语言一致性 --- js/about.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/about.js b/js/about.js index 7c39e3e..aae17d4 100644 --- a/js/about.js +++ b/js/about.js @@ -564,7 +564,7 @@ class UIManager { server: window.SiteConfig.artalk.server, site: window.SiteConfig.artalk.site, // 多语言支持 - locale: isZh ? 'zh-CN' : 'en-US', + locale: isZh ? 'zh-CN' : 'en', // 自定义占位符(支持多语言) placeholder: isZh ? '说点什么吧...支持 Markdown 语法,可 @用户、发送表情' : 'Leave a comment... Supports Markdown, @mentions, and Send 😊', @@ -626,7 +626,7 @@ class UIManager { `昨天 ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}` : `Yesterday ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}`; - return date.toLocaleString(isZh ? 'zh-CN' : 'en-US', { + return date.toLocaleString(isZh ? 'zh-CN' : 'en', { year: 'numeric', month: '2-digit', day: '2-digit',