feat: rename UCloud provider to Compshare/优云智算 with i18n support

Add optional `nameKey` field to all preset interfaces for localized
display names. The preset selector and form now resolve `nameKey` via
i18next, falling back to `name` when unset.

- zh: 优云智算 / en+ja: Compshare
- Update model ID prefix ucloud/ → compshare/ in OpenClaw presets
- Update partner promotion copy and README sponsor descriptions
This commit is contained in:
Jason
2026-03-10 23:43:23 +08:00
parent 273a756869
commit 0bcbffb8a0
13 changed files with 38 additions and 19 deletions
+4 -2
View File
@@ -6,6 +6,7 @@ import type { PresetTheme } from "./claudeProviderPresets";
export interface CodexProviderPreset {
name: string;
nameKey?: string; // i18n key for localized display name
websiteUrl: string;
// 第三方供应商可提供单独的获取 API Key 链接
apiKeyUrl?: string;
@@ -281,13 +282,14 @@ requires_openai_auth = true`,
iconColor: "#000000",
},
{
name: "Ucloud",
name: "Compshare",
nameKey: "providerForm.presets.ucloud",
websiteUrl: "https://www.compshare.cn",
apiKeyUrl:
"https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig(
"ucloud",
"compshare",
"https://api.modelverse.cn/v1",
"gpt-5.4",
),