WIP i18next

This commit is contained in:
Cindy Chang
2024-06-03 12:41:30 +08:00
parent 9a5dd2d786
commit dfd3199d4c
4 changed files with 41 additions and 1 deletions
+3 -1
View File
@@ -102,7 +102,9 @@ export function followTimeLabel(second, max, fixedNumber = 0) {
*/
export function dateLabel(date, maxDate, minDate) {
// 將時間字串轉換為時間物件
// new Date(time) 之後不用 getTime(),因為在JavaScript中,日期物件是以時間戳記(timestamp)的形式存儲的。當創建一個新的日期物件時,它內部會自動轉換時間字串為時間戳記。
// new Date(time) 之後不用 getTime(),因為在JavaScript中,
// 日期物件是以時間戳記(timestamp)的形式存儲的。當創建一個新的日期物件時,
// 它內部會自動轉換時間字串為時間戳記。
date = new Date(date);
maxDate = new Date(maxDate);
minDate = new Date(minDate);