From fa9ac560455350a5045a7a5b965aed5f57996f7e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 16 Oct 2026 13:20:26 +0000 Subject: [PATCH 1/2] fix: name the real Billing & invoices button in the no-payment-method top-up error The NO_PAYMENT_METHOD toast told users to open 'Manage billing', but in cloud the Plan & Credits panel labels that button 'Billing & invoices' (renamed in #14608, before the copy landed in #16049). Several locales also named the settings section differently from the sidebar. Interpolate both names from the keys the UI renders (settingsCategories.PlanCredits, subscription.billingAndInvoices) so the instruction cannot drift from the controls again. --- browser_tests/tests/dialogs/topUpNoPaymentMethod.spec.ts | 2 +- src/locales/ar/main.json | 2 +- src/locales/de/main.json | 2 +- src/locales/en/main.json | 2 +- src/locales/es/main.json | 2 +- src/locales/fa/main.json | 2 +- src/locales/fr/main.json | 2 +- src/locales/he/main.json | 2 +- src/locales/it/main.json | 2 +- src/locales/ja/main.json | 2 +- src/locales/ko/main.json | 2 +- src/locales/pt-BR/main.json | 2 +- src/locales/ru/main.json | 2 +- src/locales/tr/main.json | 2 +- src/locales/zh-TW/main.json | 2 +- src/locales/zh/main.json | 2 +- .../components/TopUpCreditsDialogContentWorkspace.test.ts | 2 +- .../components/TopUpCreditsDialogContentWorkspace.vue | 5 ++++- 18 files changed, 21 insertions(+), 18 deletions(-) diff --git a/browser_tests/tests/dialogs/topUpNoPaymentMethod.spec.ts b/browser_tests/tests/dialogs/topUpNoPaymentMethod.spec.ts index c2612dd5393..55d4e374206 100644 --- a/browser_tests/tests/dialogs/topUpNoPaymentMethod.spec.ts +++ b/browser_tests/tests/dialogs/topUpNoPaymentMethod.spec.ts @@ -49,7 +49,7 @@ test.describe('Top-up without a saved payment method', () => { await expect( comfyPage.toast.toastErrors.filter({ - hasText: /Add one via Settings → Plan & Credits → Manage billing/ + hasText: 'Add one via Settings → Plan & Credits → Billing & invoices' }) ).toBeVisible() }) diff --git a/src/locales/ar/main.json b/src/locales/ar/main.json index edfff13372f..b6a22879e7a 100644 --- a/src/locales/ar/main.json +++ b/src/locales/ar/main.json @@ -1179,7 +1179,7 @@ "minRequired": "الحد الأدنى {credits} أرصدة", "minimumPurchase": "الحد الأدنى ${amount} ({credits} أرصدة)", "needMore": "تحتاج المزيد؟", - "noPaymentMethodError": "لا توجد طريقة دفع محفوظة لمساحة العمل هذه. أضف واحدة عبر الإعدادات ← الخطة والأرصدة ← إدارة الفوترة، ثم أعد محاولة شحن الرصيد.", + "noPaymentMethodError": "لا توجد طريقة دفع محفوظة لمساحة العمل هذه. أضف واحدة عبر الإعدادات ← {section} ← {action}، ثم أعد محاولة شحن الرصيد.", "payAmount": "ادفع {amount}", "purchaseError": "فشل الشراء", "purchaseErrorDetail": "فشل شراء الرصيد: {error}", diff --git a/src/locales/de/main.json b/src/locales/de/main.json index 9b3b2fd3aee..95c44c23ed5 100644 --- a/src/locales/de/main.json +++ b/src/locales/de/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Mindestens {credits} Credits", "minimumPurchase": "${amount} Mindestbetrag ({credits} Credits)", "needMore": "Benötigen Sie mehr?", - "noPaymentMethodError": "Für diesen Workspace ist keine Zahlungsmethode gespeichert. Fügen Sie eine unter Einstellungen → Tarif & Guthaben → Abrechnung verwalten hinzu und versuchen Sie die Aufladung dann erneut.", + "noPaymentMethodError": "Für diesen Workspace ist keine Zahlungsmethode gespeichert. Fügen Sie eine unter Einstellungen → {section} → {action} hinzu und versuchen Sie die Aufladung dann erneut.", "payAmount": "{amount} bezahlen", "purchaseError": "Kauf fehlgeschlagen", "purchaseErrorDetail": "Credits konnten nicht gekauft werden: {error}", diff --git a/src/locales/en/main.json b/src/locales/en/main.json index 9be0f615672..2a060da77d6 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -2950,7 +2950,7 @@ "addMoreCreditsToRun": "Add more credits to run", "insufficientWorkflowMessage": "You don't have enough credits to run this workflow.", "creditsDescription": "Credits are used to run workflows or partner nodes.", - "noPaymentMethodError": "No payment method is saved for this workspace. Add one via Settings → Plan & Credits → Manage billing, then retry the top-up.", + "noPaymentMethodError": "No payment method is saved for this workspace. Add one via Settings → {section} → {action}, then retry the top-up.", "confirmSubtitle": "Credits are added to this workspace as soon as payment completes.", "confirmTitle": "Confirm", "howManyCredits": "How many credits would you like to add?", diff --git a/src/locales/es/main.json b/src/locales/es/main.json index 830c6c56d32..4d5052d26d4 100644 --- a/src/locales/es/main.json +++ b/src/locales/es/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Mínimo {credits} créditos", "minimumPurchase": "Mínimo ${amount} ({credits} créditos)", "needMore": "¿Necesitas más?", - "noPaymentMethodError": "No hay ningún método de pago guardado para este espacio de trabajo. Añade uno en Configuración → Plan y créditos → Gestionar facturación y vuelve a intentar la recarga.", + "noPaymentMethodError": "No hay ningún método de pago guardado para este espacio de trabajo. Añade uno en Configuración → {section} → {action} y vuelve a intentar la recarga.", "payAmount": "Pagar {amount}", "purchaseError": "Compra fallida", "purchaseErrorDetail": "No se pudo comprar créditos: {error}", diff --git a/src/locales/fa/main.json b/src/locales/fa/main.json index 349fe2341e7..8f05401a2fd 100644 --- a/src/locales/fa/main.json +++ b/src/locales/fa/main.json @@ -1179,7 +1179,7 @@ "minRequired": "حداقل {credits} اعتبار", "minimumPurchase": "حداقل {amount} ({credits} اعتبار)", "needMore": "بیشتر نیاز دارید؟", - "noPaymentMethodError": "هیچ روش پرداختی برای این فضای کاری ذخیره نشده است. از مسیر تنظیمات ← طرح و اعتبارها ← مدیریت صورتحساب، یک روش اضافه کنید و سپس شارژ را دوباره امتحان کنید.", + "noPaymentMethodError": "هیچ روش پرداختی برای این فضای کاری ذخیره نشده است. از مسیر تنظیمات ← {section} ← {action}، یک روش اضافه کنید و سپس شارژ را دوباره امتحان کنید.", "payAmount": "پرداخت {amount}", "purchaseError": "خرید ناموفق بود", "purchaseErrorDetail": "خرید اعتبار ناموفق بود: {error}", diff --git a/src/locales/fr/main.json b/src/locales/fr/main.json index da339bb756a..edc78dee938 100644 --- a/src/locales/fr/main.json +++ b/src/locales/fr/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Minimum {credits} crédits", "minimumPurchase": "Achat minimum de ${amount} ({credits} crédits)", "needMore": "Besoin de plus ?", - "noPaymentMethodError": "Aucun mode de paiement n’est enregistré pour cet espace de travail. Ajoutez-en un via Paramètres → Forfait et crédits → Gérer la facturation, puis réessayez de recharger votre solde.", + "noPaymentMethodError": "Aucun mode de paiement n’est enregistré pour cet espace de travail. Ajoutez-en un via Paramètres → {section} → {action}, puis réessayez de recharger votre solde.", "payAmount": "Payer {amount}", "purchaseError": "Échec de l'achat", "purchaseErrorDetail": "Échec de l'achat de crédits : {error}", diff --git a/src/locales/he/main.json b/src/locales/he/main.json index 40a0f1c1d59..94087e93035 100644 --- a/src/locales/he/main.json +++ b/src/locales/he/main.json @@ -1179,7 +1179,7 @@ "minRequired": "{credits} קרדיטים מינימום", "minimumPurchase": "{amount}$ מינימום ({credits} קרדיטים)", "needMore": "צריך עוד?", - "noPaymentMethodError": "לא נשמר אמצעי תשלום עבור סביבת עבודה זו. הוסיפו אמצעי תשלום דרך הגדרות → תוכנית וקרדיטים → ניהול חיוב, ולאחר מכן נסו שוב לבצע את ההטענה.", + "noPaymentMethodError": "לא נשמר אמצעי תשלום עבור סביבת עבודה זו. הוסיפו אמצעי תשלום דרך הגדרות → {section} → {action}, ולאחר מכן נסו שוב לבצע את ההטענה.", "payAmount": "שלם {amount}", "purchaseError": "הרכישה נכשלה", "purchaseErrorDetail": "רכישת הקרדיטים נכשלה: {error}", diff --git a/src/locales/it/main.json b/src/locales/it/main.json index 29e56f49b24..03ff3055b9e 100644 --- a/src/locales/it/main.json +++ b/src/locales/it/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Minimo {credits} crediti", "minimumPurchase": "Minimo ${amount} ({credits} crediti)", "needMore": "Hai bisogno di più?", - "noPaymentMethodError": "Non è stato salvato alcun metodo di pagamento per questo spazio di lavoro. Aggiungine uno tramite Impostazioni → Piano e crediti → Gestisci fatturazione, quindi riprova la ricarica.", + "noPaymentMethodError": "Non è stato salvato alcun metodo di pagamento per questo spazio di lavoro. Aggiungine uno tramite Impostazioni → {section} → {action}, quindi riprova la ricarica.", "payAmount": "Paga {amount}", "purchaseError": "Acquisto fallito", "purchaseErrorDetail": "Impossibile acquistare crediti: {error}", diff --git a/src/locales/ja/main.json b/src/locales/ja/main.json index 6de44d6a100..8b6204be608 100644 --- a/src/locales/ja/main.json +++ b/src/locales/ja/main.json @@ -1179,7 +1179,7 @@ "minRequired": "最低{credits}クレジット", "minimumPurchase": "最低購入額:${amount}({credits}クレジット)", "needMore": "さらに必要ですか?", - "noPaymentMethodError": "このワークスペースには支払い方法が保存されていません。[設定]→[プランとクレジット]→[請求を管理]から追加してから、チャージを再試行してください。", + "noPaymentMethodError": "このワークスペースには支払い方法が保存されていません。[設定]→[{section}]→[{action}]から追加してから、チャージを再試行してください。", "payAmount": "{amount} を支払う", "purchaseError": "購入に失敗しました", "purchaseErrorDetail": "クレジットの購入に失敗しました: {error}", diff --git a/src/locales/ko/main.json b/src/locales/ko/main.json index e142dfcbb29..28fa0730b11 100644 --- a/src/locales/ko/main.json +++ b/src/locales/ko/main.json @@ -1179,7 +1179,7 @@ "minRequired": "최소 {credits} 크레딧", "minimumPurchase": "최소 ${amount} ({credits} 크레딧)", "needMore": "더 필요하신가요?", - "noPaymentMethodError": "이 워크스페이스에 저장된 결제 수단이 없습니다. 설정 → 플랜 및 크레딧 → 청구 관리에서 결제 수단을 추가한 후 크레딧 충전을 다시 시도하세요.", + "noPaymentMethodError": "이 워크스페이스에 저장된 결제 수단이 없습니다. 설정 → {section} → {action}에서 결제 수단을 추가한 후 크레딧 충전을 다시 시도하세요.", "payAmount": "{amount} 결제하기", "purchaseError": "구매 실패", "purchaseErrorDetail": "크레딧 구매 실패: {error}", diff --git a/src/locales/pt-BR/main.json b/src/locales/pt-BR/main.json index d191fae17fe..3c577487742 100644 --- a/src/locales/pt-BR/main.json +++ b/src/locales/pt-BR/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Mínimo de {credits} créditos", "minimumPurchase": "Mínimo de ${amount} ({credits} créditos)", "needMore": "Precisa de mais?", - "noPaymentMethodError": "Nenhuma forma de pagamento está salva neste espaço de trabalho. Adicione uma em Configurações → Plano e créditos → Gerenciar faturamento e tente recarregar novamente.", + "noPaymentMethodError": "Nenhuma forma de pagamento está salva neste espaço de trabalho. Adicione uma em Configurações → {section} → {action} e tente recarregar novamente.", "payAmount": "Pagar {amount}", "purchaseError": "Falha na compra", "purchaseErrorDetail": "Falha ao comprar créditos: {error}", diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index 79728f3aa4d..60dfcfa3d13 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Минимум {credits} кредитов", "minimumPurchase": "Минимум ${amount} ({credits} кредитов)", "needMore": "Нужно больше?", - "noPaymentMethodError": "Для этого рабочего пространства не сохранён способ оплаты. Добавьте его в разделе «Настройки → Тариф и кредиты → Управление оплатой», затем повторите пополнение.", + "noPaymentMethodError": "Для этого рабочего пространства не сохранён способ оплаты. Добавьте его в разделе «Настройки → {section} → {action}», затем повторите пополнение.", "payAmount": "Оплатить {amount}", "purchaseError": "Покупка не удалась", "purchaseErrorDetail": "Не удалось купить кредиты: {error}", diff --git a/src/locales/tr/main.json b/src/locales/tr/main.json index c123599f95d..10c166fa3c7 100644 --- a/src/locales/tr/main.json +++ b/src/locales/tr/main.json @@ -1179,7 +1179,7 @@ "minRequired": "En az {credits} kredi", "minimumPurchase": "En az ${amount} ({credits} kredi)", "needMore": "Daha fazlasına mı ihtiyacınız var?", - "noPaymentMethodError": "Bu çalışma alanı için kayıtlı bir ödeme yöntemi yok. Ayarlar → Plan ve Krediler → Faturalandırmayı yönet üzerinden bir tane ekleyin, ardından kredi yüklemeyi yeniden deneyin.", + "noPaymentMethodError": "Bu çalışma alanı için kayıtlı bir ödeme yöntemi yok. Ayarlar → {section} → {action} üzerinden bir tane ekleyin, ardından kredi yüklemeyi yeniden deneyin.", "payAmount": "{amount} öde", "purchaseError": "Satın Alma Başarısız", "purchaseErrorDetail": "Kredi satın alınamadı: {error}", diff --git a/src/locales/zh-TW/main.json b/src/locales/zh-TW/main.json index 184a7f8e44d..dc28800b3dc 100644 --- a/src/locales/zh-TW/main.json +++ b/src/locales/zh-TW/main.json @@ -1179,7 +1179,7 @@ "minRequired": "最低需購買 {credits} 點", "minimumPurchase": "最低購買 ${amount}(${credits} 點)", "needMore": "需要更多?", - "noPaymentMethodError": "此工作區尚未儲存付款方式。請依序前往「設定」→「方案與點數」→「管理帳務」新增付款方式,然後再試一次儲值。", + "noPaymentMethodError": "此工作區尚未儲存付款方式。請依序前往「設定」→「{section}」→「{action}」新增付款方式,然後再試一次儲值。", "payAmount": "支付 {amount}", "purchaseError": "購買失敗", "purchaseErrorDetail": "購買點數失敗:{error}", diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json index 43d4dceb288..c79cf35e207 100644 --- a/src/locales/zh/main.json +++ b/src/locales/zh/main.json @@ -1179,7 +1179,7 @@ "minRequired": "最少{credits}积分", "minimumPurchase": "最低${amount}({credits}积分)", "needMore": "需要更多?", - "noPaymentMethodError": "此工作区未保存付款方式。请通过“设置 → 套餐与积分 → 管理账单”添加付款方式,然后重试充值。", + "noPaymentMethodError": "此工作区未保存付款方式。请通过“设置 → {section} → {action}”添加付款方式,然后重试充值。", "payAmount": "支付 {amount}", "purchaseError": "购买失败", "purchaseErrorDetail": "购买积分失败:{error}", diff --git a/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.test.ts b/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.test.ts index 07ec96d79f9..4e0fa710bb9 100644 --- a/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.test.ts +++ b/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.test.ts @@ -611,7 +611,7 @@ describe('TopUpCreditsDialogContentWorkspace', () => { await waitFor(() => expect(useToast().error).toHaveBeenCalledWith('Purchase Failed', { description: - 'No payment method is saved for this workspace. Add one via Settings → Plan & Credits → Manage billing, then retry the top-up.' + 'No payment method is saved for this workspace. Add one via Settings → Plan & Credits → Billing & invoices, then retry the top-up.' }) ) }) diff --git a/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue b/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue index 633574edceb..70dfce4acc5 100644 --- a/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue +++ b/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue @@ -765,7 +765,10 @@ function reportTerminal( function purchaseErrorDetail(error?: unknown): string { const code = error instanceof WorkspaceApiError ? error.code : undefined if (code === 'NO_PAYMENT_METHOD') { - return t('credits.topUp.noPaymentMethodError') + return t('credits.topUp.noPaymentMethodError', { + section: t('settingsCategories.PlanCredits'), + action: t('subscription.billingAndInvoices') + }) } // Only one billing operation is open at a time, so this refusal means the // previous purchase has not settled or expired yet — not that anything failed. From 69a36e8cf5cbde86cd0fccd38192dca21d30f14c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 16 Oct 2026 13:25:18 +0000 Subject: [PATCH 2/2] fix: inline the settings labels instead of interpolating them The app i18n instance sets escapeParameter, so interpolated labels containing '&' rendered as '&' in the plain-text toast. Write each locale's Plan & Credits and Billing & invoices labels into the message directly. --- src/locales/ar/main.json | 2 +- src/locales/de/main.json | 2 +- src/locales/en/main.json | 2 +- src/locales/es/main.json | 2 +- src/locales/fa/main.json | 2 +- src/locales/fr/main.json | 2 +- src/locales/he/main.json | 2 +- src/locales/it/main.json | 2 +- src/locales/ja/main.json | 2 +- src/locales/ko/main.json | 2 +- src/locales/pt-BR/main.json | 2 +- src/locales/ru/main.json | 2 +- src/locales/tr/main.json | 2 +- src/locales/zh-TW/main.json | 2 +- src/locales/zh/main.json | 2 +- .../components/TopUpCreditsDialogContentWorkspace.vue | 5 +---- 16 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/locales/ar/main.json b/src/locales/ar/main.json index b6a22879e7a..1dfb8bcc19d 100644 --- a/src/locales/ar/main.json +++ b/src/locales/ar/main.json @@ -1179,7 +1179,7 @@ "minRequired": "الحد الأدنى {credits} أرصدة", "minimumPurchase": "الحد الأدنى ${amount} ({credits} أرصدة)", "needMore": "تحتاج المزيد؟", - "noPaymentMethodError": "لا توجد طريقة دفع محفوظة لمساحة العمل هذه. أضف واحدة عبر الإعدادات ← {section} ← {action}، ثم أعد محاولة شحن الرصيد.", + "noPaymentMethodError": "لا توجد طريقة دفع محفوظة لمساحة العمل هذه. أضف واحدة عبر الإعدادات ← الخطة والاعتمادات ← الفواتير والفواتير الضريبية، ثم أعد محاولة شحن الرصيد.", "payAmount": "ادفع {amount}", "purchaseError": "فشل الشراء", "purchaseErrorDetail": "فشل شراء الرصيد: {error}", diff --git a/src/locales/de/main.json b/src/locales/de/main.json index 95c44c23ed5..fd0ed077e64 100644 --- a/src/locales/de/main.json +++ b/src/locales/de/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Mindestens {credits} Credits", "minimumPurchase": "${amount} Mindestbetrag ({credits} Credits)", "needMore": "Benötigen Sie mehr?", - "noPaymentMethodError": "Für diesen Workspace ist keine Zahlungsmethode gespeichert. Fügen Sie eine unter Einstellungen → {section} → {action} hinzu und versuchen Sie die Aufladung dann erneut.", + "noPaymentMethodError": "Für diesen Workspace ist keine Zahlungsmethode gespeichert. Fügen Sie eine unter Einstellungen → Tarif & Credits → Abrechnung & Rechnungen hinzu und versuchen Sie die Aufladung dann erneut.", "payAmount": "{amount} bezahlen", "purchaseError": "Kauf fehlgeschlagen", "purchaseErrorDetail": "Credits konnten nicht gekauft werden: {error}", diff --git a/src/locales/en/main.json b/src/locales/en/main.json index 2a060da77d6..de265b79934 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -2950,7 +2950,7 @@ "addMoreCreditsToRun": "Add more credits to run", "insufficientWorkflowMessage": "You don't have enough credits to run this workflow.", "creditsDescription": "Credits are used to run workflows or partner nodes.", - "noPaymentMethodError": "No payment method is saved for this workspace. Add one via Settings → {section} → {action}, then retry the top-up.", + "noPaymentMethodError": "No payment method is saved for this workspace. Add one via Settings → Plan & Credits → Billing & invoices, then retry the top-up.", "confirmSubtitle": "Credits are added to this workspace as soon as payment completes.", "confirmTitle": "Confirm", "howManyCredits": "How many credits would you like to add?", diff --git a/src/locales/es/main.json b/src/locales/es/main.json index 4d5052d26d4..8a5130b031c 100644 --- a/src/locales/es/main.json +++ b/src/locales/es/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Mínimo {credits} créditos", "minimumPurchase": "Mínimo ${amount} ({credits} créditos)", "needMore": "¿Necesitas más?", - "noPaymentMethodError": "No hay ningún método de pago guardado para este espacio de trabajo. Añade uno en Configuración → {section} → {action} y vuelve a intentar la recarga.", + "noPaymentMethodError": "No hay ningún método de pago guardado para este espacio de trabajo. Añade uno en Configuración → Plan y créditos → Facturación y facturas y vuelve a intentar la recarga.", "payAmount": "Pagar {amount}", "purchaseError": "Compra fallida", "purchaseErrorDetail": "No se pudo comprar créditos: {error}", diff --git a/src/locales/fa/main.json b/src/locales/fa/main.json index 8f05401a2fd..2934013a613 100644 --- a/src/locales/fa/main.json +++ b/src/locales/fa/main.json @@ -1179,7 +1179,7 @@ "minRequired": "حداقل {credits} اعتبار", "minimumPurchase": "حداقل {amount} ({credits} اعتبار)", "needMore": "بیشتر نیاز دارید؟", - "noPaymentMethodError": "هیچ روش پرداختی برای این فضای کاری ذخیره نشده است. از مسیر تنظیمات ← {section} ← {action}، یک روش اضافه کنید و سپس شارژ را دوباره امتحان کنید.", + "noPaymentMethodError": "هیچ روش پرداختی برای این فضای کاری ذخیره نشده است. از مسیر تنظیمات ← طرح و اعتبارات ← صورتحساب و فاکتورها، یک روش اضافه کنید و سپس شارژ را دوباره امتحان کنید.", "payAmount": "پرداخت {amount}", "purchaseError": "خرید ناموفق بود", "purchaseErrorDetail": "خرید اعتبار ناموفق بود: {error}", diff --git a/src/locales/fr/main.json b/src/locales/fr/main.json index edc78dee938..dde65c32209 100644 --- a/src/locales/fr/main.json +++ b/src/locales/fr/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Minimum {credits} crédits", "minimumPurchase": "Achat minimum de ${amount} ({credits} crédits)", "needMore": "Besoin de plus ?", - "noPaymentMethodError": "Aucun mode de paiement n’est enregistré pour cet espace de travail. Ajoutez-en un via Paramètres → {section} → {action}, puis réessayez de recharger votre solde.", + "noPaymentMethodError": "Aucun mode de paiement n’est enregistré pour cet espace de travail. Ajoutez-en un via Paramètres → Forfait et crédits → Facturation et factures, puis réessayez de recharger votre solde.", "payAmount": "Payer {amount}", "purchaseError": "Échec de l'achat", "purchaseErrorDetail": "Échec de l'achat de crédits : {error}", diff --git a/src/locales/he/main.json b/src/locales/he/main.json index 94087e93035..8880adda24e 100644 --- a/src/locales/he/main.json +++ b/src/locales/he/main.json @@ -1179,7 +1179,7 @@ "minRequired": "{credits} קרדיטים מינימום", "minimumPurchase": "{amount}$ מינימום ({credits} קרדיטים)", "needMore": "צריך עוד?", - "noPaymentMethodError": "לא נשמר אמצעי תשלום עבור סביבת עבודה זו. הוסיפו אמצעי תשלום דרך הגדרות → {section} → {action}, ולאחר מכן נסו שוב לבצע את ההטענה.", + "noPaymentMethodError": "לא נשמר אמצעי תשלום עבור סביבת עבודה זו. הוסיפו אמצעי תשלום דרך הגדרות → מנוי וקרדיטים → חיוב וחשבוניות, ולאחר מכן נסו שוב לבצע את ההטענה.", "payAmount": "שלם {amount}", "purchaseError": "הרכישה נכשלה", "purchaseErrorDetail": "רכישת הקרדיטים נכשלה: {error}", diff --git a/src/locales/it/main.json b/src/locales/it/main.json index 03ff3055b9e..f67f515a06e 100644 --- a/src/locales/it/main.json +++ b/src/locales/it/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Minimo {credits} crediti", "minimumPurchase": "Minimo ${amount} ({credits} crediti)", "needMore": "Hai bisogno di più?", - "noPaymentMethodError": "Non è stato salvato alcun metodo di pagamento per questo spazio di lavoro. Aggiungine uno tramite Impostazioni → {section} → {action}, quindi riprova la ricarica.", + "noPaymentMethodError": "Non è stato salvato alcun metodo di pagamento per questo spazio di lavoro. Aggiungine uno tramite Impostazioni → Piano & Crediti → Fatturazione e fatture, quindi riprova la ricarica.", "payAmount": "Paga {amount}", "purchaseError": "Acquisto fallito", "purchaseErrorDetail": "Impossibile acquistare crediti: {error}", diff --git a/src/locales/ja/main.json b/src/locales/ja/main.json index 8b6204be608..3a773368849 100644 --- a/src/locales/ja/main.json +++ b/src/locales/ja/main.json @@ -1179,7 +1179,7 @@ "minRequired": "最低{credits}クレジット", "minimumPurchase": "最低購入額:${amount}({credits}クレジット)", "needMore": "さらに必要ですか?", - "noPaymentMethodError": "このワークスペースには支払い方法が保存されていません。[設定]→[{section}]→[{action}]から追加してから、チャージを再試行してください。", + "noPaymentMethodError": "このワークスペースには支払い方法が保存されていません。[設定]→[プランとクレジット]→[請求と請求書]から追加してから、チャージを再試行してください。", "payAmount": "{amount} を支払う", "purchaseError": "購入に失敗しました", "purchaseErrorDetail": "クレジットの購入に失敗しました: {error}", diff --git a/src/locales/ko/main.json b/src/locales/ko/main.json index 28fa0730b11..200ef85f1a7 100644 --- a/src/locales/ko/main.json +++ b/src/locales/ko/main.json @@ -1179,7 +1179,7 @@ "minRequired": "최소 {credits} 크레딧", "minimumPurchase": "최소 ${amount} ({credits} 크레딧)", "needMore": "더 필요하신가요?", - "noPaymentMethodError": "이 워크스페이스에 저장된 결제 수단이 없습니다. 설정 → {section} → {action}에서 결제 수단을 추가한 후 크레딧 충전을 다시 시도하세요.", + "noPaymentMethodError": "이 워크스페이스에 저장된 결제 수단이 없습니다. 설정 → 플랜 및 크레딧 → 결제 및 인보이스에서 결제 수단을 추가한 후 크레딧 충전을 다시 시도하세요.", "payAmount": "{amount} 결제하기", "purchaseError": "구매 실패", "purchaseErrorDetail": "크레딧 구매 실패: {error}", diff --git a/src/locales/pt-BR/main.json b/src/locales/pt-BR/main.json index 3c577487742..c11d3131baa 100644 --- a/src/locales/pt-BR/main.json +++ b/src/locales/pt-BR/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Mínimo de {credits} créditos", "minimumPurchase": "Mínimo de ${amount} ({credits} créditos)", "needMore": "Precisa de mais?", - "noPaymentMethodError": "Nenhuma forma de pagamento está salva neste espaço de trabalho. Adicione uma em Configurações → {section} → {action} e tente recarregar novamente.", + "noPaymentMethodError": "Nenhuma forma de pagamento está salva neste espaço de trabalho. Adicione uma em Configurações → Plano & Créditos → Faturamento e faturas e tente recarregar novamente.", "payAmount": "Pagar {amount}", "purchaseError": "Falha na compra", "purchaseErrorDetail": "Falha ao comprar créditos: {error}", diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index 60dfcfa3d13..4ac3ac62c1b 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -1179,7 +1179,7 @@ "minRequired": "Минимум {credits} кредитов", "minimumPurchase": "Минимум ${amount} ({credits} кредитов)", "needMore": "Нужно больше?", - "noPaymentMethodError": "Для этого рабочего пространства не сохранён способ оплаты. Добавьте его в разделе «Настройки → {section} → {action}», затем повторите пополнение.", + "noPaymentMethodError": "Для этого рабочего пространства не сохранён способ оплаты. Добавьте его в разделе «Настройки → План и кредиты → Оплата и счета», затем повторите пополнение.", "payAmount": "Оплатить {amount}", "purchaseError": "Покупка не удалась", "purchaseErrorDetail": "Не удалось купить кредиты: {error}", diff --git a/src/locales/tr/main.json b/src/locales/tr/main.json index 10c166fa3c7..15d22686e5f 100644 --- a/src/locales/tr/main.json +++ b/src/locales/tr/main.json @@ -1179,7 +1179,7 @@ "minRequired": "En az {credits} kredi", "minimumPurchase": "En az ${amount} ({credits} kredi)", "needMore": "Daha fazlasına mı ihtiyacınız var?", - "noPaymentMethodError": "Bu çalışma alanı için kayıtlı bir ödeme yöntemi yok. Ayarlar → {section} → {action} üzerinden bir tane ekleyin, ardından kredi yüklemeyi yeniden deneyin.", + "noPaymentMethodError": "Bu çalışma alanı için kayıtlı bir ödeme yöntemi yok. Ayarlar → Plan & Krediler → Faturalandırma ve faturalar üzerinden bir tane ekleyin, ardından kredi yüklemeyi yeniden deneyin.", "payAmount": "{amount} öde", "purchaseError": "Satın Alma Başarısız", "purchaseErrorDetail": "Kredi satın alınamadı: {error}", diff --git a/src/locales/zh-TW/main.json b/src/locales/zh-TW/main.json index dc28800b3dc..b4e8fffa8b3 100644 --- a/src/locales/zh-TW/main.json +++ b/src/locales/zh-TW/main.json @@ -1179,7 +1179,7 @@ "minRequired": "最低需購買 {credits} 點", "minimumPurchase": "最低購買 ${amount}(${credits} 點)", "needMore": "需要更多?", - "noPaymentMethodError": "此工作區尚未儲存付款方式。請依序前往「設定」→「{section}」→「{action}」新增付款方式,然後再試一次儲值。", + "noPaymentMethodError": "此工作區尚未儲存付款方式。請依序前往「設定」→「方案與點數」→「帳單與發票」新增付款方式,然後再試一次儲值。", "payAmount": "支付 {amount}", "purchaseError": "購買失敗", "purchaseErrorDetail": "購買點數失敗:{error}", diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json index c79cf35e207..26f1ae69ffa 100644 --- a/src/locales/zh/main.json +++ b/src/locales/zh/main.json @@ -1179,7 +1179,7 @@ "minRequired": "最少{credits}积分", "minimumPurchase": "最低${amount}({credits}积分)", "needMore": "需要更多?", - "noPaymentMethodError": "此工作区未保存付款方式。请通过“设置 → {section} → {action}”添加付款方式,然后重试充值。", + "noPaymentMethodError": "此工作区未保存付款方式。请通过“设置 → 计划与积分 → 账单与发票”添加付款方式,然后重试充值。", "payAmount": "支付 {amount}", "purchaseError": "购买失败", "purchaseErrorDetail": "购买积分失败:{error}", diff --git a/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue b/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue index 70dfce4acc5..633574edceb 100644 --- a/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue +++ b/src/platform/workspace/components/TopUpCreditsDialogContentWorkspace.vue @@ -765,10 +765,7 @@ function reportTerminal( function purchaseErrorDetail(error?: unknown): string { const code = error instanceof WorkspaceApiError ? error.code : undefined if (code === 'NO_PAYMENT_METHOD') { - return t('credits.topUp.noPaymentMethodError', { - section: t('settingsCategories.PlanCredits'), - action: t('subscription.billingAndInvoices') - }) + return t('credits.topUp.noPaymentMethodError') } // Only one billing operation is open at a time, so this refusal means the // previous purchase has not settled or expired yet — not that anything failed.