Replace hardcoded strings with i18n.T() calls across all cmd/* packages: - ai, build, ci, dev, docs, doctor, go, php, pkg, sdk, setup, test, vm Adds 500+ translation keys to en.json for command descriptions, flag descriptions, labels, messages, and error strings. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
776 B
Go
32 lines
776 B
Go
// Package docs provides documentation management commands.
|
|
package docs
|
|
|
|
import (
|
|
"github.com/host-uk/core/cmd/shared"
|
|
"github.com/host-uk/core/pkg/i18n"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// Style and utility aliases from shared
|
|
var (
|
|
repoNameStyle = shared.RepoNameStyle
|
|
successStyle = shared.SuccessStyle
|
|
errorStyle = shared.ErrorStyle
|
|
dimStyle = shared.DimStyle
|
|
headerStyle = shared.HeaderStyle
|
|
confirm = shared.Confirm
|
|
docsFoundStyle = shared.SuccessStyle
|
|
docsMissingStyle = shared.DimStyle
|
|
docsFileStyle = shared.InfoStyle
|
|
)
|
|
|
|
var docsCmd = &cobra.Command{
|
|
Use: "docs",
|
|
Short: i18n.T("cmd.docs.short"),
|
|
Long: i18n.T("cmd.docs.long"),
|
|
}
|
|
|
|
func init() {
|
|
docsCmd.AddCommand(docsSyncCmd)
|
|
docsCmd.AddCommand(docsListCmd)
|
|
}
|