From ea59d128bfd627c8b248eecb77ebb70eaa75e330 Mon Sep 17 00:00:00 2001
From: Benjamin Lu
{ await nextTick() expect(screen.queryByTestId('hubspot-form-embed')).toBeNull() - expect(screen.getByRole('status').textContent).toContain( - 'Unable to load the form' + const status = screen.getByRole('status') + expect(status).toHaveTextContent( + "Unable to load the form. Email us at hello@comfy.org and we'll route your request." ) - expect(screen.getByRole('link').getAttribute('href')).toBe( + expect(within(status).getByRole('link').getAttribute('href')).toBe( 'mailto:hello@comfy.org' ) }) diff --git a/apps/website/src/components/common/HubspotFormEmbed.vue b/apps/website/src/components/common/HubspotFormEmbed.vue index 686179fcfd7..68b2a062d57 100644 --- a/apps/website/src/components/common/HubspotFormEmbed.vue +++ b/apps/website/src/components/common/HubspotFormEmbed.vue @@ -4,12 +4,12 @@ import { onMounted, ref } from 'vue' import type { Locale } from '@/i18n/translations' import { translationsFor } from '@/i18n/translations' +import { I18nT } from 'vue-i18n' const { formId, locale = 'en' } = defineProps<{ formId: string locale?: Locale }>() -const { t } = translationsFor(locale) const HUBSPOT_PORTAL_ID = '244637579' const HUBSPOT_REGION = 'na2' @@ -132,14 +132,19 @@ onMounted(() => { class="text-sm/6 text-primary-comfy-canvas" role="status" > - {{ t('hubspotForm.embedLoadErrorPrefix') }} - - hello@comfy.org - - {{ t('hubspotForm.embedLoadErrorSuffix') }} + + + hello@comfy.org + + +
diff --git a/apps/website/src/components/interpolatedHeadings.test.ts b/apps/website/src/components/interpolatedHeadings.test.ts
index 64e2dc171e2..02fb81bdba4 100644
--- a/apps/website/src/components/interpolatedHeadings.test.ts
+++ b/apps/website/src/components/interpolatedHeadings.test.ts
@@ -8,7 +8,9 @@ import { describe, expect, it } from 'vitest'
import OurValuesSection from './about/OurValuesSection.vue'
import StorySection from './about/StorySection.vue'
import WireNodeLayout from './common/WireNodeLayout.vue'
+import AffiliateHeroSection from '@/templates/affiliate/HeroSection.vue'
import CliWhySection from '@/templates/cli/WhySection.vue'
+import CloudNodesHeroSection from '@/templates/cloud-nodes/HeroSection.vue'
import CloudNodesWhySection from '@/templates/cloud-nodes/WhySection.vue'
import McpWhySection from '@/templates/mcp/WhySection.vue'
import AudienceSection from './product/cloud/AudienceSection.vue'
@@ -21,6 +23,7 @@ type HighlightedHeadingCase = {
locale: Locale
heading: string
highlight: string
+ level?: 1 | 2
}
const highlightedHeadings: HighlightedHeadingCase[] = [
@@ -138,16 +141,48 @@ const highlightedHeadings: HighlightedHeadingCase[] = [
locale: 'zh-CN',
heading: '完全掌控。\n只把算力交给我们。',
highlight: '只把算力交给我们。'
+ },
+ {
+ name: 'AffiliateHeroSection',
+ component: AffiliateHeroSection,
+ locale: 'en',
+ heading: 'Earn 30% recurring commission for 3 months.',
+ highlight: 'Earn 30%',
+ level: 1
+ },
+ {
+ name: 'AffiliateHeroSection',
+ component: AffiliateHeroSection,
+ locale: 'zh-CN',
+ heading: '赚取 30% 持续返佣 3 个月。',
+ highlight: '赚取 30%',
+ level: 1
+ },
+ {
+ name: 'CloudNodesHeroSection',
+ component: CloudNodesHeroSection,
+ locale: 'en',
+ heading: 'Your graph. Our GPUs.',
+ highlight: 'Your graph.',
+ level: 1
+ },
+ {
+ name: 'CloudNodesHeroSection',
+ component: CloudNodesHeroSection,
+ locale: 'ja',
+ heading: 'あなたのグラフ。 私たちのGPU。',
+ highlight: 'あなたのグラフ。',
+ level: 1
}
]
describe('interpolated headings', () => {
it.for(highlightedHeadings)(
'$name keeps the highlight inside the $locale heading',
- ({ component, locale, heading, highlight }) => {
+ ({ component, locale, heading, highlight, level = 2 }) => {
render(component, { props: { locale } })
- const title = screen.getByRole('heading', { level: 2 })
+ const title = screen.getByRole('heading', { level })
expect(title.textContent).toBe(heading)
expect(within(title).getByText(highlight)).toBeInTheDocument()
}
diff --git a/apps/website/src/components/interpolatedLinks.test.ts b/apps/website/src/components/interpolatedLinks.test.ts
new file mode 100644
index 00000000000..64b52477b3b
--- /dev/null
+++ b/apps/website/src/components/interpolatedLinks.test.ts
@@ -0,0 +1,97 @@
+import type { Component } from 'vue'
+
+import type { Locale } from '@/i18n/translations'
+
+import { render, screen, within } from '@testing-library/vue'
+import { describe, expect, it, vi } from 'vitest'
+
+import { wholeText } from '@/test/wholeText'
+import CliSetupSection from '@/templates/cli/SetupSection.vue'
+import CliSkillsSection from '@/templates/cli/SkillsSection.vue'
+import McpSetupSection from '@/templates/mcp/SetupSection.vue'
+import GetStartedSection from './home/GetStartedSection.vue'
+
+vi.mock(import('@/scripts/posthog'))
+
+type LinkSentenceCase = {
+ name: string
+ component: Component
+ locale: Locale
+ sentence: string
+ link: string
+}
+
+const linkSentences: LinkSentenceCase[] = [
+ {
+ name: 'GetStartedSection',
+ component: GetStartedSection,
+ locale: 'en',
+ sentence: 'Start from a community template or build your own.',
+ link: 'a community template'
+ },
+ {
+ name: 'GetStartedSection',
+ component: GetStartedSection,
+ locale: 'zh-CN',
+ sentence: '从社区模板开始,或自行构建。',
+ link: '社区模板'
+ },
+ {
+ name: 'CliSkillsSection',
+ component: CliSkillsSection,
+ locale: 'en',
+ sentence: 'More agent skills live in the Comfy Skills repository.',
+ link: 'Comfy Skills repository'
+ },
+ {
+ name: 'CliSkillsSection',
+ component: CliSkillsSection,
+ locale: 'ja',
+ sentence:
+ 'さらに多くのエージェントスキルは、Comfy Skillsリポジトリにあります。',
+ link: 'Comfy Skillsリポジトリ'
+ },
+ {
+ name: 'CliSetupSection',
+ component: CliSetupSection,
+ locale: 'en',
+ sentence:
+ 'Cloud runs spend Comfy credits. Add credits, or use an existing Comfy Cloud subscription. Browsing templates, models, and nodes is free with a Comfy account.',
+ link: 'Comfy Cloud subscription'
+ },
+ {
+ name: 'CliSetupSection',
+ component: CliSetupSection,
+ locale: 'ja',
+ sentence:
+ 'すべてのコマンドとフラグは、コマンドリファレンスに掲載されています。',
+ link: 'コマンドリファレンス'
+ },
+ {
+ name: 'McpSetupSection',
+ component: McpSetupSection,
+ locale: 'zh-CN',
+ sentence:
+ '如需通过 MCP 使用 Comfy Cloud,你需要任意套餐的订阅。仅充值积分不足以运行生成任务。',
+ link: '任意套餐的订阅'
+ }
+]
+
+describe('interpolated link sentences', () => {
+ it.for(linkSentences)(
+ '$name keeps the link inside the $locale sentence',
+ ({ component, locale, sentence, link }) => {
+ render(component, {
+ props: { locale },
+ global: { stubs: { VideoPlayer: true } }
+ })
+
+ const paragraph = screen.getByText(wholeText(sentence), {
+ selector: 'p'
+ })
+ expect(
+ within(paragraph).getByRole('link', { name: link })
+ ).toBeInTheDocument()
+ }
+ )
+})
diff --git a/apps/website/src/locales/en/main.json b/apps/website/src/locales/en/main.json
index f29d4315007..d0057c3e298 100644
--- a/apps/website/src/locales/en/main.json
+++ b/apps/website/src/locales/en/main.json
@@ -678,7 +678,7 @@
"heading": "Sign in to your account",
"newHere": "New to Comfy?",
"signUpLink": "Sign up here",
- "freeRunsSuffix": "to get 5 free runs.",
+ "signUpPrompt": "{link} to get 5 free runs.",
"google": "Sign in with Google",
"github": "Sign in with Github",
"googleSsoInAppBrowserNotice": "If you opened this from an in-app browser (e.g. Instagram, LinkedIn), Google sign-in may not work. Use GitHub or email, or open this page in your device's default browser.",
@@ -969,9 +969,8 @@
},
"step2": {
"title": "Load a workflow",
- "descriptionPrefix": "Start from ",
- "descriptionLink": "a community template",
- "descriptionSuffix": " or build your own."
+ "descriptionWithLink": "Start from {link} or build your own.",
+ "descriptionLink": "a community template"
},
"step3": {
"title": "Generate & Iterate",
@@ -1950,10 +1949,8 @@
"tagline": "Open source. Runs free on your own machine."
}
},
- "requirementPrefix": "To use Comfy Cloud via MCP, you need a ",
+ "requirement": "To use Comfy Cloud via MCP, you need a {link}. A credit top-up alone isn't enough to run generations.",
"requirementLinkLabel": "subscription of any tier",
- "requirementSuffix": ".",
- "requirementFootnote": " A credit top-up alone isn't enough to run generations.",
"manual": {
"title": "Install manually",
"description": "Add this URL as a custom connector or remote MCP server in your client, then sign in when prompted.",
@@ -1993,9 +1990,8 @@
"skillsNote": "Using Claude Code? The Comfy skills plugin adds ready-made slash commands. ",
"skillsLink": "View on GitHub",
"local": {
- "requirementPrefix": "The local ComfyUI connection runs free on your own hardware, and the MCP is ",
+ "requirement": "The local ComfyUI connection runs free on your own hardware, and the MCP is {link}.",
"requirementLinkLabel": "open source on GitHub",
- "requirementSuffix": ".",
"manual": {
"title": "Install the server",
"description": "Install comfy-mcp from PyPI with the command above, then register it in your client. Your client launches the server, and the server drives the ComfyUI on your machine."
@@ -2168,14 +2164,11 @@
"tagline": "Open source. Runs free on your own machine."
}
},
- "requirementPrefix": "Cloud runs spend Comfy credits. Add credits, or use an existing ",
+ "requirement": "Cloud runs spend Comfy credits. Add credits, or use an existing {link}. Browsing templates, models, and nodes is free with a Comfy account.",
"requirementLinkLabel": "Comfy Cloud subscription",
- "requirementSuffix": ".",
- "requirementFootnote": " Browsing templates, models, and nodes is free with a Comfy account.",
"local": {
- "requirementPrefix": "Local runs are free on your own hardware, and the CLI is ",
- "requirementLinkLabel": "open source on GitHub",
- "requirementSuffix": "."
+ "requirement": "Local runs are free on your own hardware, and the CLI is {link}.",
+ "requirementLinkLabel": "open source on GitHub"
},
"manual": {
"tabsLabel": "Pick your client",
@@ -2207,14 +2200,13 @@
"title": "No browser required",
"stepCloud": "Authenticate with an API key: set COMFY_API_KEY or pass --api-key. The whole submit-wait-download loop fits on one line:",
"stepLocal": "Non-interactive setup for runners and devcontainers:",
- "keyLinkPrefix": "Create your key at ",
+ "keyLink": "Create your key at {link}",
"keyLinkLabel": "platform.comfy.org"
}
},
"betaNote": "comfy generate is in beta: flag names, model aliases, and output formats may change. The underlying partner endpoints are stable.",
- "docsPrefix": "Every command and flag lives in the ",
- "docsLinkLabel": "command reference",
- "docsSuffix": "."
+ "docs": "Every command and flag lives in the {link}.",
+ "docsLinkLabel": "command reference"
},
"session": {
"heading": "A real session, start to finish.",
@@ -2226,9 +2218,8 @@
"label": "AGENT SKILLS",
"heading": "Skills your agent already knows.",
"subtitle": "One command installs five bundled skills that teach Claude Code, Cursor, and any AGENTS.md-aware tool the whole CLI. Below are six production briefs. Every prompt is ready to paste.",
- "moreSkillsPrefix": "More agent skills live in the ",
+ "moreSkills": "More agent skills live in the {link}.",
"moreSkillsLinkLabel": "Comfy Skills repository",
- "moreSkillsSuffix": ".",
"bundledLabel": "BUNDLED SKILLS",
"bundled": {
"comfy": "workflows, models, and generation from the shell",
@@ -3391,8 +3382,7 @@
}
},
"hubspotForm": {
- "embedLoadErrorPrefix": "Unable to load the form. Email us at",
- "embedLoadErrorSuffix": "and we'll route your request."
+ "embedLoadError": "Unable to load the form. Email us at {email} and we'll route your request."
},
"demos": {
"category": {
@@ -3591,7 +3581,7 @@
"hero": {
"label": "AFFILIATE",
"headingHighlight": "Earn 30%",
- "headingMuted": "recurring commission for 3 months.",
+ "headline": "{highlight} recurring commission for 3 months.",
"feature1": "30% recurring commission for 3 months",
"feature2": "60-day cookie window",
"feature3": "$100 minimum payout",
@@ -5042,7 +5032,7 @@
"body": "Every model runs on Comfy by default, you can set `model_provider` to run them on another provider. We're starting with the highest-traffic models, more models and providers are coming soon.",
"modelColumn": "MODEL",
"moreModels": "+{count} more models",
- "moreModelsSuffix": "run on Comfy",
+ "moreModelsLine": "{models} run on Comfy",
"browseAll": "Browse all {count} models",
"served": "Served",
"notServed": "Not served"
@@ -5145,7 +5135,7 @@
"update": "How to Update ComfyUI"
},
"hero": {
- "title": "Our GPUs.",
+ "headline": "{highlight} Our GPUs.",
"titleHighlight": "Your graph.",
"subtitle": "Comfy Cloud nodes run the newest open models on our GPUs from inside your own ComfyUI. Drop one into the graph you already have and wire it like any other node.",
"feature1": "No subscription",
diff --git a/apps/website/src/locales/ja/main.json b/apps/website/src/locales/ja/main.json
index a8e5278afa9..72dda58f39e 100644
--- a/apps/website/src/locales/ja/main.json
+++ b/apps/website/src/locales/ja/main.json
@@ -80,7 +80,7 @@
"feature3": "最低支払額$100",
"feature4": "毎月の支払い",
"headingHighlight": "30%を獲得",
- "headingMuted": "3か月間の継続コミッション。",
+ "headline": "{highlight} 3か月間の継続コミッション。",
"imageAlt": "Comfyアフィリエイトプログラム",
"label": "アフィリエイト"
},
@@ -240,7 +240,6 @@
"session": "サインインは完了しましたが、ワークスペースセッションを開始できませんでした。再試行するか、別のアカウントで再度サインインしてください。"
},
"forgotPassword": "パスワードをお忘れですか?",
- "freeRunsSuffix": "5回の無料実行を獲得しましょう。",
"github": "Githubでログイン",
"google": "Googleでログイン",
"googleSsoInAppBrowserNotice": "アプリ内ブラウザ(例:Instagram、LinkedIn)から開いた場合、Googleでのサインインができないことがあります。GitHubまたはメールをご利用いただくか、デバイスの標準ブラウザでこのページを開いてください。",
@@ -255,6 +254,7 @@
"retry": "セッションを再試行",
"signOut": "サインアウト",
"signUpLink": "こちらからサインアップ",
+ "signUpPrompt": "{link} 5回の無料実行を獲得しましょう。",
"signingIn": "サインインしています…",
"ssoRedirecting": "組織のサインインページに移動しています…",
"submit": "ログイン",
@@ -899,9 +899,8 @@
},
"tabsLabel": "実行場所を選択"
},
+ "docs": "すべてのコマンドとフラグは、{link}に掲載されています。",
"docsLinkLabel": "コマンドリファレンス",
- "docsPrefix": "すべてのコマンドとフラグは、",
- "docsSuffix": "に掲載されています。",
"heading": "Comfy CLIをセットアップ",
"install": {
"cloudDescription": "PyPIからインストールします(Homebrewも利用可能)。その後、クラウド接続をセットアップします。ブラウザでサインイン画面が開きます。",
@@ -910,22 +909,19 @@
},
"label": "はじめる",
"local": {
- "requirementLinkLabel": "GitHubでオープンソース",
- "requirementPrefix": "ローカル実行は自分のハードウェア上で無料で行え、CLIは",
- "requirementSuffix": "です。"
+ "requirement": "ローカル実行は自分のハードウェア上で無料で行え、CLIは{link}です。",
+ "requirementLinkLabel": "GitHubでオープンソース"
},
"manual": {
"step": "手動で進めたいですか?上記のインストール後:",
"tabsLabel": "クライアントを選択"
},
- "requirementFootnote": " Comfyアカウントがあれば、テンプレート、モデル、ノードの閲覧は無料です。",
+ "requirement": "クラウドでの実行にはComfyクレジットを使用します。クレジットを追加するか、既存の{link}を利用してください。 Comfyアカウントがあれば、テンプレート、モデル、ノードの閲覧は無料です。",
"requirementLinkLabel": "Comfy Cloudサブスクリプション",
- "requirementPrefix": "クラウドでの実行にはComfyクレジットを使用します。クレジットを追加するか、既存の",
- "requirementSuffix": "を利用してください。",
"shell": {
"ci": {
+ "keyLink": "キーを作成する:{link}",
"keyLinkLabel": "platform.comfy.org",
- "keyLinkPrefix": "キーを作成する:",
"stepCloud": "APIキーで認証します:COMFY_API_KEY を設定するか、--api-key を渡します。送信・待機・ダウンロードの一連の処理は1行で実行できます:",
"stepLocal": "ランナーおよびdevcontainer向けの非対話型セットアップ:",
"title": "ブラウザ不要"
@@ -975,9 +971,8 @@
},
"heading": "エージェントがすでに知っているスキル。",
"label": "エージェントスキル",
+ "moreSkills": "さらに多くのエージェントスキルは、{link}にあります。",
"moreSkillsLinkLabel": "Comfy Skillsリポジトリ",
- "moreSkillsPrefix": "さらに多くのエージェントスキルは、",
- "moreSkillsSuffix": "にあります。",
"subtitle": "1つのコマンドで、Claude Code、Cursor、そしてAGENTS.md対応のあらゆるツールにCLI全体を教える、バンドル済みの5つのスキルをインストールできます。以下は本番用の6つのブリーフです。すべてのプロンプトをそのまま貼り付けられます。"
},
"why": {
@@ -1230,8 +1225,8 @@
"feature1": "サブスクリプション不要",
"feature2": "ダウンロード不要、VRAMの最低要件なし",
"feature3": "GPU秒単位でクレジット課金",
+ "headline": "{highlight} 私たちのGPU。",
"subtitle": "Comfy Cloudノードなら、ご自身のComfyUI内から当社のGPUで最新のオープンモデルを実行できます。すでにあるグラフに追加し、ほかのノードと同じように接続するだけです。",
- "title": "私たちのGPU。",
"titleHighlight": "あなたのグラフ。",
"videoAlt": "ComfyUIキャンバス上のComfy Cloud Flux 2 Text to Imageノード。Save Imageノードに接続されている"
},
@@ -2176,8 +2171,7 @@
},
"step2": {
"descriptionLink": "コミュニティテンプレート",
- "descriptionPrefix": "まずは",
- "descriptionSuffix": "を使うか、独自に作成しましょう。",
+ "descriptionWithLink": "まずは{link}を使うか、独自に作成しましょう。",
"title": "ワークフローを読み込む"
},
"step3": {
@@ -2206,8 +2200,7 @@
}
},
"hubspotForm": {
- "embedLoadErrorPrefix": "フォームを読み込めません。以下のメールアドレスまでご連絡ください:",
- "embedLoadErrorSuffix": "いただいたご依頼を適切な担当へおつなぎします。"
+ "embedLoadError": "フォームを読み込めません。以下のメールアドレスまでご連絡ください: {email} いただいたご依頼を適切な担当へおつなぎします。"
},
"industries": {
"advertising": "広告・クリエイティブスタジオ",
@@ -2480,19 +2473,16 @@
"description": "上記のコマンドでPyPIから comfy-mcp をインストールし、クライアントに登録してください。クライアントがサーバーを起動し、サーバーがあなたのマシン上のComfyUIを操作します。",
"title": "サーバーをインストール"
},
- "requirementLinkLabel": "GitHubでオープンソースとして公開されています",
- "requirementPrefix": "ローカルのComfyUI接続はお使いのハードウェア上で無料で動作し、MCPは ",
- "requirementSuffix": "。"
+ "requirement": "ローカルのComfyUI接続はお使いのハードウェア上で無料で動作し、MCPは {link}。",
+ "requirementLinkLabel": "GitHubでオープンソースとして公開されています"
},
"manual": {
"description": "このURLをクライアントのカスタムコネクタまたはリモートMCPサーバーとして追加し、求められたらサインインしてください。",
"tabsLabel": "クライアントを選択",
"title": "手動でインストール"
},
- "requirementFootnote": " クレジットのチャージだけでは生成を実行できません。",
+ "requirement": "MCP経由でComfy Cloudを利用するには、{link}が必要です。 クレジットのチャージだけでは生成を実行できません。",
"requirementLinkLabel": "いずれかのプランのサブスクリプション",
- "requirementPrefix": "MCP経由でComfy Cloudを利用するには、",
- "requirementSuffix": "が必要です。",
"skillsLink": "GitHubで見る",
"skillsNote": "Claude Codeをお使いですか?Comfy skillsプラグインにより、すぐに使えるスラッシュコマンドが追加されます。 ",
"subtitle": "実行場所を選択:Comfy Cloud GPU、またはご自身のマシン。\nサーバーを自分で追加するか、エージェントにインストールを依頼すれば、ComfyUIのすべてのツールセットをチャットで利用できます。",
@@ -3302,7 +3292,7 @@
"heading": "同じモデルを、より多くの場所で実行。",
"modelColumn": "モデル",
"moreModels": "+{count}種類のモデル",
- "moreModelsSuffix": "Comfyで実行",
+ "moreModelsLine": "{models} Comfyで実行",
"notServed": "提供対象外",
"served": "提供中"
},
diff --git a/apps/website/src/locales/zh-CN/main.json b/apps/website/src/locales/zh-CN/main.json
index 6931c60907c..ba2774163bf 100644
--- a/apps/website/src/locales/zh-CN/main.json
+++ b/apps/website/src/locales/zh-CN/main.json
@@ -80,7 +80,7 @@
"feature3": "$100 起付",
"feature4": "每月结算",
"headingHighlight": "赚取 30%",
- "headingMuted": "持续返佣 3 个月。",
+ "headline": "{highlight} 持续返佣 3 个月。",
"imageAlt": "Comfy 联盟计划",
"label": "联盟"
},
@@ -246,7 +246,6 @@
"session": "您已登录,但工作区会话无法启动。请重试,或使用其他账户重新登录。"
},
"forgotPassword": "忘记密码?",
- "freeRunsSuffix": "可获得 5 次免费运行。",
"github": "使用Github登录",
"google": "使用Google登录",
"googleSsoInAppBrowserNotice": "如果您是从应用内浏览器(如 Instagram、LinkedIn)打开的,Google 登录可能无法使用。请使用 GitHub 或邮箱登录,或在设备默认浏览器中打开此页面。",
@@ -261,6 +260,7 @@
"retry": "重试会话",
"signOut": "退出登录",
"signUpLink": "在这里注册",
+ "signUpPrompt": "{link} 可获得 5 次免费运行。",
"signingIn": "正在为你登录…",
"ssoRedirecting": "正在前往你所在组织的登录页面…",
"submit": "登录",
@@ -905,9 +905,8 @@
},
"tabsLabel": "选择运行位置"
},
+ "docs": "所有命令和参数详见{link}。",
"docsLinkLabel": "命令参考",
- "docsPrefix": "所有命令和参数详见",
- "docsSuffix": "。",
"heading": "配置 Comfy CLI",
"install": {
"cloudDescription": "从 PyPI 安装(也支持 Homebrew),然后配置云端连接。它会打开浏览器完成登录。",
@@ -916,22 +915,19 @@
},
"label": "快速开始",
"local": {
- "requirementLinkLabel": "在 GitHub 上开源",
- "requirementPrefix": "本地运行在你自己的硬件上完全免费,CLI ",
- "requirementSuffix": "。"
+ "requirement": "本地运行在你自己的硬件上完全免费,CLI {link}。",
+ "requirementLinkLabel": "在 GitHub 上开源"
},
"manual": {
"step": "想手动完成?在上面的安装之后运行:",
"tabsLabel": "选择你的客户端"
},
- "requirementFootnote": "浏览模板、模型和节点只需一个 Comfy 账户,完全免费。",
+ "requirement": "云端运行消耗 Comfy 积分。添加积分,或使用现有的{link}。浏览模板、模型和节点只需一个 Comfy 账户,完全免费。",
"requirementLinkLabel": "Comfy Cloud 订阅",
- "requirementPrefix": "云端运行消耗 Comfy 积分。添加积分,或使用现有的",
- "requirementSuffix": "。",
"shell": {
"ci": {
+ "keyLink": "在此创建密钥:{link}",
"keyLinkLabel": "platform.comfy.org",
- "keyLinkPrefix": "在此创建密钥:",
"stepCloud": "使用 API 密钥认证:设置 COMFY_API_KEY 或传入 --api-key。提交、等待、下载整个流程一行搞定:",
"stepLocal": "适用于 CI runner 和 devcontainer 的非交互式配置:",
"title": "无需浏览器"
@@ -981,9 +977,8 @@
},
"heading": "你的智能体已经掌握的技能。",
"label": "智能体技能",
+ "moreSkills": "更多智能体技能见{link}。",
"moreSkillsLinkLabel": "Comfy Skills 仓库",
- "moreSkillsPrefix": "更多智能体技能见",
- "moreSkillsSuffix": "。",
"subtitle": "一条命令安装五个自带技能,让 Claude Code、Cursor 和任何支持 AGENTS.md 的工具掌握整个 CLI。下面是六个生产简报,每条提示都可以直接粘贴。"
},
"why": {
@@ -1236,8 +1231,8 @@
"feature1": "无需订阅",
"feature2": "无需下载,没有显存门槛",
"feature3": "按 GPU 秒数以积分计费",
+ "headline": "{highlight} 我们的 GPU。",
"subtitle": "Comfy Cloud 节点让你在自己的 ComfyUI 中,用我们的 GPU 运行最新的开源模型。把它放进你已有的工作流,像其他节点一样连线即可。",
- "title": "我们的 GPU。",
"titleHighlight": "你的工作流。",
"videoAlt": "ComfyUI 画布上的 Comfy Cloud Flux 2 文生图节点,连接到 Save Image 节点"
},
@@ -2184,8 +2179,7 @@
},
"step2": {
"descriptionLink": "社区模板",
- "descriptionPrefix": "从",
- "descriptionSuffix": "开始,或自行构建。",
+ "descriptionWithLink": "从{link}开始,或自行构建。",
"title": "加载工作流"
},
"step3": {
@@ -2214,8 +2208,7 @@
}
},
"hubspotForm": {
- "embedLoadErrorPrefix": "表单无法加载。请发送邮件至",
- "embedLoadErrorSuffix": "我们会为您处理请求。"
+ "embedLoadError": "表单无法加载。请发送邮件至 {email} 我们会为您处理请求。"
},
"industries": {
"advertising": "广告 & 创意工作室",
@@ -2488,19 +2481,16 @@
"description": "使用上方命令从 PyPI 安装 comfy-mcp,然后在客户端中注册。客户端会启动服务器,服务器驱动你机器上的 ComfyUI。",
"title": "安装服务器"
},
- "requirementLinkLabel": "在 GitHub 上开源",
- "requirementPrefix": "本地 ComfyUI 连接在你自己的硬件上免费运行,MCP ",
- "requirementSuffix": "。"
+ "requirement": "本地 ComfyUI 连接在你自己的硬件上免费运行,MCP {link}。",
+ "requirementLinkLabel": "在 GitHub 上开源"
},
"manual": {
"description": "将此 URL 添加为客户端的自定义连接器或远程 MCP 服务器,然后按提示登录。",
"tabsLabel": "选择你的客户端",
"title": "手动安装"
},
- "requirementFootnote": "仅充值积分不足以运行生成任务。",
+ "requirement": "如需通过 MCP 使用 Comfy Cloud,你需要{link}。仅充值积分不足以运行生成任务。",
"requirementLinkLabel": "任意套餐的订阅",
- "requirementPrefix": "如需通过 MCP 使用 Comfy Cloud,你需要",
- "requirementSuffix": "。",
"skillsLink": "在 GitHub 上查看",
"skillsNote": "在用 Claude Code?Comfy 技能插件提供现成的斜杠命令。",
"subtitle": "选择运行位置:Comfy Cloud 的 GPU,或你自己的机器。\n自行添加服务器,或让智能体代劳,ComfyUI 全套工具即可进入你的对话。",
@@ -3407,7 +3397,7 @@
"heading": "同样的模型,更多运行选择。",
"modelColumn": "模型",
"moreModels": "另有 {count} 个模型",
- "moreModelsSuffix": "在 Comfy 上运行",
+ "moreModelsLine": "{models} 在 Comfy 上运行",
"notServed": "不提供服务",
"served": "可提供服务"
},
diff --git a/apps/website/src/templates/affiliate/HeroSection.vue b/apps/website/src/templates/affiliate/HeroSection.vue
index be7c95ec31a..243dbc493d0 100644
--- a/apps/website/src/templates/affiliate/HeroSection.vue
+++ b/apps/website/src/templates/affiliate/HeroSection.vue
@@ -2,6 +2,7 @@
import type { Locale } from '@/i18n/translations'
import { translationsFor } from '@/i18n/translations'
+import { I18nT } from 'vue-i18n'
import HeroSplit01 from '@/components/blocks/HeroSplit01.vue'
import { externalLinks } from '@/config/routes.ts'
@@ -12,8 +13,6 @@ const { t } = translationsFor(locale)
- {{ t('cli.setup.local.requirementPrefix')
- }}{{ t('cli.setup.local.requirementLinkLabel') }}{{ t('cli.setup.local.requirementSuffix') }}
+
- {{ t('cli.setup.docsPrefix')
- }}{{ t('cli.setup.docsLinkLabel') }}{{ t('cli.setup.docsSuffix') }}
+
- {{ t('cli.skills.moreSkillsPrefix')
- }}{{ t('cli.skills.moreSkillsLinkLabel') }}{{ t('cli.skills.moreSkillsSuffix') }}
+
- {{ t('mcp.setup.local.requirementPrefix')
- }}{{ t('mcp.setup.local.requirementLinkLabel') }}{{ t('mcp.setup.local.requirementSuffix') }}
+