2026-01-30 00:22:47 +00:00
|
|
|
package doctor
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"runtime"
|
feat(i18n): add translation keys to all CLI commands
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>
2026-01-30 02:37:57 +00:00
|
|
|
|
2026-02-16 14:24:37 +00:00
|
|
|
"forge.lthn.ai/core/go/pkg/i18n"
|
2026-01-30 00:22:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// printInstallInstructions prints OS-specific installation instructions
|
|
|
|
|
func printInstallInstructions() {
|
|
|
|
|
switch runtime.GOOS {
|
|
|
|
|
case "darwin":
|
feat(i18n): add translation keys to all CLI commands
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>
2026-01-30 02:37:57 +00:00
|
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_macos"))
|
|
|
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_macos_cask"))
|
2026-01-30 00:22:47 +00:00
|
|
|
case "linux":
|
feat(i18n): add translation keys to all CLI commands
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>
2026-01-30 02:37:57 +00:00
|
|
|
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"))
|
2026-01-30 00:22:47 +00:00
|
|
|
default:
|
feat(i18n): add translation keys to all CLI commands
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>
2026-01-30 02:37:57 +00:00
|
|
|
fmt.Printf(" %s\n", i18n.T("cmd.doctor.install_other"))
|
2026-01-30 00:22:47 +00:00
|
|
|
}
|
|
|
|
|
}
|