Browse Source

:art: Changelog supports Traditional Chinese https://github.com/siyuan-note/siyuan/issues/8333

Daniel 2 years ago
parent
commit
826bcba394
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/api/system.go

+ 1 - 1
kernel/api/system.go

@@ -51,7 +51,7 @@ func getChangelog(c *gin.Context) {
 
 
 	changelogPath := filepath.Join(changelogsDir, "v"+util.Ver, "v"+util.Ver+"_"+model.Conf.Lang+".md")
 	changelogPath := filepath.Join(changelogsDir, "v"+util.Ver, "v"+util.Ver+"_"+model.Conf.Lang+".md")
 	if !gulu.File.IsExist(changelogPath) {
 	if !gulu.File.IsExist(changelogPath) {
-		changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
+		changelogPath = filepath.Join(changelogsDir, "v"+util.Ver, "v"+util.Ver+".md")
 		if !gulu.File.IsExist(changelogPath) {
 		if !gulu.File.IsExist(changelogPath) {
 			logging.LogErrorf("changelog not found: %s", changelogPath)
 			logging.LogErrorf("changelog not found: %s", changelogPath)
 			return
 			return