Skip to content

Commit d16ba65

Browse files
committed
fix(lang): initialize configuration in LangCmd before generating language JSON file
1 parent c82e632 commit d16ba65

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/lang.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"strings"
1313

1414
_ "github.com/alist-org/alist/v3/drivers"
15+
"github.com/alist-org/alist/v3/internal/bootstrap"
1516
"github.com/alist-org/alist/v3/internal/bootstrap/data"
1617
"github.com/alist-org/alist/v3/internal/conf"
1718
"github.com/alist-org/alist/v3/internal/op"
@@ -137,6 +138,7 @@ var LangCmd = &cobra.Command{
137138
Use: "lang",
138139
Short: "Generate language json file",
139140
Run: func(cmd *cobra.Command, args []string) {
141+
bootstrap.InitConfig()
140142
err := os.MkdirAll("lang", 0777)
141143
if err != nil {
142144
utils.Log.Fatalf("failed create folder: %s", err.Error())

0 commit comments

Comments
 (0)