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
@@ -3,10 +3,10 @@ package api
import (
"context"
"errors"
"fmt"
"io/fs"
"net/http"
"path/filepath"
"rawmark/internal/i18n"
"strings"
"time"
)
@@ -44,7 +44,7 @@ func (s *Server) getStorage(w http.ResponseWriter, r *http.Request) {
func scanStorage(ctx context.Context, dataDir, vaultDir string) (storageUsage, error) {
usage := storageUsage{Categories: []storageCategory{{ID: "vault"}, {ID: "databases"}, {ID: "fonts"}, {ID: "themes"}, {ID: "plugins"}, {ID: "other"}}}
if dataDir == "" {
return usage, fmt.Errorf("未配置应用数据目录")
return usage, i18n.New("application_data_directory_is_not_a1f183")
}
dataRoot, err := filepath.EvalSymlinks(dataDir)
if err != nil {