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 -1
View File
@@ -5,6 +5,7 @@ import (
"io"
"os"
"path/filepath"
"rawmark/internal/i18n"
"sync"
)
@@ -35,7 +36,7 @@ func (l *LogWriter) Write(p []byte) (int, error) {
l.mu.Lock()
defer l.mu.Unlock()
if len(p) > 10<<20 {
return 0, errors.New("单条日志超过大小上限")
return 0, i18n.New("a_single_log_entry_exceeds_b1cdf6")
}
if l.size+int64(len(p)) > 10<<20 {
if err := l.file.Close(); err != nil {