feat(i18n): add English and Simplified Chinese

This commit is contained in:
eezd committed 2026-10-26 22:04:33 +08:00
1 parent 38c4c8b781
commit 1e9e0678ee
149 files changed
+5356 -1144

No files matched your search

+2 -2
View File
@@ -5,11 +5,11 @@ package watch
import (
"context"
"errors"
"fmt"
"io/fs"
"log/slog"
"os"
"path/filepath"
"rawmark/internal/i18n"
"sort"
"strings"
"time"
@@ -148,7 +148,7 @@ func (w *Watcher) scan() (map[string]fileState, error) {
continue // 扫描期间被删除,下一轮会处理
}
if err != nil {
return nil, fmt.Errorf("读取笔记 %s 失败: %w", e.Path, err)
return nil, i18n.New("could_not_read_note_s_708ab5", e.Path, err)
}
st.rev = vault.Rev(data)
}