MCPcopy
hub / github.com/Reamd7/notion-zh_CN / insertMoment

Function insertMoment

template/notion-zh_TW.template.js:62–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 function insertMoment() {
63 try {
64 moment.updateLocale(lang.toLowerCase(), {
65 longDateFormat: {
66 LT: "h:mm A",
67 LTS: "h:mm:ss A",
68 L: "YYYY/MM/DD",
69 LL: "YYYY年M月D日",
70 LLL: "YYYY年M月D日Ah点mm分",
71 LLLL: "YYYY年M月D日ddddAh点mm分",
72 l: "YYYY/M/D",
73 ll: "YYYY年M月D日",
74 lll: "YYYY年M月D日 HH:mm",
75 llll: "YYYY年M月D日dddd HH:mm",
76 },
77 });
78 moment.locale(lang.toLowerCase());
79 } catch (e) {
80 requestAnimationFrame(() => {
81 insertMoment();
82 });
83 }
84 }
85
86 try {
87 const preferredLocaleStr = window.localStorage.getItem(

Calls

no outgoing calls

Tested by

no test coverage detected