An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:globe_with_meridians: 启动界面进度提示加入多语言
Liang Ding899b38ab0a22
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 529adb7723..6c6c2d907b 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -866,9 +866,9 @@"88": "Finished parsing [%d] data files, remaining to be processed [%d]","89": "Created [%d] of data indexes of block-level elements [%s]","90": "Created [%d] of search indexes of block-level elements [%s]",- "91": "TODO",- "92": "TODO",- "93": "TODO",+ "91": "Reading block tree data...",+ "92": "Parsing document tree [%s]",+ "93": "Indexing document tree [%s]","94": "Upload failed: %s","95": "Exiting...","96": "Synchronization failed when exiting. Please manually perform a synchronization to ensure that the local data is consistent with the cloud data",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 364e93c421..f922498604 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -866,9 +866,9 @@"88": "Se ha terminado de analizar [%d] archivos de datos, quedan por procesar [%d]","89": "Creado [%d] de índices de datos de elementos a nivel de bloque [%s]","90": "Creado [%d] de índices de búsqueda de elementos a nivel de bloque [%s]",- "91": "TODO",- "92": "TODO",- "93": "TODO",+ "91": "Leyendo datos del árbol de bloques...",+ "92": "Analizando el árbol del documento [%s]",+ "93": "Árbol de documentos de indexación [%s]","94": "Carga fallida: %s","95": "Saliendo...","96": "La sincronización falló al salir. Por favor, realice manualmente una sincronización para asegurarse de que los datos locales son coherentes con los datos de la nube",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex 76f7668784..984f77ed48 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -866,9 +866,9 @@"88": "Fin de l'analyse des fichiers de données [%d], restant à traiter [%d]","89": "Créé [%d] d'index de données d'éléments de niveau bloc [%s]","90": "Création de [%d] index de recherche d'éléments de niveau bloc [%s]",- "91": "TODO",- "92": "TODO",- "93": "TODO",+ "91": "Lecture des données de l'arborescence des blocs...",+ "92": "Analyse de l'arborescence du document [%s]",+ "93": "Indexation de l'arborescence du document [%s]","94": "Échec du téléchargement : %s","95": "Quitter le programme...","96": "La synchronisation a échoué lors de la sortie. Veuillez effectuer une synchronisation manuellement pour vous assurer que les données locales sont cohérentes avec les données du cloud",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 55865b8190..2e18b6e2af 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -866,9 +866,9 @@"88": "已完成解析 [%d] 個數據文件,剩餘待處理 [%d]","89": "已經建立 [%d] 個塊級元素的數據索引 [%s]","90": "已經建立 [%d] 個塊級元素的搜索索引 [%s]",- "91": "TODO",- "92": "TODO",- "93": "TODO",+ "91": "正在讀取塊樹數據...",+ "92": "正在解析文檔樹 [%s]",+ "93": "正在索引文檔樹 [%s]","94": "上傳失敗:%s","95": "正在退出...","96": "退出時同步失敗,請手動執行一次同步以確保本地資料和雲端資料一致",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex f0e3d42f1e..40de917adb 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -867,9 +867,9 @@"88": "已完成解析 [%d] 个数据文件,剩余待处理 [%d]","89": "已经建立 [%d] 个块级元素的数据索引 [%s]","90": "已经建立 [%d] 个块级元素的搜索索引 [%s]",- "91": "TODO",- "92": "TODO",- "93": "TODO",+ "91": "正在读取块树数据...",+ "92": "正在解析文档树 [%s]",+ "93": "正在索引文档树 [%s]","94": "上传失败:%s","95": "正在退出...","96": "退出时同步失败,请手动执行一次同步以确保本地数据和云端数据一致",diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex df83018819..9cfc6842b1 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -523,11 +523,11 @@ func InitBoxes() {initialized := falseif 1 > treenode.CountBlocks() {if gulu.File.IsExist(util.BlockTreePath) {- util.IncBootProgress(20, "Reading block trees...")+ util.IncBootProgress(20, Conf.Language(91))go func() {for i := 0; i < 40; i++ {util.RandomSleep(50, 100)- util.IncBootProgress(1, "Reading block trees...")+ util.IncBootProgress(1, Conf.Language(91))}}()diff --git a/kernel/model/index.go b/kernel/model/index.goindex b95fa430f3..001ac14d03 100644--- a/kernel/model/index.go+++ b/kernel/model/index.go@@ -84,7 +84,7 @@ func (box *Box) Index(fullRebuildIndex bool) (treeCount int, treeSize int64) {docIAL := parse.IAL2MapUnEsc(tree.Root.KramdownIAL)cache.PutDocIAL(p, docIAL)- util.IncBootProgress(bootProgressPart, "Parsing tree "+util.ShortPathForBootingDisplay(tree.Path))+ util.IncBootProgress(bootProgressPart, fmt.Sprintf(Conf.Language(92), util.ShortPathForBootingDisplay(tree.Path)))treeSize += file.sizetreeCount++// 缓存文档标题,后面做 Path -> HPath 路径映射时需要@@ -161,7 +161,7 @@ func (box *Box) Index(fullRebuildIndex bool) (treeCount int, treeSize int64) {continue}- util.IncBootProgress(bootProgressPart, "Indexing tree "+util.ShortPathForBootingDisplay(tree.Path))+ util.IncBootProgress(bootProgressPart, fmt.Sprintf(Conf.Language(93), util.ShortPathForBootingDisplay(tree.Path)))tx, err := sql.BeginTx()if nil != err {continue