feat(i18n): add English and Simplified Chinese
This commit is contained in:
1 parent
38c4c8b781
commit
1e9e0678ee
149 files changed
+5356
-1144
No files matched your search
@@ -9,6 +9,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"rawmark/internal/i18n"
|
||||
"strings"
|
||||
"sync"
|
||||
"unicode"
|
||||
@@ -75,7 +76,7 @@ func Open(path string, v *vault.Vault) (*Index, error) {
|
||||
x := &Index{db: db, v: v, wake: make(chan struct{}, 1), known: map[string]doc{}}
|
||||
if err := x.init(); err != nil {
|
||||
db.Close()
|
||||
return nil, fmt.Errorf("初始化搜索索引失败: %w", err)
|
||||
return nil, i18n.New("could_not_initialize_search_index_9155c3", err)
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user