docs-i18n: chunk raw doc translation (#62969)

Merged via squash.

Prepared head SHA: 6a16d66486
Co-authored-by: hxy91819 <8814856+hxy91819@users.noreply.github.com>
Co-authored-by: hxy91819 <8814856+hxy91819@users.noreply.github.com>
Reviewed-by: @hxy91819
This commit is contained in:
Mason
2026-04-09 23:22:16 +08:00
committed by GitHub
parent 635bb35b68
commit 06dea262c4
12 changed files with 2319 additions and 149 deletions

View File

@@ -16,6 +16,7 @@ const (
envDocsPiExecutable = "OPENCLAW_DOCS_I18N_PI_EXECUTABLE"
envDocsPiArgs = "OPENCLAW_DOCS_I18N_PI_ARGS"
envDocsPiPackageVersion = "OPENCLAW_DOCS_I18N_PI_PACKAGE_VERSION"
envDocsPiOmitProvider = "OPENCLAW_DOCS_I18N_PI_OMIT_PROVIDER"
defaultPiPackageVersion = "0.58.3"
)
@@ -118,3 +119,12 @@ func getMaterializedPiPackageVersion() string {
}
return defaultPiPackageVersion
}
func docsPiOmitProvider() bool {
switch strings.ToLower(strings.TrimSpace(os.Getenv(envDocsPiOmitProvider))) {
case "1", "true", "yes", "on":
return true
default:
return false
}
}