Skip to content

Commit f14a4c2

Browse files
committed
fix: use moment.updateLocale
Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.
1 parent bf2dab1 commit f14a4c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/om midi.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* 在此处获取最新版:https://github.com/otomad/om_midi/releases/latest
1313
* 仓库地址:https://github.com/otomad/om_midi
1414
*
15-
* 构建日期:公元 2025 年 6 月 11 日 星期三 早上 6:56:48 +08:00 CST
15+
* 构建日期:公元 2025 年 6 月 11 日 星期三 早上 7:00:24 +08:00 CST
1616
* 项目开始日期:公元 2022 年 8 月 8 日 星期一 上午 10:08:03 +08:00 CST
1717
* Copyright © 2022, Rantetsu Inori - Licensed under GPLv3
1818
*
@@ -42,7 +42,7 @@
4242
* Get the Latest Version Here: https://github.com/otomad/om_midi/releases/latest
4343
* Repository Link: https://github.com/otomad/om_midi
4444
*
45-
* Building Date: Wednesday, June 11th, Anno Domini 2025 6:56:48 AM +08:00 CST
45+
* Building Date: Wednesday, June 11th, Anno Domini 2025 7:00:24 AM +08:00 CST
4646
* Project Start Date: Monday, August 8th, Anno Domini 2022 10:08:03 AM +08:00 CST
4747
* Copyright © 2022, Rantetsu Inori - Licensed under GPLv3
4848
*

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import path from "path";
99
import cleanup from "rollup-plugin-cleanup";
1010
import moment from "moment";
1111

12-
moment.locale("en", {
12+
moment.updateLocale("en", {
1313
longDateFormat: {
1414
LT: "h:mm:ss A",
1515
LLLL: "dddd, MMMM Do, NNNN y LT Z z",
1616
},
1717
});
18-
moment.locale("zh-cn", {
18+
moment.updateLocale("zh-cn", {
1919
longDateFormat: {
2020
LLLL: "NNNN y 年 M 月 D 日 dddd A H:mm:ss Z z",
2121
},

0 commit comments

Comments
 (0)