fix(about): 修复多语言支持中的区域设置问题

- 将默认英文区域设置从 'en-US' 更改为 'en'
- 统一日期本地化方法中的区域参数
- 确保中英文切换时的语言一致性
This commit is contained in:
hehh
2025-11-27 02:24:46 +08:00
parent 50fcc7454d
commit 753f12e5d9

View File

@@ -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',