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>
26 lines
823 B
Go
26 lines
823 B
Go
package doctor
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
|
|
"github.com/host-uk/core/pkg/i18n"
|
|
)
|
|
|
|
// printInstallInstructions prints OS-specific installation instructions
|
|
func printInstallInstructions() {
|
|
switch runtime.GOOS {
|
|
case "darwin":
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_macos"))
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_macos_cask"))
|
|
case "linux":
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_linux_header"))
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_linux_git"))
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_linux_gh"))
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_linux_php"))
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_linux_node"))
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_linux_pnpm"))
|
|
default:
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_other"))
|
|
}
|
|
}
|