feat(init): add support for international language pack initialization (#7315)

This commit is contained in:
ssongliu
2024-12-10 18:36:53 +08:00
committed by GitHub
parent f01d770fec
commit 17ef66aa49
5 changed files with 81 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ var restoreCmd = &cobra.Command{
if err := common.CopyFile(path.Join(tmpPath, "1pctl"), "/usr/local/bin"); err != nil {
return err
}
_, _ = cmdUtils.Execf("cp -r %s /usr/local/bin", path.Join(tmpPath, "lang"))
fmt.Println(i18n.GetMsgByKeyForCmd("RestoreStep3"))
if err := common.CopyFile(path.Join(tmpPath, "1panel.service"), "/etc/systemd/system"); err != nil {
return err