js 模板中的说明 - 支持的区域设置
作者: mighty1231创建于 2025年8月19日更新于 2025年9月7日
标签enhancement
你的功能请求是否与问题有关?请描述。 目前,通过 dayjs 设置区域设置是通过使用 require('dayjs/locale/ko') 来实现的,正如文档中所述: dayjs-changing-locale 或 dayjs-changing-locale-for-locally。但是 js-template 似乎不支持此功能。 1. 使用 require() 会出现 "Template contains potentially unsafe code ..." 错误。 2. 仅使用 dayjs().locale('ko').format('YYYY-MM-DD (dd)') 会得到 "2025-08-19 (Tu)",但我希望看到 "2025-08-19 (화)"。
内容来源: foambubble/foam