From ffb795feeb54c4e314dceefed41c774357b51c54 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Tue, 3 Nov 2026 08:02:13 +0000 Subject: [PATCH] refactor(web): drop dead empty-string fallbacks on i18n t() calls (#45418) --- .../webapp-reset-password/check-code/page.tsx | 2 +- .../set-password/page.tsx | 4 ++-- .../webapp-signin/check-code/page.tsx | 2 +- .../components/mail-and-password-auth.tsx | 4 ++-- .../conversation-history/edit-modal.tsx | 2 +- .../dataset-config/settings-modal/index.tsx | 4 ++-- .../tools/external-data-tool-modal.tsx | 13 ++++++------ .../components/app/create-app-modal/index.tsx | 4 ++-- .../app/create-from-dsl-modal/index.tsx | 2 +- .../components/app/duplicate-modal/index.tsx | 2 +- .../components/app/switch-app-modal/index.tsx | 2 +- .../chat-with-history/header-in-mobile.tsx | 2 +- .../chat/chat-with-history/header/index.tsx | 2 +- .../chat/chat-with-history/sidebar/index.tsx | 5 ++--- .../sidebar/rename-modal.tsx | 5 +++-- .../base/chat/chat/chat-input-area/index.tsx | 2 +- .../follow-up-setting-modal.tsx | 9 +++++---- .../moderation/moderation-content.tsx | 7 +++---- .../moderation/moderation-setting-modal.tsx | 16 +++++---------- .../create-from-dsl-modal/index.tsx | 2 +- .../empty-dataset-creation-modal/index.tsx | 4 +--- .../components/rename-document-form.tsx | 2 +- .../detail/completed/common/chunk-content.tsx | 8 ++++---- .../external-api/external-api-modal/Form.tsx | 2 +- .../create/ExternalApiSelection.tsx | 2 +- .../create/KnowledgeBaseInfo.tsx | 6 ++---- .../datasets/rename-modal/index.tsx | 4 ++-- .../form/components/basic-info-section.tsx | 2 +- .../settings/permission-selector/index.tsx | 2 +- .../api-based-extension-page/item.tsx | 2 +- .../api-based-extension-page/modal.tsx | 20 +++++++++---------- .../invite-modal/email-recipients-field.tsx | 2 +- .../model-selector/popup-layout.tsx | 4 ++-- .../home/catalog-languages-filter.tsx | 6 ++---- .../plugins/plugin-tags-filter/index.tsx | 4 ++-- .../publish-as-knowledge-pipeline-modal.tsx | 15 ++++++-------- .../snippets/create-snippet-dialog.tsx | 6 ++---- .../snippets/import-snippet-dsl-dialog.tsx | 2 +- .../edit-custom-collection-modal/index.tsx | 15 ++++++-------- .../components/tools/workflow-tool/index.tsx | 8 ++------ .../snippets/snippet-tags-filter.tsx | 4 ++-- .../workflow/hooks/use-nodes-interactions.ts | 4 ++-- .../components/title-description-input.tsx | 4 ++-- .../variable/var-reference-popup.tsx | 4 ++-- .../condition-list/condition-input.tsx | 2 +- .../components/condition-number-input.tsx | 2 +- .../condition-list/condition-input.tsx | 2 +- .../components/condition-number-input.tsx | 2 +- .../components/workflow/note-node/index.tsx | 2 +- .../plugins/link-editor-plugin/component.tsx | 2 +- .../components/object-value-item.tsx | 4 ++-- .../components/variable-modal.sections.tsx | 4 +--- .../components/variable-modal.tsx | 6 ++---- .../panel/env-panel/variable-modal.tsx | 6 +++--- .../workflow/variable-inspect/listening.tsx | 8 +++----- .../components/note-node/index.tsx | 2 +- .../forgot-password/ChangePasswordForm.tsx | 4 ++-- .../forgot-password/ForgotPasswordForm.tsx | 2 +- web/app/install/installForm.tsx | 6 +++--- web/app/reset-password/set-password/page.tsx | 4 ++-- .../components/mail-and-password-auth.tsx | 4 ++-- web/app/signin/invite-settings/page.tsx | 2 +- web/app/signin/one-more-step.tsx | 2 +- web/app/signup/components/input-mail.tsx | 2 +- web/app/signup/set-password/page.tsx | 4 ++-- .../components/tag-management-modal.tsx | 4 ++-- .../components/tag-search-content.tsx | 2 +- 67 files changed, 134 insertions(+), 167 deletions(-) diff --git a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx index 27370f60278..6a952563ee2 100644 --- a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx +++ b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx @@ -92,7 +92,7 @@ export default function CheckCode() { onValueChange={setVerifyCode} maxLength={6} className="mt-1" - placeholder={t(($) => $['checkCode.verificationCodePlaceholder'], { ns: 'login' }) || ''} + placeholder={t(($) => $['checkCode.verificationCodePlaceholder'], { ns: 'login' })} />