mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
update for init i18n
This commit is contained in:
@@ -528,7 +528,7 @@ func (c *BookController) Create() {
|
||||
book.Editor = "markdown"
|
||||
book.Theme = "default"
|
||||
|
||||
if err := book.Insert(); err != nil {
|
||||
if err := book.Insert(c.Lang); err != nil {
|
||||
logs.Error("Insert => ", err)
|
||||
c.JsonResult(6005, i18n.Tr(c.Lang, "message.failed"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user