An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The marketplace language does not change after switching the appearance language https://github.com/siyuan-note/siyuan/issues/12892
Daniele25e8042bac7
diff --git a/kernel/api/setting.go b/kernel/api/setting.goindex a60c194a43..1d7d36ab60 100644--- a/kernel/api/setting.go+++ b/kernel/api/setting.go@@ -23,6 +23,7 @@ import ("github.com/88250/gulu""github.com/gin-gonic/gin"+ "github.com/siyuan-note/siyuan/kernel/bazaar""github.com/siyuan-note/siyuan/kernel/conf""github.com/siyuan-note/siyuan/kernel/model""github.com/siyuan-note/siyuan/kernel/server/proxy"@@ -527,10 +528,16 @@ func setAppearance(c *gin.Context) {model.Conf.Appearance = appearancemodel.Conf.Lang = appearance.Lang+ oldLang := util.Langutil.Lang = model.Conf.Langmodel.Conf.Save()model.InitAppearance()+ if oldLang != util.Lang {+ // The marketplace language does not change after switching the appearance language https://github.com/siyuan-note/siyuan/issues/12892+ bazaar.CleanBazaarPackageCache()+ }+ret.Data = model.Conf.Appearance}diff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.goindex 2a8cc6ab85..d172678ced 100644--- a/kernel/bazaar/package.go+++ b/kernel/bazaar/package.go@@ -722,4 +722,8 @@ func disallowDisplayBazaarPackage(pkg *Package) bool {var packageCache = gcache.New(6*time.Hour, 30*time.Minute) // [repoURL]*Package+func CleanBazaarPackageCache() {+ packageCache.Flush()+}+var packageInstallSizeCache = gcache.New(48*time.Hour, 6*time.Hour) // [repoURL]*int64