From 5f899e428a62f4f2a5f238c08d0643ecd26ca86b Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Wed, 23 Sep 2026 04:43:00 +0000 Subject: [PATCH] fix(web): declare translation namespace dependencies (#42784) --- lint.config.ts | 2 + .../(appDetailLayout)/[appId]/layout-main.tsx | 2 +- .../[appId]/overview/chart-view.tsx | 2 +- .../overview/long-time-range-picker.tsx | 2 +- .../time-range-picker/range-selector.tsx | 2 +- .../[appId]/overview/tracing/config-popup.tsx | 2 +- .../[appId]/overview/tracing/panel.tsx | 2 +- .../tracing/provider-config-modal.tsx | 2 +- .../overview/tracing/provider-panel.tsx | 2 +- .../[datasetId]/layout-main.tsx | 2 +- .../[datasetId]/settings/page.tsx | 2 +- web/app/(commonLayout)/error.tsx | 2 +- .../marketplace/document-title.tsx | 2 +- .../form/[token]/branding-footer.tsx | 2 +- .../form/[token]/form-status-card.tsx | 2 +- .../(humanInputLayout)/form/[token]/form.tsx | 2 +- .../components/authenticated-layout.tsx | 2 +- web/app/(shareLayout)/components/splash.tsx | 2 +- .../webapp-reset-password/check-code/page.tsx | 2 +- .../webapp-reset-password/page.tsx | 2 +- .../set-password/page.tsx | 2 +- .../webapp-signin/check-code/page.tsx | 2 +- .../components/mail-and-code-auth.tsx | 2 +- .../components/mail-and-password-auth.tsx | 2 +- .../webapp-signin/components/sso-auth.tsx | 2 +- .../(shareLayout)/webapp-signin/layout.tsx | 2 +- .../webapp-signin/normalForm.tsx | 2 +- web/app/(shareLayout)/webapp-signin/page.tsx | 2 +- .../account-page/AvatarWithEdit.tsx | 2 +- .../account-page/email-change-modal.tsx | 2 +- .../(commonLayout)/account-page/index.tsx | 2 +- web/app/account/(commonLayout)/avatar.tsx | 2 +- .../delete-account/components/check-email.tsx | 2 +- .../delete-account/components/feed-back.tsx | 2 +- .../components/verify-email.tsx | 2 +- .../(commonLayout)/delete-account/index.tsx | 2 +- web/app/account/(commonLayout)/header.tsx | 2 +- web/app/account/(commonLayout)/page.tsx | 2 +- web/app/account/oauth/authorize/page.tsx | 2 +- .../oauth/authorize/use-silent-authorize.ts | 2 +- web/app/activate/activateForm.tsx | 2 +- .../add-access-subject-popover.tsx | 4 +- ...atic-include-workspace-members-section.tsx | 2 +- .../access-rules-editor/batch-action.tsx | 2 +- .../components/access-rules-editor/index.tsx | 2 +- .../user-access-policy-row.tsx | 2 +- web/app/components/api-key/api-key-modal.tsx | 2 +- web/app/components/api-key/api-key-table.tsx | 2 +- .../api-key/created-api-key-dialog.tsx | 2 +- .../api-key/dataset-scope-dialog.tsx | 2 +- .../app-sidebar/app-detail-section.tsx | 2 +- .../components/app-sidebar/app-detail-top.tsx | 2 +- .../__tests__/app-mode-labels.spec.ts | 2 +- .../app-sidebar/app-info/app-info-modals.tsx | 2 +- .../app-sidebar/app-info/app-info-trigger.tsx | 2 +- .../app-sidebar/app-info/app-mode-labels.ts | 2 +- .../app-sidebar/app-info/app-operations.tsx | 2 +- .../app-info/use-app-info-actions.ts | 2 +- .../app-sidebar/dataset-detail-section.tsx | 2 +- .../app-sidebar/dataset-detail-top.tsx | 2 +- .../app-sidebar/dataset-info/dropdown.tsx | 2 +- .../app-sidebar/dataset-info/index.tsx | 2 +- .../app-sidebar/dataset-info/menu.tsx | 2 +- .../app-sidebar/snippet-info/dropdown.tsx | 2 +- .../components/app/access-config/index.tsx | 2 +- .../built-in-access-points/index.tsx | 2 +- .../built-in-access-points/mcp-card.tsx | 2 +- .../service-api-card.tsx | 2 +- .../built-in-access-points/trigger-card.tsx | 4 +- .../built-in-access-points/web-app-card.tsx | 2 +- .../environment-access-control.tsx | 2 +- .../environment-service-api-card.tsx | 2 +- .../environment-web-app-card.tsx | 2 +- .../index.tsx | 2 +- web/app/components/app/access-point/index.tsx | 2 +- .../shared/api-secret-key-button.tsx | 2 +- .../shared/service-api-card-view.tsx | 2 +- .../shared/use-access-point-actions.ts | 2 +- .../shared/use-access-point-status-label.ts | 2 +- .../shared/web-app-access-control.tsx | 4 +- .../add-annotation-modal/edit-item/index.tsx | 2 +- .../annotation/add-annotation-modal/index.tsx | 2 +- .../app/annotation/batch-action.tsx | 2 +- .../csv-downloader.tsx | 2 +- .../csv-uploader.tsx | 2 +- .../batch-add-annotation-modal/index.tsx | 2 +- .../index.tsx | 2 +- .../edit-annotation-modal/edit-item/index.tsx | 2 +- .../edit-annotation-modal/index.tsx | 2 +- .../app/annotation/empty-element.tsx | 2 +- web/app/components/app/annotation/filter.tsx | 2 +- .../app/annotation/header-opts/index.tsx | 4 +- web/app/components/app/annotation/index.tsx | 2 +- web/app/components/app/annotation/list.tsx | 4 +- .../remove-annotation-confirm-modal/index.tsx | 2 +- .../hit-history-no-data.tsx | 2 +- .../view-annotation-modal/index.tsx | 2 +- .../access-control-dialog.tsx | 2 +- .../access-control-form.tsx | 2 +- .../add-member-or-group-pop/breadcrumb.tsx | 2 +- .../add-member-or-group-pop/index.tsx | 2 +- .../add-member-or-group-pop/subject-item.tsx | 4 +- .../app/app-access-control/index.tsx | 2 +- .../specific-groups-or-members.tsx | 6 +- .../app/app-publisher/__tests__/utils.spec.ts | 2 +- .../built-in-publisher/actions-section.tsx | 2 +- .../built-in-publisher/summary-section.tsx | 2 +- .../actions-section.tsx | 2 +- .../environment-deployment-flow/index.tsx | 2 +- .../latest-version-row.tsx | 2 +- .../summary-section.tsx | 2 +- .../app-publisher/environment-tabs/index.tsx | 2 +- .../app/app-publisher/features-wrapper.tsx | 2 +- .../publish-with-multiple-model.tsx | 2 +- .../app-publisher/publisher-content/index.tsx | 2 +- .../publisher-panel/index.tsx | 2 +- .../use-marketplace-publish.ts | 2 +- .../publisher-content/use-version-info.ts | 2 +- .../publisher-content/use-workflow-tool.ts | 2 +- web/app/components/app/app-publisher/utils.ts | 2 +- .../app/app-publisher/version-info-modal.tsx | 2 +- .../workflow-tool-action/index.tsx | 2 +- .../base/operation-button/index.tsx | 2 +- .../warning-mask/cannot-query-dataset.tsx | 2 +- .../base/warning-mask/formatting-changed.tsx | 2 +- .../base/warning-mask/has-not-set-api.tsx | 2 +- .../config-prompt/advanced-prompt-input.tsx | 2 +- .../config-prompt/confirm-add-var/index.tsx | 2 +- .../conversation-history/edit-modal.tsx | 2 +- .../conversation-history/history-panel.tsx | 2 +- .../app/configuration/config-prompt/index.tsx | 2 +- .../prompt-editor-height-resize-wrap.tsx | 2 +- .../config-prompt/simple-prompt-input.tsx | 2 +- .../config-var/config-modal/field.tsx | 2 +- .../config-var/config-modal/index.tsx | 2 +- .../config-var/config-select/index.tsx | 2 +- .../app/configuration/config-var/index.tsx | 2 +- .../configuration/config-var/modal-foot.tsx | 2 +- .../config-var/select-var-type.tsx | 2 +- .../app/configuration/config-var/var-item.tsx | 2 +- .../app/configuration/config-vision/index.tsx | 2 +- .../config-vision/param-config-content.tsx | 2 +- .../config-vision/param-config.tsx | 2 +- .../config/agent-setting-button.tsx | 2 +- .../config/agent/agent-setting/index.tsx | 2 +- .../config/agent/agent-tools/index.tsx | 2 +- .../agent-tools/setting-built-in-tool.tsx | 2 +- .../config/automatic/automatic-btn.tsx | 2 +- .../config/automatic/get-automatic-res.tsx | 2 +- .../config/automatic/idea-output.tsx | 2 +- .../config/automatic/instruction-editor.tsx | 2 +- .../automatic/prompt-res-in-workflow.tsx | 2 +- .../config/automatic/prompt-toast.tsx | 2 +- .../config/automatic/res-placeholder.tsx | 2 +- .../configuration/config/automatic/result.tsx | 2 +- .../config/automatic/version-selector.tsx | 2 +- .../code-generator/get-code-generator-res.tsx | 2 +- .../app/configuration/config/config-audio.tsx | 2 +- .../configuration/config/config-document.tsx | 2 +- .../configuration-view/index.tsx | 2 +- .../configuration-view/legacy-agent-badge.tsx | 2 +- .../dataset-config/card-item/index.tsx | 2 +- .../dataset-config/context-var/index.tsx | 2 +- .../dataset-config/context-var/var-picker.tsx | 2 +- .../configuration/dataset-config/index.tsx | 2 +- .../params-config/config-content.tsx | 2 +- .../dataset-config/params-config/index.tsx | 2 +- .../params-config/weighted-score.tsx | 2 +- .../dataset-config/select-dataset/index.tsx | 2 +- .../dataset-config/settings-modal/index.tsx | 2 +- .../configuration/debug/chat-user-input.tsx | 2 +- .../debug-with-multiple-model/debug-item.tsx | 2 +- .../model-parameter-trigger.tsx | 2 +- .../app/configuration/debug/index.tsx | 2 +- .../configuration/hooks/use-configuration.ts | 2 +- .../prompt-value-panel/index.tsx | 2 +- .../tools/external-data-tool-modal.tsx | 2 +- web/app/components/app/configuration/utils.ts | 2 +- .../app/create-app-dialog/app-card/index.tsx | 2 +- .../app/create-app-dialog/app-list/index.tsx | 4 +- .../create-app-dialog/app-list/sidebar.tsx | 4 +- .../app/create-app-dialog/index.tsx | 2 +- .../components/app/create-app-dropdown.tsx | 2 +- .../components/app/create-app-modal/index.tsx | 6 +- .../dsl-confirm-modal.tsx | 2 +- .../app/create-from-dsl-modal/index.tsx | 2 +- .../app/create-from-dsl-modal/uploader.tsx | 2 +- .../built-in-environment-card/index.tsx | 2 +- .../environment-table/activity-cell.tsx | 4 +- .../environment-table/deploy-menu/index.tsx | 4 +- .../environment-table/empty-state/index.tsx | 4 +- .../app/deploy/environment-table/index.tsx | 6 +- .../deploy/environment-table/row-actions.tsx | 4 +- .../undeploy-confirm-dialog/index.tsx | 4 +- .../app/deploy/hooks/use-undeploy-workflow.ts | 2 +- web/app/components/app/deploy/index.tsx | 6 +- .../app/deploy/shared/access-point-icon.tsx | 6 +- .../deployment-configuration/content.tsx | 6 +- .../credential-field.tsx | 4 +- .../credentials-section.tsx | 4 +- .../deployment-precheck-alert.tsx | 2 +- .../environment-variable-field.tsx | 4 +- .../environment-variables-section.tsx | 2 +- .../shared/deployment-configuration/index.tsx | 4 +- .../use-deployment-configuration-form.ts | 6 +- .../workflow-source-popover.tsx | 2 +- .../app/deploy/shared/runtime-state.tsx | 2 +- .../app/deploy/shared/version-label.tsx | 2 +- .../deploy/shared/version-selection/index.tsx | 8 +- .../shared/version-selection/version-list.tsx | 8 +- web/app/components/app/deploy/state.ts | 2 +- .../components/app/duplicate-modal/index.tsx | 2 +- .../app/in-site-message/notification.tsx | 2 +- .../app/log/archived-logs-notice.tsx | 2 +- web/app/components/app/log/empty-element.tsx | 2 +- web/app/components/app/log/filter.tsx | 2 +- web/app/components/app/log/index.tsx | 2 +- web/app/components/app/log/list.tsx | 8 +- web/app/components/app/log/model-info.tsx | 2 +- .../app/log/retention-upgrade-notice.tsx | 2 +- web/app/components/app/log/var-panel.tsx | 2 +- .../app/overview/apikey-info-panel/index.tsx | 2 +- web/app/components/app/overview/app-chart.tsx | 4 +- .../app/overview/customize/index.tsx | 2 +- .../app/overview/embedded/index.tsx | 4 +- .../app/overview/settings/index.tsx | 2 +- .../overview/workflow-launch-dialog/index.tsx | 4 +- .../components/app/switch-app-modal/index.tsx | 2 +- .../app/text-generate/item/action-groups.tsx | 2 +- .../app/text-generate/item/index.tsx | 2 +- .../app/text-generate/item/workflow-body.tsx | 2 +- .../app/text-generate/saved-items/index.tsx | 2 +- .../saved-items/no-data/index.tsx | 2 +- .../components/app/type-selector/index.tsx | 6 +- web/app/components/app/use-export-app-dsl.ts | 4 +- .../components/app/workflow-log/detail.tsx | 2 +- .../components/app/workflow-log/filter.tsx | 2 +- web/app/components/app/workflow-log/index.tsx | 2 +- web/app/components/app/workflow-log/list.tsx | 2 +- .../app/workflow-log/trigger-by-display.tsx | 5 +- web/app/components/apps/app-card/index.tsx | 2 +- .../components/apps/app-card/interactions.tsx | 4 +- web/app/components/apps/app-list-catalog.tsx | 4 +- web/app/components/apps/app-list-header.tsx | 2 +- web/app/components/apps/app-sort-filter.tsx | 2 +- web/app/components/apps/app-type-filter.tsx | 2 +- web/app/components/apps/creators-filter.tsx | 2 +- web/app/components/apps/empty.tsx | 2 +- .../apps/first-empty-state/index.tsx | 2 +- ...import-from-marketplace-template-modal.tsx | 2 +- web/app/components/apps/index.tsx | 2 +- web/app/components/apps/starred-app-card.tsx | 2 +- web/app/components/apps/starred-app-list.tsx | 2 +- web/app/components/base/access-point/url.tsx | 2 +- .../base/agent-log-modal/detail.tsx | 2 +- .../components/base/agent-log-modal/index.tsx | 2 +- .../base/agent-log-modal/iteration.tsx | 2 +- .../base/agent-log-modal/result.tsx | 2 +- web/app/components/base/alert.tsx | 2 +- .../base/app-icon-picker/ImageInput.tsx | 2 +- .../components/base/app-icon-picker/index.tsx | 2 +- web/app/components/base/app-unavailable.tsx | 2 +- .../base/audio-gallery/AudioPlayer.tsx | 2 +- .../chat/chat-with-history/chat-wrapper.tsx | 2 +- .../chat-with-history/header-in-mobile.tsx | 2 +- .../chat/chat-with-history/header/index.tsx | 2 +- .../header/mobile-operation-dropdown.tsx | 2 +- .../chat-with-history/header/operation.tsx | 2 +- .../base/chat/chat-with-history/hooks.tsx | 2 +- .../chat-with-history/inputs-form/content.tsx | 2 +- .../chat-with-history/inputs-form/index.tsx | 2 +- .../inputs-form/view-form-dropdown.tsx | 2 +- .../chat/chat-with-history/sidebar/index.tsx | 2 +- .../chat-with-history/sidebar/operation.tsx | 2 +- .../sidebar/rename-modal.tsx | 2 +- .../answer/agent-roster-response-content.tsx | 9 +- .../human-input-content/content-wrapper.tsx | 2 +- .../human-input-content/expiration-time.tsx | 2 +- .../chat/answer/human-input-content/tips.tsx | 2 +- .../base/chat/chat/answer/index.tsx | 2 +- .../components/base/chat/chat/answer/more.tsx | 2 +- .../base/chat/chat/answer/operation.tsx | 2 +- .../base/chat/chat/answer/tool-detail.tsx | 2 +- .../chat/chat/answer/workflow-process.tsx | 2 +- .../base/chat/chat/chat-input-area/index.tsx | 2 +- .../chat/chat/chat-input-area/operation.tsx | 2 +- .../base/chat/chat/check-input-forms-hooks.ts | 2 +- .../base/chat/chat/citation/index.tsx | 2 +- .../base/chat/chat/citation/popup.tsx | 2 +- .../chat/chat/citation/progress-tooltip.tsx | 2 +- web/app/components/base/chat/chat/hooks.ts | 2 +- web/app/components/base/chat/chat/index.tsx | 2 +- .../components/base/chat/chat/log/index.tsx | 2 +- .../components/base/chat/chat/question.tsx | 2 +- .../components/base/chat/chat/try-to-ask.tsx | 2 +- .../chat/embedded-chatbot/chat-wrapper.tsx | 2 +- .../chat/embedded-chatbot/header/index.tsx | 2 +- .../base/chat/embedded-chatbot/hooks.tsx | 2 +- .../base/chat/embedded-chatbot/index.tsx | 2 +- .../embedded-chatbot/inputs-form/content.tsx | 2 +- .../embedded-chatbot/inputs-form/index.tsx | 2 +- .../inputs-form/view-form-dropdown.tsx | 2 +- .../components/base/checkbox-list/index.tsx | 2 +- web/app/components/base/chip/index.tsx | 2 +- .../components/base/copy-feedback/index.tsx | 2 +- web/app/components/base/copy-icon/index.tsx | 2 +- .../date-and-time-picker/calendar/item.tsx | 2 +- .../date-picker/footer.tsx | 2 +- .../date-picker/index.tsx | 2 +- .../date-range-picker/index.tsx | 2 +- .../base/date-and-time-picker/hooks.ts | 4 +- .../time-picker/footer.tsx | 2 +- .../time-picker/header.tsx | 2 +- .../time-picker/index.tsx | 2 +- .../year-and-month-picker/footer.tsx | 2 +- .../components/base/emoji-picker/Inner.tsx | 2 +- .../components/base/emoji-picker/index.tsx | 2 +- .../base/encrypted-bottom/index.tsx | 2 +- .../components/base/error-boundary/index.tsx | 2 +- .../annotation-ctrl-button.tsx | 2 +- .../annotation-reply/config-param-modal.tsx | 2 +- .../annotation-reply/index.tsx | 2 +- .../annotation-reply/score-slider/index.tsx | 2 +- .../features/new-feature-panel/citation.tsx | 2 +- .../conversation-opener/index.tsx | 2 +- .../conversation-opener/modal.tsx | 2 +- .../new-feature-panel/feature-bar.tsx | 2 +- .../new-feature-panel/file-upload/index.tsx | 2 +- .../file-upload/setting-content.tsx | 2 +- .../follow-up-setting-modal.tsx | 2 +- .../features/new-feature-panel/follow-up.tsx | 2 +- .../new-feature-panel/image-upload/index.tsx | 2 +- .../base/features/new-feature-panel/index.tsx | 2 +- .../new-feature-panel/moderation/index.tsx | 2 +- .../moderation/moderation-content.tsx | 2 +- .../moderation/moderation-setting-modal.tsx | 2 +- .../new-feature-panel/more-like-this.tsx | 2 +- .../new-feature-panel/speech-to-text.tsx | 2 +- .../text-to-speech/index.tsx | 2 +- .../text-to-speech/param-config-content.tsx | 2 +- .../file-uploader/__tests__/utils.spec.ts | 2 +- .../base/file-uploader/audio-preview.tsx | 2 +- .../file-from-link-or-local/index.tsx | 2 +- .../base/file-uploader/file-list-in-log.tsx | 2 +- .../file-uploader-in-attachment/file-item.tsx | 2 +- .../file-uploader-in-attachment/index.tsx | 2 +- .../file-image-item.tsx | 2 +- .../file-uploader-in-chat-input/file-item.tsx | 2 +- .../file-uploader-in-chat-input/index.tsx | 2 +- .../components/base/file-uploader/hooks.ts | 2 +- .../base/file-uploader/pdf-preview.tsx | 2 +- .../components/base/file-uploader/utils.ts | 2 +- .../base/file-uploader/video-preview.tsx | 2 +- .../base/float-right-container/index.tsx | 2 +- .../base/form/components/base/base-field.tsx | 2 +- .../field/input-type-select/hooks.tsx | 2 +- .../field/input-type-select/trigger.tsx | 2 +- .../base/form/components/field/select.tsx | 2 +- .../form/components/field/upload-method.tsx | 2 +- .../base/form/components/form/actions.tsx | 2 +- .../components/base/form/components/label.tsx | 2 +- .../base/form/hooks/use-get-validators.ts | 2 +- .../components/base/image-gallery/index.tsx | 2 +- .../image-uploader/__tests__/utils.spec.ts | 8 +- .../components/base/image-uploader/hooks.ts | 4 +- .../base/image-uploader/image-link-input.tsx | 2 +- .../base/image-uploader/image-list.tsx | 2 +- .../base/image-uploader/image-preview.tsx | 2 +- .../text-generation-image-uploader.tsx | 4 +- .../components/base/image-uploader/utils.ts | 2 +- .../base/inline-delete-confirm/index.tsx | 2 +- .../use-keyboard-sortable.tsx | 2 +- .../base/loading-placeholder/index.tsx | 2 +- .../base/markdown-blocks/thinking-details.tsx | 2 +- web/app/components/base/mermaid/index.tsx | 2 +- .../base/message-log-modal/index.tsx | 2 +- .../base/new-audio-button/index.tsx | 2 +- .../base/notion-connector/index.tsx | 2 +- .../base/notion-page-selector/base.tsx | 2 +- .../page-selector/index.tsx | 2 +- .../page-selector/page-row.tsx | 2 +- .../page-selector/virtual-page-list.tsx | 2 +- .../search-input/index.tsx | 2 +- web/app/components/base/page-unavailable.tsx | 2 +- .../base/param-item/score-threshold-item.tsx | 2 +- .../components/base/param-item/top-k-item.tsx | 2 +- .../plugins/agent-output-block/component.tsx | 2 +- .../plugins/component-picker-block/hooks.tsx | 6 +- .../plugins/component-picker-block/index.tsx | 2 +- .../plugins/context-block/component.tsx | 2 +- .../plugins/history-block/component.tsx | 2 +- .../plugins/hitl-input-block/component-ui.tsx | 2 +- .../plugins/hitl-input-block/input-field.tsx | 2 +- .../plugins/hitl-input-block/pre-populate.tsx | 4 +- .../plugins/hitl-input-block/type-switch.tsx | 2 +- .../hitl-input-block/variable-block.tsx | 2 +- .../prompt-editor/plugins/placeholder.tsx | 2 +- .../plugins/query-block/component.tsx | 2 +- .../plugins/request-url-block/component.tsx | 2 +- .../workflow-variable-block/component.tsx | 2 +- .../base/prompt-log-modal/index.tsx | 2 +- web/app/components/base/qrcode/index.tsx | 2 +- .../components/base/resize-handle/index.tsx | 2 +- .../components/base/search-input/index.tsx | 2 +- web/app/components/base/sort/index.tsx | 2 +- web/app/components/base/svg-gallery/index.tsx | 2 +- web/app/components/base/tag-input/index.tsx | 2 +- .../components/base/text-generation/hooks.ts | 2 +- web/app/components/base/theme-selector.tsx | 2 +- .../base/video-gallery/VideoPlayer.tsx | 2 +- web/app/components/base/voice-input/index.tsx | 2 +- .../billing/annotation-full/index.tsx | 2 +- .../billing/annotation-full/modal.tsx | 2 +- .../billing/annotation-full/usage.tsx | 2 +- .../billing/apps-full-in-dialog/index.tsx | 2 +- .../components/billing/billing-page/index.tsx | 2 +- .../billing/hooks/use-education-discount.ts | 2 +- .../billing/plan-upgrade-modal/index.tsx | 2 +- web/app/components/billing/plan/index.tsx | 2 +- .../components/billing/pricing/content.tsx | 2 +- .../billing/pricing/dialog-content.tsx | 2 +- web/app/components/billing/pricing/footer.tsx | 2 +- web/app/components/billing/pricing/header.tsx | 2 +- .../pricing/plans/cloud-plan-item/index.tsx | 2 +- .../plans/cloud-plan-item/list/index.tsx | 2 +- .../plans/self-hosted-plan-item/index.tsx | 2 +- .../self-hosted-plan-item/list/index.tsx | 2 +- .../billing/priority-label/index.tsx | 2 +- .../trigger-events-limit-modal/index.tsx | 2 +- .../components/billing/upgrade-btn/index.tsx | 2 +- .../components/billing/usage-info/index.tsx | 2 +- .../billing/usage-info/vector-space-info.tsx | 2 +- .../billing/vector-space-full/index.tsx | 2 +- .../vector-space-unavailable/index.tsx | 2 +- .../components/custom/custom-page/index.tsx | 2 +- .../hooks/use-web-app-brand.ts | 2 +- .../custom/custom-web-app-brand/index.tsx | 2 +- .../datasets/access-config/index.tsx | 2 +- .../datasets/common/chunking-mode-label.tsx | 2 +- .../datasets/common/document-picker/index.tsx | 4 +- .../preview-document-picker.tsx | 2 +- .../auto-disabled-document.tsx | 2 +- .../index-failed.tsx | 2 +- .../index.tsx | 2 +- .../datasets/common/image-previewer/index.tsx | 2 +- .../common/image-uploader/hooks/use-upload.ts | 2 +- .../image-uploader-in-chunk/image-input.tsx | 2 +- .../image-uploader-in-chunk/image-item.tsx | 2 +- .../image-input.tsx | 2 +- .../image-item.tsx | 2 +- .../index.tsx | 2 +- .../multimodal-retrieval-guidance/index.tsx | 6 +- .../common/retrieval-method-config/index.tsx | 2 +- .../common/retrieval-param-config/index.tsx | 2 +- .../common/vector-space-admission-alert.tsx | 2 +- .../dsl-confirm-modal.tsx | 2 +- .../hooks/use-dsl-import.ts | 2 +- .../create-from-dsl-modal/index.tsx | 2 +- .../create-from-dsl-modal/uploader.tsx | 2 +- .../datasets/create-from-pipeline/footer.tsx | 2 +- .../datasets/create-from-pipeline/header.tsx | 2 +- .../datasets/create-from-pipeline/index.tsx | 2 +- .../create-from-pipeline/list/create-card.tsx | 2 +- .../list/customized-list.tsx | 2 +- .../list/template-card/actions.tsx | 2 +- .../list/template-card/content.tsx | 2 +- .../list/template-card/details/hooks.tsx | 2 +- .../list/template-card/details/index.tsx | 2 +- .../list/template-card/edit-pipeline-info.tsx | 2 +- .../list/template-card/index.tsx | 2 +- .../list/template-card/operations.tsx | 2 +- .../create/embedding-process/index.tsx | 4 +- .../indexing-progress-item.tsx | 4 +- .../create/embedding-process/rule-detail.tsx | 7 +- .../embedding-process/upgrade-banner.tsx | 2 +- .../empty-dataset-creation-modal/index.tsx | 2 +- .../datasets/create/file-preview/index.tsx | 2 +- .../components/file-list-item.tsx | 2 +- .../components/upload-dropzone.tsx | 2 +- .../file-uploader/hooks/use-file-upload.ts | 2 +- .../datasets/create/file-uploader/index.tsx | 2 +- web/app/components/datasets/create/index.tsx | 2 +- .../create/notion-page-preview/index.tsx | 2 +- .../components/data-source-type-selector.tsx | 2 +- .../step-one/components/next-step-button.tsx | 2 +- .../step-one/components/preview-panel.tsx | 2 +- .../datasets/create/step-one/index.tsx | 2 +- .../datasets/create/step-one/upgrade-card.tsx | 2 +- .../datasets/create/step-three/index.tsx | 2 +- .../components/general-chunking-options.tsx | 2 +- .../components/indexing-mode-section.tsx | 2 +- .../create/step-two/components/inputs.tsx | 6 +- .../components/parent-child-options.tsx | 2 +- .../step-two/components/preview-panel.tsx | 2 +- .../step-two/components/step-two-footer.tsx | 2 +- .../step-two/hooks/use-document-creation.ts | 2 +- .../datasets/create/step-two/index.tsx | 2 +- .../datasets/create/top-bar/index.tsx | 2 +- .../website/base/crawled-result-item.tsx | 2 +- .../create/website/base/crawled-result.tsx | 2 +- .../datasets/create/website/base/crawling.tsx | 2 +- .../create/website/base/options-wrap.tsx | 2 +- .../create/website/base/url-input.tsx | 2 +- .../create/website/firecrawl/index.tsx | 2 +- .../create/website/firecrawl/options.tsx | 2 +- .../datasets/create/website/index.tsx | 2 +- .../create/website/jina-reader/index.tsx | 2 +- .../create/website/jina-reader/options.tsx | 2 +- .../datasets/create/website/no-data.tsx | 2 +- .../datasets/create/website/preview.tsx | 2 +- .../create/website/watercrawl/index.tsx | 2 +- .../create/website/watercrawl/options.tsx | 2 +- .../components/document-table-row.tsx | 2 +- .../hooks/use-document-actions.ts | 2 +- .../documents/components/documents-header.tsx | 2 +- .../documents/components/empty-element.tsx | 2 +- .../datasets/documents/components/list.tsx | 2 +- .../documents/components/operations.tsx | 2 +- .../documents/components/rename-modal.tsx | 2 +- .../create-from-pipeline/actions/index.tsx | 2 +- .../data-source/base/header.tsx | 2 +- .../local-file/components/upload-dropzone.tsx | 2 +- .../online-documents/page-selector/index.tsx | 2 +- .../data-source/online-documents/title.tsx | 2 +- .../file-list/header/breadcrumbs/bucket.tsx | 2 +- .../file-list/header/breadcrumbs/drive.tsx | 2 +- .../header/breadcrumbs/dropdown/index.tsx | 2 +- .../file-list/header/breadcrumbs/index.tsx | 2 +- .../online-drive/file-list/header/index.tsx | 2 +- .../file-list/list/empty-folder.tsx | 2 +- .../file-list/list/empty-search-result.tsx | 2 +- .../online-drive/file-list/list/index.tsx | 2 +- .../online-drive/file-list/list/item.tsx | 2 +- .../base/crawled-result-item.tsx | 2 +- .../website-crawl/base/crawled-result.tsx | 2 +- .../website-crawl/base/crawling.tsx | 2 +- .../website-crawl/base/options/index.tsx | 2 +- .../data-source/website-crawl/index.tsx | 2 +- .../hooks/use-add-documents-steps.ts | 2 +- .../hooks/use-datasource-ui-state.ts | 2 +- .../documents/create-from-pipeline/index.tsx | 2 +- .../create-from-pipeline/left-header.tsx | 2 +- .../preview/chunk-preview.tsx | 2 +- .../preview/file-preview.tsx | 2 +- .../preview/online-document-preview.tsx | 2 +- .../preview/web-preview.tsx | 2 +- .../process-documents/actions.tsx | 2 +- .../process-documents/header.tsx | 2 +- .../processing/embedding-process/index.tsx | 2 +- .../embedding-process/rule-detail.tsx | 7 +- .../create-from-pipeline/processing/index.tsx | 2 +- .../detail/batch-modal/csv-downloader.tsx | 2 +- .../detail/batch-modal/csv-uploader.tsx | 2 +- .../documents/detail/batch-modal/index.tsx | 2 +- .../detail/completed/child-segment-detail.tsx | 2 +- .../detail/completed/child-segment-list.tsx | 2 +- .../completed/common/action-buttons.tsx | 2 +- .../detail/completed/common/add-another.tsx | 2 +- .../detail/completed/common/batch-action.tsx | 2 +- .../detail/completed/common/chunk-content.tsx | 4 +- .../detail/completed/common/empty.tsx | 2 +- .../detail/completed/common/keywords.tsx | 2 +- .../completed/common/regeneration-modal.tsx | 6 +- .../detail/completed/common/summary-label.tsx | 2 +- .../completed/common/summary-status.tsx | 2 +- .../detail/completed/common/summary-text.tsx | 2 +- .../detail/completed/components/menu-bar.tsx | 2 +- .../detail/completed/display-toggle.tsx | 2 +- .../completed/hooks/use-child-segment-data.ts | 2 +- .../completed/hooks/use-search-filter.ts | 2 +- .../completed/hooks/use-segment-list-data.ts | 2 +- .../documents/detail/completed/index.tsx | 2 +- .../detail/completed/new-child-segment.tsx | 2 +- .../detail/completed/segment-card/index.tsx | 2 +- .../detail/completed/segment-detail.tsx | 2 +- .../detail/completed/segment-list.tsx | 2 +- .../skeleton/parent-chunk-card-skeleton.tsx | 2 +- .../embedding/components/rule-detail.tsx | 7 +- .../embedding/components/segment-progress.tsx | 2 +- .../embedding/components/status-header.tsx | 2 +- .../documents/detail/embedding/index.tsx | 2 +- .../datasets/documents/detail/index.tsx | 2 +- .../detail/metadata/components/field-info.tsx | 2 +- .../datasets/documents/detail/new-segment.tsx | 2 +- .../documents/detail/segment-add/index.tsx | 2 +- .../detail/settings/document-settings.tsx | 2 +- .../settings/pipeline-settings/index.tsx | 2 +- .../pipeline-settings/left-header.tsx | 2 +- .../process-documents/actions.tsx | 2 +- .../datasets/documents/status-item/hooks.ts | 2 +- .../datasets/documents/status-item/index.tsx | 2 +- .../external-api/external-api-modal/Form.tsx | 2 +- .../external-api/external-api-modal/index.tsx | 2 +- .../external-api/external-api-panel/index.tsx | 2 +- .../external-knowledge-api-card/index.tsx | 2 +- .../connector/index.tsx | 2 +- .../create/ExternalApiSelect.tsx | 2 +- .../create/ExternalApiSelection.tsx | 2 +- .../create/InfoPanel.tsx | 2 +- .../create/KnowledgeBaseInfo.tsx | 2 +- .../create/RetrievalSettings.tsx | 2 +- .../external-knowledge-base/create/index.tsx | 2 +- .../datasets/extra-info/api-access/card.tsx | 2 +- .../datasets/extra-info/api-access/index.tsx | 2 +- .../datasets/extra-info/service-api/card.tsx | 2 +- .../datasets/extra-info/service-api/index.tsx | 2 +- .../datasets/extra-info/statistics.tsx | 2 +- .../formatted-text/flavours/edit-slice.tsx | 2 +- .../components/chunk-detail-modal.tsx | 2 +- .../hit-testing/components/empty-records.tsx | 2 +- .../components/query-input/index.tsx | 2 +- .../components/query-input/textarea.tsx | 2 +- .../hit-testing/components/records.tsx | 2 +- .../components/result-item-external.tsx | 2 +- .../components/result-item-footer.tsx | 2 +- .../components/result-item-meta.tsx | 2 +- .../hit-testing/components/result-item.tsx | 2 +- .../components/datasets/hit-testing/index.tsx | 2 +- .../modify-external-retrieval-modal.tsx | 2 +- .../hit-testing/modify-retrieval-modal.tsx | 2 +- .../dataset-card/components/corner-labels.tsx | 2 +- .../components/dataset-card-footer.tsx | 2 +- .../components/dataset-card-header.tsx | 2 +- .../components/dataset-card-modals.tsx | 2 +- .../hooks/use-dataset-card-state.ts | 2 +- .../datasets/list/dataset-card/index.tsx | 2 +- .../datasets/list/dataset-card/operations.tsx | 2 +- web/app/components/datasets/list/datasets.tsx | 2 +- .../datasets/list/first-empty-state/index.tsx | 2 +- web/app/components/datasets/list/header.tsx | 2 +- web/app/components/datasets/list/index.tsx | 2 +- .../datasets/metadata/base/date-picker.tsx | 2 +- .../edit-metadata-batch/edited-beacon.tsx | 2 +- .../input-has-set-multiple-value.tsx | 2 +- .../metadata/edit-metadata-batch/modal.tsx | 2 +- .../metadata/hooks/use-check-metadata-name.ts | 2 +- .../hooks/use-edit-dataset-metadata.ts | 2 +- .../metadata/hooks/use-metadata-document.ts | 2 +- .../metadata-dataset/create-content.tsx | 2 +- .../dataset-metadata-drawer.tsx | 4 +- .../dataset-metadata-picker.tsx | 6 +- .../metadata/metadata-document/index.tsx | 2 +- .../metadata/metadata-document/info-group.tsx | 2 +- .../metadata/metadata-document/no-data.tsx | 2 +- .../datasets/no-linked-apps-panel.tsx | 2 +- .../datasets/rename-modal/index.tsx | 2 +- .../settings/chunk-structure/hooks.tsx | 2 +- .../settings/chunk-structure/index.tsx | 2 +- .../form/components/basic-info-section.tsx | 2 +- .../components/external-knowledge-section.tsx | 2 +- .../form/components/indexing-section.tsx | 2 +- .../settings/form/hooks/use-form-state.ts | 2 +- .../datasets/settings/form/index.tsx | 2 +- .../datasets/settings/index-method/index.tsx | 2 +- .../settings/index-method/keyword-number.tsx | 2 +- .../datasets/settings/option-card.tsx | 2 +- .../settings/permission-selector/index.tsx | 2 +- .../permission-selector/member-item.tsx | 2 +- .../settings/summary-index-setting.tsx | 2 +- .../detail-sidebar/toggle-button.tsx | 2 +- web/app/components/explore/category.tsx | 2 +- .../explore/create-app-modal/index.tsx | 2 +- .../explore/item-operation/index.tsx | 4 +- .../components/explore/learn-dify/index.tsx | 2 +- .../explore/try-app/app-info/index.tsx | 2 +- .../components/explore/try-app/app/chat.tsx | 2 +- .../explore/try-app/app/text-generation.tsx | 2 +- web/app/components/explore/try-app/index.tsx | 2 +- .../goto-anything/components/empty-state.tsx | 2 +- .../goto-anything/components/footer.tsx | 2 +- web/app/components/goto-anything/index.tsx | 2 +- .../header/account-dropdown/compliance.tsx | 4 +- .../header/account-dropdown/index.tsx | 2 +- .../main-nav-menu-content.tsx | 4 +- .../workplace-selector/index.tsx | 2 +- .../access-rule-row-menu.tsx | 2 +- .../access-rules-page/access-rule-row.tsx | 2 +- .../access-rules-page/access-rule-section.tsx | 2 +- .../permission-set-modal/hooks.ts | 2 +- .../permission-set-modal/index.tsx | 2 +- .../resource-access-rule-section.tsx | 2 +- .../__tests__/item.spec.tsx | 2 +- .../__tests__/modal.spec.tsx | 2 +- .../api-based-extension-page/empty.tsx | 2 +- .../api-based-extension-page/index.tsx | 4 +- .../api-based-extension-page/item.tsx | 2 +- .../api-based-extension-page/modal.tsx | 2 +- .../api-based-extension-page/selector.tsx | 2 +- .../data-source-page-new/card.tsx | 2 +- .../data-source-page-new/configure.tsx | 2 +- .../data-source-page-new/index.tsx | 4 +- .../install-from-marketplace.tsx | 2 +- .../data-source-page-new/item.tsx | 2 +- .../data-source-page-new/operator.tsx | 2 +- .../data-source-page-new/plugin-actions.tsx | 2 +- .../header/account-setting/index.tsx | 2 +- .../key-validator/ValidateStatus.tsx | 2 +- .../members-page/assign-roles-modal/index.tsx | 2 +- .../edit-workspace-modal/index.tsx | 2 +- .../account-setting/members-page/index.tsx | 2 +- .../members-page/invite-button.tsx | 2 +- .../invite-modal/email-recipients-field.tsx | 2 +- .../members-page/invite-modal/index.tsx | 4 +- .../invite-modal/role-selector.tsx | 2 +- .../members-page/invited-modal/index.tsx | 2 +- .../invited-modal/invitation-link.tsx | 2 +- .../member-details-modal/index.tsx | 2 +- .../permission-role-chip.tsx | 2 +- .../members-page/member-menu.tsx | 2 +- .../members-page/member-row.tsx | 2 +- .../transfer-ownership-modal/index.tsx | 2 +- .../member-selector.tsx | 2 +- .../header/account-setting/menu-dialog.tsx | 2 +- .../model-provider-page/index.tsx | 2 +- .../install-from-marketplace.tsx | 2 +- .../add-credential-in-load-balancing.tsx | 2 +- .../model-auth/add-custom-model.tsx | 2 +- .../model-auth/authorized/credential-item.tsx | 2 +- .../model-auth/authorized/index.tsx | 2 +- .../model-auth/config-model.tsx | 2 +- .../model-auth/credential-selector.tsx | 2 +- .../model-auth/hooks/use-auth.ts | 2 +- .../hooks/use-model-form-schemas.ts | 2 +- .../manage-custom-model-credentials.tsx | 2 +- .../switch-credential-in-load-balancing.tsx | 2 +- .../model-provider-page/model-modal/index.tsx | 2 +- .../model-parameter-modal/index.tsx | 2 +- .../model-settings-trigger.tsx | 2 +- .../model-parameter-modal/parameter-item.tsx | 2 +- .../presets-parameter.tsx | 2 +- .../model-provider-page-body.tsx | 6 +- .../model-selector/feature-icon.tsx | 2 +- .../model-selector/index.tsx | 2 +- .../model-selector/marketplace-section.tsx | 2 +- .../model-selector/model-selector-trigger.tsx | 2 +- .../model-selector/popup-empty-state.tsx | 2 +- .../model-selector/popup-item.tsx | 2 +- .../model-selector/popup-layout.tsx | 8 +- .../model-selector/popup.tsx | 2 +- .../provider-added-card/cooldown-timer.tsx | 2 +- .../provider-added-card/credential-panel.tsx | 2 +- .../provider-added-card/index.tsx | 2 +- .../lazy-custom-model-actions.tsx | 2 +- .../model-auth-dropdown/api-key-section.tsx | 2 +- .../model-auth-dropdown/button-config.ts | 6 +- .../credits-exhausted-alert.tsx | 2 +- .../credits-fallback-alert.tsx | 2 +- .../model-auth-dropdown/dropdown-content.tsx | 2 +- .../model-auth-dropdown/index.tsx | 2 +- .../usage-priority-section.tsx | 2 +- .../use-activate-credential.ts | 2 +- .../provider-added-card/model-list-item.tsx | 2 +- .../provider-added-card/model-list.tsx | 4 +- .../model-load-balancing-configs.tsx | 2 +- .../model-load-balancing-modal.tsx | 2 +- .../provider-card-actions.tsx | 4 +- .../provider-added-card/quota-panel.tsx | 2 +- .../use-change-provider-priority.ts | 2 +- .../system-model-selector/index.tsx | 2 +- .../account-setting/permission-group-list.tsx | 2 +- .../permissions-page/index.tsx | 2 +- .../role-list/copy-members-confirm-dialog.tsx | 2 +- .../permissions-page/role-list/index.tsx | 2 +- .../permissions-page/role-list/row-menu.tsx | 2 +- .../permissions-page/role-list/row.tsx | 2 +- .../permissions-page/role-modal/hooks.ts | 2 +- .../permissions-page/role-modal/index.tsx | 2 +- .../role-modal/permission-field.tsx | 2 +- .../account-setting/preference-page/index.tsx | 2 +- .../update-setting-dialog-form.tsx | 2 +- .../account-setting/update-setting-dialog.tsx | 2 +- .../workflow-log-archives-page/index.tsx | 6 +- .../workspace-role-checkbox-list.tsx | 2 +- web/app/components/header/env-nav/index.tsx | 2 +- .../components/header/license-badge/index.tsx | 2 +- .../integrations/hooks/use-integration-nav.ts | 2 +- web/app/components/integrations/index.tsx | 2 +- web/app/components/integrations/modal.tsx | 2 +- .../integrations/permission-quick-panel.tsx | 2 +- .../integrations/sidebar-actions.tsx | 4 +- .../integrations/tool-provider-card.tsx | 2 +- .../integrations/tool-provider-list.tsx | 2 +- .../integrations/tool-provider-toolbar.tsx | 2 +- .../main-nav/components/help-menu.tsx | 2 +- .../help-menu/account-about-dialog.tsx | 2 +- .../main-nav/components/search-button.tsx | 2 +- .../main-nav/components/support-menu.tsx | 2 +- .../main-nav/components/web-apps-section.tsx | 2 +- .../main-nav/components/workspace-card.tsx | 4 +- .../components/workspace-switcher.tsx | 4 +- web/app/components/main-nav/index.tsx | 2 +- web/app/components/main-nav/layout.tsx | 2 +- .../main-nav/responsive-main-nav.tsx | 2 +- .../plugins/base/deprecation-notice.tsx | 2 +- .../plugins/base/key-value-item.tsx | 2 +- web/app/components/plugins/card/index.tsx | 2 +- web/app/components/plugins/hooks.ts | 6 +- .../plugins/install-plugin/base/installed.tsx | 2 +- .../install-plugin/base/loading-error.tsx | 2 +- .../install-plugin/install-bundle/index.tsx | 2 +- .../install-bundle/steps/install.tsx | 2 +- .../install-bundle/steps/installed.tsx | 2 +- .../install-from-github/index.tsx | 2 +- .../install-from-github/steps/loaded.tsx | 2 +- .../steps/selectPackage.tsx | 2 +- .../install-from-local-package/index.tsx | 2 +- .../steps/install.tsx | 2 +- .../steps/uploading.tsx | 2 +- .../install-from-marketplace/index.tsx | 2 +- .../steps/install.tsx | 2 +- .../creator-profile/creation-card.tsx | 2 +- .../creator-profile/creator-content.tsx | 2 +- .../creator-profile/creator-sidebar.tsx | 2 +- .../marketplace/creator-profile/header.tsx | 2 +- .../marketplace/creator-profile/view.tsx | 2 +- .../plugins/marketplace/description/index.tsx | 4 +- .../marketplace/detail-dialog/frame.tsx | 2 +- .../marketplace/detail-dialog/index.tsx | 2 +- .../plugins/marketplace/empty/index.tsx | 2 +- .../home/__tests__/home-guide.spec.tsx | 1 + .../home/__tests__/home-header.spec.tsx | 1 + .../home/catalog-languages-filter.tsx | 2 +- .../home/embedded-marketplace-search.tsx | 2 +- .../home/home-catalog-navigation.tsx | 2 +- .../marketplace/home/home-catalog-tabs.tsx | 8 +- .../marketplace/home/home-creator-center.tsx | 2 +- .../plugins/marketplace/home/home-guide.tsx | 6 +- .../plugins/marketplace/home/home-hero.tsx | 2 +- .../home/home-trending-navigation.tsx | 2 +- .../marketplace/home/home-trending-slides.tsx | 6 +- .../marketplace/home/home-trending.tsx | 2 +- .../home/marketplace-search-autocomplete.tsx | 16 +-- .../plugins/marketplace/list/card-wrapper.tsx | 2 +- .../plugins/marketplace/list/carousel.tsx | 2 +- .../marketplace/list/list-with-collection.tsx | 2 +- .../plugins/marketplace/list/list-wrapper.tsx | 11 +- .../marketplace/plugin-type-switch.tsx | 2 +- .../plugins/marketplace/search-box/index.tsx | 2 +- .../search-box/search-box-wrapper.tsx | 2 +- .../marketplace/search-box/tags-filter.tsx | 2 +- .../search-box/trigger/marketplace.tsx | 2 +- .../search-box/trigger/tool-selector.tsx | 2 +- .../marketplace/sort-dropdown/index.tsx | 2 +- .../templates/template-detail-dialog.tsx | 2 +- .../authorize/add-oauth-button.tsx | 2 +- .../plugin-auth/authorize/api-key-modal.tsx | 2 +- .../plugins/plugin-auth/authorize/index.tsx | 2 +- .../authorize/oauth-client-settings.tsx | 2 +- .../authorize/oauth-visibility-dialog.tsx | 2 +- .../authorize/permission-selector.tsx | 2 +- .../authorized-in-data-source-node.tsx | 2 +- .../plugin-auth/authorized-in-node.tsx | 2 +- .../plugins/plugin-auth/authorized/index.tsx | 2 +- .../plugins/plugin-auth/authorized/item.tsx | 2 +- .../hooks/use-plugin-auth-action.ts | 2 +- .../plugin-auth/plugin-auth-in-agent.tsx | 2 +- .../plugin-auth-in-datasource-node.tsx | 2 +- .../plugins/plugin-auth/plugin-auth.tsx | 2 +- .../plugin-detail-panel/action-list.tsx | 2 +- .../agent-strategy-list.tsx | 2 +- .../app-selector/app-inputs-form.tsx | 2 +- .../app-selector/app-inputs-panel.tsx | 2 +- .../app-selector/app-picker.tsx | 2 +- .../app-selector/app-trigger.tsx | 2 +- .../app-selector/index.tsx | 2 +- .../datasource-action-list.tsx | 2 +- .../components/header-modals.tsx | 2 +- .../components/plugin-source-badge.tsx | 2 +- .../hooks/use-plugin-operations.ts | 2 +- .../detail-header/index.tsx | 2 +- .../plugin-detail-panel/endpoint-card.tsx | 2 +- .../plugin-detail-panel/endpoint-list.tsx | 2 +- .../plugin-detail-panel/endpoint-modal.tsx | 2 +- .../plugin-detail-panel/model-list.tsx | 2 +- .../model-selector/index.tsx | 2 +- .../model-selector/llm-params-panel.tsx | 2 +- .../model-selector/tts-params-panel.tsx | 2 +- .../multiple-tool-selector/index.tsx | 2 +- .../operation-dropdown.tsx | 2 +- .../plugin-detail-panel/strategy-detail.tsx | 2 +- .../subscription-list/create/common-modal.tsx | 2 +- .../create/components/modal-steps.tsx | 6 +- .../create/hooks/use-common-modal-state.ts | 2 +- .../create/hooks/use-oauth-client-state.ts | 2 +- .../subscription-list/create/index.tsx | 2 +- .../subscription-list/create/oauth-client.tsx | 2 +- .../subscription-list/delete-confirm.tsx | 2 +- .../edit/apikey-edit-modal.tsx | 4 +- .../edit/manual-edit-modal.tsx | 2 +- .../edit/oauth-edit-modal.tsx | 2 +- .../subscription-list/list-view.tsx | 2 +- .../subscription-list/log-viewer.tsx | 2 +- .../subscription-list/selector-entry.tsx | 2 +- .../subscription-list/selector-view.tsx | 2 +- .../subscription-list/subscription-card.tsx | 2 +- .../components/reasoning-config-form.tsx | 2 +- .../tool-selector/components/schema-modal.tsx | 2 +- .../components/tool-base-form.tsx | 2 +- .../tool-selector/components/tool-item.tsx | 2 +- .../components/tool-settings-panel.tsx | 4 +- .../tool-selector/components/tool-trigger.tsx | 2 +- .../tool-selector/index.tsx | 2 +- .../trigger/event-detail-drawer.tsx | 5 +- .../trigger/event-list.tsx | 2 +- .../components/plugins/plugin-item/action.tsx | 2 +- .../components/plugins/plugin-item/index.tsx | 2 +- .../plugins/plugin-mutation-model/index.tsx | 2 +- .../plugin-page/category-empty-state.tsx | 2 +- .../category-marketplace-panel.tsx | 2 +- .../plugins/plugin-page/debug-info.tsx | 2 +- .../plugins/plugin-page/empty/index.tsx | 2 +- .../filter-management/category-filter.tsx | 2 +- .../filter-management/search-box.tsx | 2 +- .../filter-management/tag-filter.tsx | 2 +- .../plugin-page/install-plugin-dropdown.tsx | 2 +- .../plugins/plugin-page/nav-operations.tsx | 2 +- .../plugins/plugin-page/plugin-info.tsx | 2 +- .../plugin-page/plugin-list-skeleton.tsx | 2 +- .../plugin-page/plugin-sidecar-panel.tsx | 2 +- .../components/error-plugin-item.tsx | 2 +- .../components/plugin-task-list.tsx | 2 +- .../plugin-page/plugin-tasks/index.tsx | 2 +- .../plugin-page/plugins-panel-results.tsx | 2 +- .../plugins/plugin-page/plugins-panel.tsx | 2 +- .../plugin-page/use-reference-setting.ts | 4 +- web/app/components/plugins/provider-card.tsx | 2 +- .../plugins/readme-panel/content.tsx | 2 +- .../plugins/readme-panel/dialog.tsx | 2 +- .../plugins/readme-panel/drawer.tsx | 2 +- .../plugins/readme-panel/entrance.tsx | 2 +- .../no-data-placeholder.tsx | 2 +- .../no-plugin-selected.tsx | 2 +- .../auto-update-setting/plugins-picker.tsx | 2 +- .../auto-update-setting/tool-picker.tsx | 2 +- .../update-plugin/downgrade-warning.tsx | 2 +- .../update-plugin/from-market-place.tsx | 2 +- .../update-plugin/plugin-version-picker.tsx | 2 +- .../components/chunk-card-list/chunk-card.tsx | 2 +- .../rag-pipeline/components/conversion.tsx | 2 +- .../editor/form/__tests__/schema.spec.ts | 2 +- .../panel/input-field/editor/form/hooks.ts | 6 +- .../panel/input-field/editor/form/index.tsx | 2 +- .../panel/input-field/editor/form/schema.ts | 2 +- .../editor/form/show-all-settings.tsx | 2 +- .../panel/input-field/editor/index.tsx | 2 +- .../input-field/field-list/field-item.tsx | 2 +- .../panel/input-field/field-list/hooks.ts | 2 +- .../panel/input-field/field-list/index.tsx | 2 +- .../components/panel/input-field/index.tsx | 2 +- .../label-right-content/global-inputs.tsx | 2 +- .../panel/input-field/preview/data-source.tsx | 2 +- .../panel/input-field/preview/index.tsx | 2 +- .../input-field/preview/process-documents.tsx | 2 +- .../components/panel/test-run/header.tsx | 2 +- .../test-run/preparation/actions/index.tsx | 2 +- .../preparation/data-source-options/index.tsx | 2 +- .../document-processing/actions.tsx | 2 +- .../test-run/preparation/footer-tips.tsx | 2 +- .../panel/test-run/preparation/hooks.ts | 2 +- .../test-run/result/result-preview/index.tsx | 2 +- .../panel/test-run/result/tabs/index.tsx | 2 +- .../publish-as-knowledge-pipeline-modal.tsx | 2 +- .../rag-pipeline/components/publish-toast.tsx | 2 +- .../input-field-button.tsx | 2 +- .../rag-pipeline-header/publisher/index.tsx | 2 +- .../rag-pipeline-header/publisher/popup.tsx | 2 +- .../rag-pipeline-header/run-mode.tsx | 2 +- .../components/update-dsl-modal.tsx | 2 +- .../components/version-mismatch-modal.tsx | 2 +- .../components/rag-pipeline/hooks/use-DSL.ts | 2 +- .../hooks/use-available-nodes-meta-data.ts | 2 +- .../hooks/use-pipeline-template.ts | 2 +- .../hooks/use-update-dsl-modal.ts | 2 +- .../hooks/use-text-generation-app-state.ts | 2 +- .../share/text-generation/index.tsx | 2 +- .../share/text-generation/info-modal.tsx | 2 +- .../share/text-generation/menu-dropdown.tsx | 2 +- .../share/text-generation/no-data/index.tsx | 2 +- .../share/text-generation/result/index.tsx | 2 +- .../run-batch/csv-download/index.tsx | 2 +- .../run-batch/csv-reader/index.tsx | 2 +- .../share/text-generation/run-batch/index.tsx | 2 +- .../run-batch/res-download/index.tsx | 2 +- .../share/text-generation/run-once/index.tsx | 2 +- .../text-generation-result-panel.tsx | 2 +- .../text-generation-sidebar.tsx | 2 +- .../components/share/text-generation/types.ts | 7 +- web/app/components/signin/countdown.tsx | 4 +- .../snippet-list/components/snippet-card.tsx | 4 +- .../components/snippet-create-button.tsx | 2 +- .../snippet-publish-status-filter.tsx | 2 +- web/app/components/snippet-list/index.tsx | 2 +- .../components/hooks/use-snippet-dsl.ts | 2 +- .../components/hooks/use-snippet-publish.ts | 2 +- .../components/snippet-collapsed-preview.tsx | 2 +- .../components/snippet-detail-top.tsx | 2 +- .../components/snippet-header/index.tsx | 4 +- .../components/snippet-header/run-mode.tsx | 2 +- .../snippets/components/snippet-layout.tsx | 2 +- .../snippets/components/snippet-main.tsx | 2 +- .../snippets/components/snippet-run-panel.tsx | 2 +- .../snippets/components/snippet-sidebar.tsx | 2 +- .../snippets/create-snippet-dialog.tsx | 2 +- .../use-create-snippet-from-selection.tsx | 2 +- .../snippets/hooks/use-create-snippet.ts | 2 +- .../snippets/import-snippet-dsl-dialog.tsx | 4 +- .../components/step-by-step-tour/mount.tsx | 2 +- .../config-credentials.tsx | 2 +- .../get-schema.tsx | 2 +- .../edit-custom-collection-modal/index.tsx | 2 +- .../edit-custom-collection-modal/test-api.tsx | 2 +- web/app/components/tools/labels/filter.tsx | 2 +- web/app/components/tools/labels/selector.tsx | 2 +- .../components/tools/marketplace/index.tsx | 2 +- web/app/components/tools/mcp/create-card.tsx | 4 +- .../components/tools/mcp/detail/content.tsx | 2 +- .../tools/mcp/detail/operation-dropdown.tsx | 2 +- .../components/tools/mcp/detail/tool-item.tsx | 2 +- .../components/tools/mcp/headers-input.tsx | 2 +- web/app/components/tools/mcp/index.tsx | 2 +- .../components/tools/mcp/mcp-server-modal.tsx | 2 +- .../tools/mcp/mcp-server-param-item.tsx | 2 +- web/app/components/tools/mcp/modal.tsx | 2 +- .../components/tools/mcp/provider-card.tsx | 2 +- .../mcp/sections/authentication-section.tsx | 2 +- .../mcp/sections/configurations-section.tsx | 2 +- .../tools/mcp/sections/headers-section.tsx | 2 +- .../tools/provider/custom-create-card.tsx | 6 +- web/app/components/tools/provider/detail.tsx | 2 +- web/app/components/tools/provider/empty.tsx | 2 +- .../setting/build-in/config-credentials.tsx | 2 +- .../workflow-tool/__tests__/helpers.spec.ts | 2 +- .../workflow-tool/confirm-modal/index.tsx | 2 +- .../components/tools/workflow-tool/helpers.ts | 2 +- .../hooks/use-configure-button.ts | 2 +- .../components/tools/workflow-tool/index.tsx | 4 +- .../tools/workflow-tool/method-selector.tsx | 2 +- .../workflow-header/features-trigger.tsx | 2 +- .../workflow-app/components/workflow-main.tsx | 2 +- .../workflow-onboarding-modal/index.tsx | 2 +- .../start-node-selection-panel.tsx | 2 +- .../components/workflow-app/hooks/use-DSL.ts | 2 +- .../hooks/use-available-nodes-meta-data.ts | 2 +- .../use-workflow-draft-graph-for-canvas.ts | 2 +- .../hooks/use-workflow-template.ts | 2 +- .../block-selector/all-start-blocks.tsx | 2 +- .../workflow/block-selector/blocks.tsx | 2 +- .../block-selector/featured-tools.tsx | 5 +- .../block-selector/featured-triggers.tsx | 5 +- .../workflow/block-selector/hooks.ts | 6 +- .../workflow/block-selector/index.tsx | 2 +- .../__tests__/item-list.spec.tsx | 2 +- .../marketplace-plugin/action.tsx | 2 +- .../marketplace-plugin/item.tsx | 2 +- .../marketplace-plugin/list.tsx | 2 +- .../rag-tool-recommendations/index.tsx | 2 +- .../uninstalled-item.tsx | 2 +- .../block-selector/snippets/index.tsx | 4 +- .../snippets/snippet-detail-card.tsx | 2 +- .../snippets/snippet-empty-state.tsx | 2 +- .../snippets/snippet-tags-filter.tsx | 2 +- .../snippets/use-insert-snippet.ts | 2 +- .../workflow/block-selector/start-blocks.tsx | 2 +- .../workflow/block-selector/tabs.tsx | 2 +- .../workflow/block-selector/tool-browser.tsx | 4 +- .../workflow/block-selector/tool-picker.tsx | 4 +- .../block-selector/tool/action-item.tsx | 2 +- .../tool/tool-list-tree-view/list.tsx | 2 +- .../workflow/block-selector/tool/tool.tsx | 2 +- .../trigger-plugin/action-item.tsx | 2 +- .../block-selector/trigger-plugin/item.tsx | 2 +- .../block-selector/view-type-select.tsx | 2 +- .../workflow/comment/comment-icon.tsx | 2 +- .../workflow/comment/comment-input.tsx | 2 +- .../workflow/comment/mention-input.tsx | 2 +- .../components/workflow/comment/thread.tsx | 2 +- .../workflow/dsl-export-confirm-modal.tsx | 2 +- .../components/workflow/edge-contextmenu.tsx | 2 +- .../workflow/header/chat-variable-button.tsx | 2 +- .../workflow/header/checklist/index.tsx | 2 +- .../workflow/header/checklist/node-group.tsx | 2 +- .../header/checklist/plugin-group.tsx | 2 +- .../workflow/header/editing-title.tsx | 2 +- .../components/workflow/header/env-button.tsx | 2 +- .../header/global-variable-button.tsx | 2 +- .../workflow/header/header-in-restoring.tsx | 2 +- .../header/header-in-view-history.tsx | 2 +- .../workflow/header/online-users.tsx | 2 +- .../workflow/header/restoring-title.tsx | 2 +- .../workflow/header/run-and-history.tsx | 2 +- .../components/workflow/header/run-mode.tsx | 2 +- .../workflow/header/running-title.tsx | 2 +- .../header/scroll-to-selected-node-button.tsx | 2 +- .../workflow/header/test-run-menu.tsx | 2 +- .../components/workflow/header/undo-redo.tsx | 2 +- .../header/version-history-button.tsx | 2 +- .../workflow/header/view-history.tsx | 2 +- .../workflow/header/view-workflow-history.tsx | 2 +- .../workflow/hooks/use-checklist.ts | 6 +- .../hooks/use-dynamic-test-run-options.tsx | 2 +- .../hooks/use-edge-accessible-label.ts | 2 +- .../workflow/hooks/use-locate-node.ts | 2 +- .../hooks/use-node-keyboard-interactions.ts | 2 +- .../hooks/use-nodes-available-var-list.ts | 4 +- .../workflow/hooks/use-nodes-interactions.ts | 2 +- .../workflow/hooks/use-workflow-history.ts | 2 +- .../workflow/hooks/use-workflow-variables.ts | 2 +- web/app/components/workflow/index.tsx | 2 +- .../llm-environment-variable-value-field.tsx | 2 +- .../node-actions-menu/change-block-popup.tsx | 2 +- .../context-menu-content.tsx | 2 +- .../node-actions-menu/dropdown-content.tsx | 2 +- .../workflow/node-actions-menu/index.tsx | 2 +- .../_base/components/add-variable-popup.tsx | 2 +- .../components/agent-strategy-selector.tsx | 4 +- .../nodes/_base/components/agent-strategy.tsx | 2 +- .../components/before-run-form/bool-input.tsx | 2 +- .../components/before-run-form/form-item.tsx | 2 +- .../_base/components/before-run-form/form.tsx | 2 +- .../components/before-run-form/index.tsx | 2 +- .../components/before-run-form/panel-wrap.tsx | 2 +- .../components/branch-list/class-item.tsx | 2 +- .../branch-list/class-label-utils.ts | 11 +- .../components/branch-list/class-list.tsx | 2 +- .../components/branch-list/node-branches.tsx | 4 +- .../components/code-generator-button.tsx | 2 +- .../nodes/_base/components/config-vision.tsx | 2 +- .../nodes/_base/components/editor/base.tsx | 2 +- .../code-editor/editor-support-vars.tsx | 2 +- .../_base/components/entry-node-container.tsx | 2 +- .../components/error-handle/default-value.tsx | 2 +- .../error-handle/error-handle-on-node.tsx | 2 +- .../error-handle/error-handle-on-panel.tsx | 2 +- .../error-handle/error-handle-tip.tsx | 2 +- .../error-handle-type-selector.tsx | 2 +- .../error-handle/fail-branch-card.tsx | 2 +- .../nodes/_base/components/file-type-item.tsx | 2 +- .../_base/components/file-upload-setting.tsx | 2 +- .../components/form-input-type-switch.tsx | 2 +- .../nodes/_base/components/help-link.tsx | 2 +- .../components/input-support-select-var.tsx | 2 +- .../components/install-plugin-button.tsx | 2 +- .../mcp-tool-not-support-tooltip.tsx | 2 +- .../nodes/_base/components/memory-config.tsx | 2 +- .../nodes/_base/components/next-step/add.tsx | 2 +- .../_base/components/next-step/index.tsx | 2 +- .../nodes/_base/components/next-step/item.tsx | 2 +- .../_base/components/next-step/operator.tsx | 4 +- .../nodes/_base/components/node-control.tsx | 2 +- .../nodes/_base/components/node-handle.tsx | 2 +- .../nodes/_base/components/node-resizer.tsx | 2 +- .../nodes/_base/components/output-vars.tsx | 2 +- .../nodes/_base/components/prompt/editor.tsx | 2 +- .../nodes/_base/components/remove-button.tsx | 2 +- .../components/remove-effect-var-confirm.tsx | 2 +- .../_base/components/retry/retry-on-node.tsx | 2 +- .../_base/components/retry/retry-on-panel.tsx | 2 +- .../components/switch-plugin-version.tsx | 2 +- .../components/title-description-input.tsx | 4 +- .../_base/components/toggle-expand-btn.tsx | 2 +- .../nodes/_base/components/variable-tag.tsx | 2 +- .../variable/manage-input-field.tsx | 2 +- .../object-child-tree-panel/picker/field.tsx | 2 +- .../object-child-tree-panel/show/field.tsx | 2 +- .../components/variable/output-var-list.tsx | 2 +- .../nodes/_base/components/variable/utils.ts | 2 +- .../_base/components/variable/var-list.tsx | 2 +- .../variable/var-reference-picker.trigger.tsx | 2 +- .../variable/var-reference-picker.tsx | 2 +- .../variable/var-reference-popup.tsx | 2 +- .../variable/var-reference-vars.tsx | 2 +- .../_base/components/workflow-panel/index.tsx | 2 +- .../workflow-panel/last-run/no-data.tsx | 2 +- .../start-placeholder-panel.tsx | 4 +- .../_base/hooks/use-available-var-list.ts | 2 +- .../nodes/_base/hooks/use-one-step-run.ts | 2 +- .../components/workflow/nodes/_base/node.tsx | 2 +- .../agent-orchestrate-panel-content.tsx | 6 +- .../components/agent-output-routes.tsx | 2 +- .../agent-output-variables/edit-card.tsx | 2 +- .../agent-output-variables/index.tsx | 4 +- .../agent-output-variables/type-select.tsx | 2 +- .../agent-output-variables/utils.ts | 2 +- .../components/agent-roster-field.tsx | 6 +- .../agent-v2/components/agent-task-field.tsx | 4 +- .../components/edit-in-console-link.tsx | 2 +- .../save-inline-agent-to-roster-dialog.tsx | 6 +- .../workflow/nodes/agent-v2/default.ts | 2 +- .../workflow/nodes/agent-v2/hooks.ts | 2 +- .../workflow/nodes/agent-v2/node.tsx | 4 +- .../workflow/nodes/agent-v2/panel.tsx | 2 +- .../nodes/agent/components/model-bar.tsx | 2 +- .../nodes/agent/components/tool-icon.tsx | 2 +- .../workflow/nodes/agent/default.ts | 2 +- .../components/workflow/nodes/agent/node.tsx | 2 +- .../components/workflow/nodes/agent/panel.tsx | 2 +- .../workflow/nodes/answer/default.ts | 2 +- .../components/workflow/nodes/answer/node.tsx | 2 +- .../workflow/nodes/answer/panel.tsx | 2 +- .../components/operation-selector.tsx | 2 +- .../assigner/components/var-list/index.tsx | 2 +- .../workflow/nodes/assigner/default.ts | 2 +- .../workflow/nodes/assigner/node.tsx | 2 +- .../workflow/nodes/assigner/panel.tsx | 2 +- .../components/workflow/nodes/code/default.ts | 2 +- .../components/workflow/nodes/code/panel.tsx | 2 +- .../nodes/data-source-empty/index.tsx | 2 +- .../nodes/data-source/before-run-form.tsx | 2 +- .../workflow/nodes/data-source/default.ts | 2 +- .../workflow/nodes/data-source/panel.tsx | 2 +- .../nodes/document-extractor/default.ts | 2 +- .../nodes/document-extractor/node.tsx | 2 +- .../nodes/document-extractor/panel.tsx | 2 +- .../use-single-run-form-params.ts | 2 +- .../components/workflow/nodes/end/default.ts | 2 +- .../components/workflow/nodes/end/panel.tsx | 2 +- .../nodes/http/components/api-input.tsx | 2 +- .../http/components/authorization/index.tsx | 2 +- .../nodes/http/components/curl-panel.tsx | 2 +- .../key-value/key-value-edit/index.tsx | 2 +- .../key-value/key-value-edit/input-item.tsx | 2 +- .../key-value/key-value-edit/item.tsx | 2 +- .../nodes/http/components/timeout/index.tsx | 2 +- .../components/workflow/nodes/http/default.ts | 2 +- .../components/workflow/nodes/http/panel.tsx | 2 +- .../components/button-style-dropdown.tsx | 2 +- .../delivery-method/email-configure-modal.tsx | 2 +- .../components/delivery-method/index.tsx | 2 +- .../delivery-method/mail-body-input.tsx | 2 +- .../delivery-method/method-item.tsx | 2 +- .../delivery-method/method-selector.tsx | 2 +- .../delivery-method/recipient/email-input.tsx | 2 +- .../delivery-method/recipient/email-item.tsx | 2 +- .../delivery-method/recipient/index.tsx | 2 +- .../delivery-method/recipient/member-list.tsx | 2 +- .../recipient/member-selector.tsx | 2 +- .../delivery-method/test-email-sender.tsx | 2 +- .../delivery-method/upgrade-modal.tsx | 2 +- .../components/form-content-preview.tsx | 2 +- .../human-input/components/form-content.tsx | 2 +- .../components/single-run-form.tsx | 2 +- .../nodes/human-input/components/timeout.tsx | 2 +- .../human-input/components/user-action.tsx | 2 +- .../components/variable-in-markdown.tsx | 4 +- .../workflow/nodes/human-input/default.ts | 2 +- .../hooks/use-single-run-form-params.ts | 2 +- .../workflow/nodes/human-input/node.tsx | 2 +- .../workflow/nodes/human-input/panel.tsx | 2 +- .../if-else/components/condition-add.tsx | 2 +- .../components/condition-files-list-value.tsx | 2 +- .../condition-list/condition-input.tsx | 2 +- .../condition-list/condition-item.tsx | 2 +- .../condition-list/condition-operator.tsx | 2 +- .../components/condition-number-input.tsx | 2 +- .../if-else/components/condition-value.tsx | 2 +- .../if-else/components/condition-wrap.tsx | 2 +- .../workflow/nodes/if-else/default.ts | 2 +- .../workflow/nodes/if-else/node.tsx | 2 +- .../workflow/nodes/if-else/panel.tsx | 2 +- .../workflow/nodes/iteration-start/index.tsx | 4 +- .../workflow/nodes/iteration/add-block.tsx | 2 +- .../workflow/nodes/iteration/default.ts | 2 +- .../workflow/nodes/iteration/node.tsx | 2 +- .../workflow/nodes/iteration/panel.tsx | 2 +- .../nodes/iteration/use-interactions.ts | 2 +- .../iteration/use-single-run-form-params.ts | 2 +- .../knowledge-base/__tests__/utils.spec.ts | 2 +- .../components/chunk-structure/hooks.tsx | 2 +- .../components/chunk-structure/index.tsx | 2 +- .../chunk-structure/instruction/index.tsx | 2 +- .../components/chunk-structure/selector.tsx | 2 +- .../components/embedding-model.tsx | 2 +- .../components/index-method.tsx | 2 +- .../knowledge-base/components/option-card.tsx | 2 +- .../components/retrieval-setting/hooks.tsx | 2 +- .../components/retrieval-setting/index.tsx | 2 +- .../search-method-option.tsx | 4 +- .../top-k-and-score-threshold.tsx | 2 +- .../hooks/use-settings-display.ts | 2 +- .../workflow/nodes/knowledge-base/node.tsx | 8 +- .../workflow/nodes/knowledge-base/panel.tsx | 2 +- .../use-single-run-form-params.ts | 2 +- .../workflow/nodes/knowledge-base/utils.ts | 2 +- .../components/add-dataset.tsx | 2 +- .../components/dataset-item.tsx | 2 +- .../components/dataset-list.tsx | 2 +- .../components/metadata/add-condition.tsx | 2 +- .../condition-common-variable-selector.tsx | 2 +- .../condition-list/condition-date.tsx | 2 +- .../condition-list/condition-number.tsx | 2 +- .../condition-list/condition-operator.tsx | 2 +- .../condition-list/condition-string.tsx | 2 +- .../condition-variable-selector.tsx | 2 +- .../metadata/metadata-filter/index.tsx | 2 +- .../metadata-filter-selector.tsx | 2 +- .../components/metadata/metadata-panel.tsx | 2 +- .../components/metadata/metadata-trigger.tsx | 2 +- .../components/retrieval-config.tsx | 2 +- .../nodes/knowledge-retrieval/panel.tsx | 2 +- .../use-single-run-form-params.ts | 2 +- .../components/extract-input.tsx | 2 +- .../components/filter-condition.tsx | 2 +- .../list-operator/components/limit-config.tsx | 2 +- .../components/sub-variable-picker.tsx | 2 +- .../workflow/nodes/list-operator/default.ts | 2 +- .../workflow/nodes/list-operator/node.tsx | 2 +- .../workflow/nodes/list-operator/panel.tsx | 2 +- .../llm/components/config-prompt-item.tsx | 2 +- .../nodes/llm/components/config-prompt.tsx | 2 +- .../json-schema-config-modal/code-editor.tsx | 2 +- .../json-importer.tsx | 2 +- .../json-schema-config.tsx | 2 +- .../generated-result.tsx | 2 +- .../json-schema-generator/prompt-editor.tsx | 2 +- .../visual-editor/add-field.tsx | 2 +- .../visual-editor/card.tsx | 2 +- .../visual-editor/edit-card/actions.tsx | 2 +- .../edit-card/advanced-actions.tsx | 2 +- .../edit-card/advanced-options.tsx | 2 +- .../visual-editor/edit-card/index.tsx | 2 +- .../edit-card/required-switch.tsx | 2 +- .../visual-editor/hooks.ts | 2 +- .../llm/components/panel-memory-section.tsx | 2 +- .../llm/components/panel-output-section.tsx | 2 +- .../llm/components/prompt-generator-btn.tsx | 2 +- .../components/reasoning-format-config.tsx | 2 +- .../llm/components/resolution-picker.tsx | 2 +- .../nodes/llm/components/structure-output.tsx | 2 +- .../components/workflow/nodes/llm/default.ts | 2 +- .../components/workflow/nodes/llm/panel.tsx | 2 +- .../nodes/llm/use-single-run-form-params.ts | 2 +- .../workflow/nodes/loop-start/index.tsx | 4 +- .../workflow/nodes/loop/add-block.tsx | 2 +- .../nodes/loop/components/condition-add.tsx | 2 +- .../condition-list/condition-input.tsx | 2 +- .../condition-list/condition-item.tsx | 2 +- .../condition-list/condition-operator.tsx | 2 +- .../components/condition-number-input.tsx | 2 +- .../nodes/loop/components/condition-wrap.tsx | 2 +- .../loop/components/loop-variables/empty.tsx | 2 +- .../components/loop-variables/form-item.tsx | 2 +- .../loop-variables/input-mode-selec.tsx | 2 +- .../loop/components/loop-variables/item.tsx | 2 +- .../components/workflow/nodes/loop/default.ts | 2 +- .../components/workflow/nodes/loop/panel.tsx | 2 +- .../nodes/loop/use-single-run-form-params.ts | 2 +- .../extract-parameter/import-from-tool.tsx | 2 +- .../components/extract-parameter/item.tsx | 2 +- .../components/extract-parameter/list.tsx | 2 +- .../components/extract-parameter/update.tsx | 2 +- .../components/reasoning-mode-picker.tsx | 2 +- .../nodes/parameter-extractor/default.ts | 2 +- .../nodes/parameter-extractor/panel.tsx | 2 +- .../use-single-run-form-params.ts | 2 +- .../components/advanced-setting.tsx | 2 +- .../nodes/question-classifier/default.ts | 2 +- .../nodes/question-classifier/panel.tsx | 2 +- .../use-single-run-form-params.ts | 2 +- .../nodes/start-placeholder/default.ts | 2 +- .../workflow/nodes/start-placeholder/node.tsx | 2 +- .../nodes/start-placeholder/panel.tsx | 2 +- .../nodes/start/components/var-item.tsx | 2 +- .../nodes/start/components/var-list.tsx | 2 +- .../components/workflow/nodes/start/node.tsx | 2 +- .../components/workflow/nodes/start/panel.tsx | 2 +- .../workflow/nodes/start/use-config.ts | 2 +- .../nodes/start/use-single-run-form-params.ts | 2 +- .../nodes/template-transform/default.ts | 2 +- .../nodes/template-transform/panel.tsx | 2 +- .../nodes/tool/components/copy-id.tsx | 2 +- .../mixed-variable-text-input/index.tsx | 2 +- .../mixed-variable-text-input/placeholder.tsx | 2 +- .../tool/components/tool-date-picker.tsx | 2 +- .../components/tool-date-range-picker.tsx | 2 +- .../components/workflow/nodes/tool/default.ts | 2 +- .../workflow/nodes/tool/hooks/use-config.ts | 2 +- .../tool/hooks/use-single-run-form-params.ts | 2 +- .../components/workflow/nodes/tool/node.tsx | 2 +- .../components/workflow/nodes/tool/panel.tsx | 2 +- .../workflow/nodes/trigger-plugin/default.ts | 2 +- .../workflow/nodes/trigger-plugin/node.tsx | 2 +- .../components/frequency-selector.tsx | 2 +- .../components/mode-toggle.tsx | 2 +- .../components/monthly-days-selector.tsx | 2 +- .../components/next-execution-times.tsx | 2 +- .../components/on-minute-selector.tsx | 2 +- .../components/weekday-selector.tsx | 2 +- .../nodes/trigger-schedule/default.ts | 12 +- .../workflow/nodes/trigger-schedule/node.tsx | 2 +- .../workflow/nodes/trigger-schedule/panel.tsx | 2 +- .../components/header-table.tsx | 2 +- .../components/parameter-table.tsx | 2 +- .../workflow/nodes/trigger-webhook/default.ts | 2 +- .../workflow/nodes/trigger-webhook/panel.tsx | 2 +- .../nodes/trigger-webhook/use-config.ts | 2 +- .../components/node-group-item.tsx | 2 +- .../components/var-group-item.tsx | 2 +- .../components/var-list/index.tsx | 2 +- .../nodes/variable-assigner/default.ts | 2 +- .../workflow/nodes/variable-assigner/node.tsx | 2 +- .../nodes/variable-assigner/panel.tsx | 2 +- .../components/workflow/note-node/index.tsx | 2 +- .../workflow/note-node/note-editor/editor.tsx | 2 +- .../plugins/link-editor-plugin/component.tsx | 2 +- .../plugins/link-editor-plugin/hooks.ts | 2 +- .../note-node/note-editor/toolbar/command.tsx | 2 +- .../toolbar/font-size-selector.tsx | 2 +- .../note-editor/toolbar/operator.tsx | 2 +- .../workflow/operator/add-block.tsx | 2 +- .../components/workflow/operator/control.tsx | 2 +- .../workflow/operator/more-actions.tsx | 2 +- .../workflow/operator/zoom-in-out.tsx | 2 +- .../components/workflow/panel-contextmenu.tsx | 2 +- .../workflow/panel/chat-record/user-input.tsx | 2 +- .../components/array-bool-list.tsx | 2 +- .../components/array-value-list.tsx | 2 +- .../components/object-value-item.tsx | 2 +- .../components/object-value-list.tsx | 2 +- .../components/variable-modal-trigger.tsx | 2 +- .../components/variable-modal.tsx | 2 +- .../panel/chat-variable-panel/index.tsx | 2 +- .../workflow/panel/comments-panel/index.tsx | 2 +- .../conversation-variable-modal.tsx | 2 +- .../panel/debug-and-preview/empty.tsx | 2 +- .../workflow/panel/debug-and-preview/hooks.ts | 2 +- .../panel/debug-and-preview/index.tsx | 2 +- .../workflow/panel/env-panel/env-item.tsx | 2 +- .../workflow/panel/env-panel/index.tsx | 2 +- .../panel/env-panel/variable-modal.tsx | 2 +- .../panel/env-panel/variable-trigger.tsx | 2 +- .../panel/global-variable-panel/index.tsx | 2 +- .../workflow/panel/inputs-panel.tsx | 2 +- .../action-menu/index.tsx | 2 +- .../action-menu/use-action-menu.ts | 2 +- .../delete-confirm-modal.tsx | 2 +- .../panel/version-history-panel/empty.tsx | 2 +- .../filter/filter-switch.tsx | 2 +- .../filter/use-filter.ts | 2 +- .../panel/version-history-panel/index.tsx | 2 +- .../restore-confirm-modal.tsx | 2 +- .../version-history-item.tsx | 2 +- .../workflow/panel/workflow-preview.tsx | 2 +- .../run/agent-log/agent-log-nav-more.tsx | 2 +- .../workflow/run/agent-log/agent-log-nav.tsx | 2 +- .../run/agent-log/agent-log-trigger.tsx | 2 +- .../run/agent-log/agent-result-panel.tsx | 2 +- web/app/components/workflow/run/index.tsx | 2 +- .../iteration-log/iteration-log-trigger.tsx | 2 +- .../iteration-log/iteration-result-panel.tsx | 2 +- .../run/loop-log/loop-log-trigger.tsx | 2 +- .../run/loop-log/loop-result-panel.tsx | 2 +- web/app/components/workflow/run/meta.tsx | 2 +- web/app/components/workflow/run/node.tsx | 2 +- .../components/workflow/run/result-panel.tsx | 2 +- .../components/workflow/run/result-text.tsx | 2 +- .../run/retry-log/retry-log-trigger.tsx | 2 +- .../run/retry-log/retry-result-panel.tsx | 2 +- web/app/components/workflow/run/status.tsx | 2 +- .../components/workflow/run/tracing-panel.tsx | 2 +- .../run/utils/format-log/parallel/index.ts | 2 +- .../workflow/selection-contextmenu.tsx | 2 +- .../workflow/update-dsl-modal.helpers.ts | 2 +- .../components/workflow/update-dsl-modal.tsx | 2 +- .../variable-inspect/display-content.tsx | 2 +- .../workflow/variable-inspect/empty.tsx | 2 +- .../workflow/variable-inspect/group.tsx | 2 +- .../workflow/variable-inspect/index.tsx | 2 +- .../variable-inspect/large-data-alert.tsx | 2 +- .../workflow/variable-inspect/left.tsx | 2 +- .../workflow/variable-inspect/listening.tsx | 6 +- .../workflow/variable-inspect/panel.tsx | 2 +- .../workflow/variable-inspect/right.tsx | 2 +- .../workflow/variable-inspect/trigger.tsx | 2 +- .../value-content-sections.tsx | 2 +- .../workflow-generator/example-prompts.tsx | 2 +- .../workflow-generator/generation-plan.tsx | 4 +- .../workflow/workflow-generator/index.tsx | 4 +- .../components/error-handle-on-node.tsx | 2 +- .../components/nodes/agent-v2/node.tsx | 2 +- .../components/nodes/base.tsx | 2 +- .../components/nodes/if-else/node.tsx | 2 +- .../nodes/iteration-start/index.tsx | 2 +- .../components/nodes/loop-start/index.tsx | 2 +- .../nodes/question-classifier/node.tsx | 2 +- .../components/note-node/index.tsx | 2 +- .../components/zoom-in-out.tsx | 2 +- .../device/components/authorize-account.tsx | 2 +- web/app/device/components/authorize-sso.tsx | 2 +- web/app/device/components/chooser.tsx | 2 +- web/app/device/components/code-input.tsx | 2 +- web/app/device/page.tsx | 2 +- web/app/device/utils/error-copy.ts | 4 +- web/app/education/apply/application-form.tsx | 2 +- .../apply/applied-education-content.tsx | 2 +- web/app/education/apply/institution-field.tsx | 2 +- web/app/education/apply/role-selector.tsx | 2 +- web/app/education/education-shell.tsx | 2 +- web/app/education/expire-notice/modal.tsx | 2 +- web/app/education/user-info.tsx | 2 +- web/app/education/verify/verify-flow.tsx | 6 +- web/app/error.tsx | 2 +- .../forgot-password/ChangePasswordForm.tsx | 2 +- .../forgot-password/ForgotPasswordForm.tsx | 2 +- web/app/init/InitPasswordPopup.tsx | 2 +- web/app/install/installForm.tsx | 2 +- web/app/notifications/copy-error-action.tsx | 2 +- web/app/oauth-callback/page.tsx | 2 +- web/app/reset-password/check-code/page.tsx | 2 +- web/app/reset-password/page.tsx | 2 +- web/app/reset-password/set-password/page.tsx | 2 +- web/app/signin/check-code/page.tsx | 2 +- .../signin/components/mail-and-code-auth.tsx | 2 +- .../components/mail-and-password-auth.tsx | 2 +- web/app/signin/components/social-auth.tsx | 2 +- web/app/signin/components/sso-auth.tsx | 2 +- web/app/signin/components/turnstile.tsx | 2 +- web/app/signin/invite-settings/page.tsx | 2 +- web/app/signin/normal-form.tsx | 2 +- web/app/signin/one-more-step.tsx | 2 +- web/app/signup/check-code/page.tsx | 2 +- web/app/signup/components/input-mail.tsx | 2 +- web/app/signup/page.tsx | 2 +- web/app/signup/set-password/page.tsx | 2 +- web/docs/lint.md | 23 ++++ .../agent-composer/knowledge-validation.ts | 8 +- .../agent-detail/access-config/page.tsx | 2 +- .../access/components/agent-api-key-modal.tsx | 6 +- .../components/service-api-access-card.tsx | 4 +- .../components/use-web-app-access-control.ts | 2 +- .../access/components/web-app-access-card.tsx | 6 +- .../components/workflow-references-table.tsx | 6 +- .../agent-v2/agent-detail/access/page.tsx | 2 +- .../components/composer-provider.tsx | 2 +- .../configure/components/composer-session.tsx | 6 +- .../confirm-clear-session-dialog.tsx | 4 +- .../advanced/content-moderation.tsx | 2 +- .../components/orchestrate/advanced/env.tsx | 10 +- .../components/orchestrate/advanced/index.tsx | 2 +- .../orchestrate/build-draft-bar.tsx | 4 +- .../orchestrate/build-draft-changes-panel.tsx | 6 +- .../orchestrate/common/add-button.tsx | 2 +- .../components/orchestrate/files/index.tsx | 6 +- .../orchestrate/files/upload-dialog.tsx | 10 +- .../components/orchestrate/header.tsx | 2 +- .../components/orchestrate/index.tsx | 2 +- .../orchestrate/knowledge/dialog.tsx | 2 +- .../orchestrate/knowledge/index.tsx | 6 +- .../orchestrate/model-config/field.tsx | 2 +- .../orchestrate/prompt-editor/index.tsx | 2 +- .../orchestrate/prompt-editor/slash.tsx | 14 +-- .../orchestrate/publish-bar/index.tsx | 8 +- .../publish-bar/publish-impact-details.tsx | 2 +- .../publish-bar/publish-success.tsx | 2 +- .../orchestrate/skills/detail-dialog.tsx | 8 +- .../components/orchestrate/skills/index.tsx | 14 +-- .../components/orchestrate/skills/item.tsx | 4 +- .../orchestrate/skills/upload-dialog.tsx | 8 +- .../orchestrate/skills/use-skill-detail.ts | 2 +- .../orchestrate/tools/cli-tool/dialog.tsx | 4 +- .../orchestrate/tools/cli-tool/item.tsx | 2 +- .../components/orchestrate/tools/index.tsx | 4 +- .../orchestrate/tools/provider-tool/item.tsx | 8 +- .../components/preview/build-chat.tsx | 4 +- .../components/preview/chat-conversation.tsx | 2 +- .../preview/chat-features-panel.tsx | 2 +- .../components/preview/chat-session.tsx | 2 +- .../configure/components/preview/header.tsx | 2 +- .../components/preview/preview-chat.tsx | 4 +- .../preview/unconfigured-notice.tsx | 2 +- .../versions-panel/current-draft-item.tsx | 2 +- .../preview/versions-panel/filter.tsx | 4 +- .../preview/versions-panel/index.tsx | 6 +- .../versions-panel/version-filter-empty.tsx | 2 +- .../preview/versions-panel/version-item.tsx | 6 +- .../preview/working-directory-breadcrumb.tsx | 2 +- .../preview/working-directory-panel.tsx | 4 +- .../components/version-restore/index.tsx | 2 +- .../use-agent-configure-build-draft.ts | 4 +- .../configure/use-agent-configure-sync.ts | 4 +- web/features/agent-v2/agent-detail/layout.tsx | 4 +- .../logs/components/log-detail-panel.tsx | 4 +- .../logs/components/logs-table.tsx | 6 +- .../logs/components/source-cell.tsx | 2 +- .../logs/components/source-picker.tsx | 6 +- .../agent-v2/agent-detail/logs/page.tsx | 4 +- .../agent-detail/monitoring/chart.tsx | 2 +- .../agent-v2/agent-detail/monitoring/page.tsx | 6 +- .../monitoring/time-range-picker.tsx | 2 +- .../agent-v2/agent-detail/navigation.tsx | 6 +- .../agent-v2/agent-detail/sidebar-actions.tsx | 6 +- .../roster/components/agent-form-fields.tsx | 4 +- .../roster/components/agent-roster-list.tsx | 18 +-- .../agent-workflow-references-dropdown.tsx | 2 +- .../roster/components/create-agent-dialog.tsx | 6 +- .../roster/components/delete-agent-dialog.tsx | 4 +- .../components/duplicate-agent-dialog.tsx | 6 +- .../roster/components/edit-agent-dialog.tsx | 6 +- .../roster/components/roster-sort-select.tsx | 2 +- .../roster/components/roster-toolbar.tsx | 6 +- web/features/agent-v2/roster/page.tsx | 2 +- web/features/home/banner/banner.tsx | 4 +- .../home/continue-work/continue-work.tsx | 2 +- web/features/home/continue-work/item.tsx | 2 +- .../home/home-content/home-content.tsx | 2 +- .../home/home-content/templates-header.tsx | 2 +- web/features/home/home-intro.tsx | 2 +- web/features/home/home-skeleton.tsx | 2 +- web/features/home/template-card.tsx | 2 +- web/features/new-rag/add-source-page.tsx | 18 +-- .../new-rag/add-source-placeholder.tsx | 6 +- .../components/add-source-exit-dialog.tsx | 4 +- .../create-knowledge-dialog-parts.tsx | 2 +- .../create-knowledge-exit-dialog.tsx | 4 +- .../components/knowledge-space-card.tsx | 2 +- .../components/knowledge-view-switcher.tsx | 2 +- .../components/new-knowledge-list-states.tsx | 6 +- web/features/new-rag/crawl-selection-form.tsx | 6 +- .../new-rag/create-knowledge-page.tsx | 4 +- web/features/new-rag/create-source-setup.tsx | 6 +- web/features/new-rag/create-upload-queue.tsx | 4 +- .../new-rag/document-chunk-detail.tsx | 4 +- web/features/new-rag/document-chunk-tree.tsx | 4 +- .../new-rag/document-detail-header.tsx | 4 +- web/features/new-rag/document-detail-page.tsx | 6 +- .../new-rag/document-detail-status.tsx | 4 +- web/features/new-rag/document-list.tsx | 14 +-- .../new-rag/document-revision-content.tsx | 4 +- web/features/new-rag/documents-page.tsx | 4 +- .../new-rag/knowledge-space-shell.tsx | 4 +- web/features/new-rag/new-knowledge-list.tsx | 4 +- .../new-rag/processing-tasks-drawer.tsx | 4 +- web/features/new-rag/sources-page.tsx | 14 +-- web/features/new-rag/use-document-reindex.ts | 2 +- .../new-rag/website-crawl-preview.tsx | 4 +- web/features/skills/detail/builder-panel.tsx | 8 +- web/features/skills/detail/file-editor.tsx | 2 +- web/features/skills/detail/file-tabs.tsx | 2 +- web/features/skills/detail/file-tree-dnd.tsx | 4 +- .../skills/detail/file-tree-items.tsx | 10 +- web/features/skills/detail/file-tree.tsx | 6 +- .../skills/detail/markdown-editor.tsx | 4 +- web/features/skills/detail/page.tsx | 2 +- web/features/skills/detail/publish-bar.tsx | 2 +- .../skills/detail/sidebar-actions.tsx | 8 +- .../detail/skill-display-name-editor.tsx | 4 +- web/features/skills/detail/skill-metadata.tsx | 12 +- web/features/skills/detail/upload-dialogs.tsx | 10 +- web/features/skills/detail/version-panel.tsx | 18 +-- web/features/skills/page.tsx | 30 ++--- .../system-features/bootstrap-boundary.tsx | 2 +- .../tag-management/components/tag-filter.tsx | 2 +- .../components/tag-item-editor.tsx | 2 +- .../components/tag-management-modal.tsx | 2 +- .../components/tag-search-content.tsx | 2 +- .../components/tag-selector.tsx | 2 +- web/hooks/use-import-dsl.ts | 2 +- web/hooks/use-knowledge.ts | 2 +- web/hooks/use-metadata.ts | 4 +- web/hooks/use-pay.tsx | 6 +- web/i18n/__tests__/route-loading.spec.tsx | 4 +- web/i18n/__tests__/server.spec.ts | 15 +++ .../__tests__/translation-adapters.spec.ts | 8 +- web/i18n/lib.client.ts | 5 +- web/i18n/lib.server.ts | 8 +- web/i18n/server.ts | 8 +- web/plugins/eslint/index.js | 4 + .../eslint/rules/require-i18n-namespace.js | 110 ++++++++++++++++++ .../rules/require-i18n-namespace.test.js | 109 +++++++++++++++++ .../rules/require-t-function-namespace.js | 77 ++++++++++++ .../require-t-function-namespace.test.js | 88 ++++++++++++++ web/test/__tests__/i18n-mock.spec.ts | 4 +- 1671 files changed, 2509 insertions(+), 2031 deletions(-) create mode 100644 web/plugins/eslint/rules/require-i18n-namespace.js create mode 100644 web/plugins/eslint/rules/require-i18n-namespace.test.js create mode 100644 web/plugins/eslint/rules/require-t-function-namespace.js create mode 100644 web/plugins/eslint/rules/require-t-function-namespace.test.js diff --git a/lint.config.ts b/lint.config.ts index 64a2c1b11d1..621fa2f6554 100644 --- a/lint.config.ts +++ b/lint.config.ts @@ -488,6 +488,8 @@ export const lintConfig = { 'unicorn/no-abusive-eslint-disable': 'error', 'dify/no-file-wide-disable': 'error', 'dify/require-disable-directive-description': 'error', + 'dify/require-i18n-namespace': 'error', + 'dify/require-t-function-namespace': 'error', 'eslint-comments/no-aggregating-enable': 'error', 'eslint-comments/no-duplicate-disable': 'error', 'eslint-comments/no-unlimited-disable': 'error', diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx index 4df033cbffe..479e907f6e7 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx @@ -53,7 +53,7 @@ const AppDetailLayout: FC = (props) => { children, appId, // get appId in path } = props - const { t } = useTranslation() + const { t } = useTranslation(['common']) const router = useRouter() const pathname = usePathname() const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx index 777113b1414..013dd48c6ac 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx @@ -72,7 +72,7 @@ function ChartViewContent({ headerRight, deploymentEdition, }: IChartViewProps & { deploymentEdition: DeploymentEdition }) { - const { t } = useTranslation() + const { t } = useTranslation(['appLog', 'common']) const isCloudEdition = deploymentEdition === 'CLOUD' const isNonCloudEdition = deploymentEdition === 'COMMUNITY' || deploymentEdition === 'ENTERPRISE' const docLink = useDocLink() diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/long-time-range-picker.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/long-time-range-picker.tsx index c727f700ed3..8310ffccc51 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/long-time-range-picker.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/long-time-range-picker.tsx @@ -29,7 +29,7 @@ type Props = Readonly<{ const today = dayjs() const LongTimeRangePicker: FC = ({ periodMapping, onSelect, queryDateFormat }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appLog', 'common']) const items = React.useMemo(() => { return Object.entries(periodMapping).map(([key, period]) => ({ value: key, diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx index 3f3cea791d9..6805ea62252 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx @@ -34,7 +34,7 @@ type Props = Readonly<{ }> const RangeSelector: FC = ({ isCustomRange, ranges, onSelect }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appLog']) const items = useMemo(() => { return ranges.map((range) => ({ ...range, diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx index 828bbc07749..e9a07e787a8 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx @@ -82,7 +82,7 @@ const ConfigPopup: FC = ({ onConfigUpdated, onConfigRemoved, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['app']) const [currentProvider, setCurrentProvider] = useState( TracingProvider.langfuse, diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx index fa7366fe36e..48aa7cb4c28 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx @@ -42,7 +42,7 @@ import { TracingProvider } from './type' const I18N_PREFIX = 'tracing' const Panel: FC = () => { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) const pathname = usePathname() const matched = /\/app\/([^/]+)/.exec(pathname) const appId = matched?.length && matched[1] ? matched[1] : '' diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx index 2d3dff24e84..b1cb5f7f490 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx @@ -145,7 +145,7 @@ const ProviderConfigModal: FC = ({ onSaved, onChosen, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) const isEdit = !!payload const isAdd = !isEdit const [isSaving, setIsSaving] = useState(false) diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx index 9e1cc1e9084..55c1fee7ac0 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx @@ -43,7 +43,7 @@ const ProviderPanel: FC = ({ hasConfigured, onConfig, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['app']) const iconClassName = getIconClassName(type) const handleConfigBtnClick = useCallback( diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx index 1a181ac2511..950e51e13f4 100644 --- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx +++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx @@ -86,7 +86,7 @@ const getDatasetRedirectionPath = ( const DatasetDetailLayout: FC = (props) => { const { children, datasetId } = props - const { t } = useTranslation() + const { t } = useTranslation(['common', 'datasetPipeline']) const router = useRouter() const pathname = usePathname() const isLoadingCurrentWorkspace = useAtomValue(currentWorkspaceLoadingAtom) diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx index c0c0d814afb..cd032df070c 100644 --- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx +++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx @@ -2,7 +2,7 @@ import { useTranslation } from '#i18n' import Form from '@/app/components/datasets/settings/form' const Settings = () => { - const { t } = useTranslation('datasetSettings') + const { t } = useTranslation(['datasetSettings']) return (
diff --git a/web/app/(commonLayout)/error.tsx b/web/app/(commonLayout)/error.tsx index 9128c73cdd2..79f9f4d5788 100644 --- a/web/app/(commonLayout)/error.tsx +++ b/web/app/(commonLayout)/error.tsx @@ -12,7 +12,7 @@ type Props = Readonly<{ }> export default function CommonLayoutError({ error, retry }: Props) { - const { t } = useTranslation('common') + const { t } = useTranslation(['common']) const { reset: resetQueries } = useQueryErrorResetBoundary() console.error(error) diff --git a/web/app/(commonLayout)/marketplace/document-title.tsx b/web/app/(commonLayout)/marketplace/document-title.tsx index d053ab9cb3c..1aaae53c76f 100644 --- a/web/app/(commonLayout)/marketplace/document-title.tsx +++ b/web/app/(commonLayout)/marketplace/document-title.tsx @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next' import useDocumentTitle from '@/hooks/use-document-title' const MarketplaceDocumentTitle = () => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) useDocumentTitle(t(($) => $['mainNav.marketplace'], { ns: 'common' })) return null } diff --git a/web/app/(humanInputLayout)/form/[token]/branding-footer.tsx b/web/app/(humanInputLayout)/form/[token]/branding-footer.tsx index 739c97e09dd..12dc204173b 100644 --- a/web/app/(humanInputLayout)/form/[token]/branding-footer.tsx +++ b/web/app/(humanInputLayout)/form/[token]/branding-footer.tsx @@ -7,7 +7,7 @@ type BrandingFooterProps = { } const BrandingFooter = ({ removeWebappBrand, replaceWebappLogo }: BrandingFooterProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['share']) if (removeWebappBrand) return null diff --git a/web/app/(humanInputLayout)/form/[token]/form-status-card.tsx b/web/app/(humanInputLayout)/form/[token]/form-status-card.tsx index 0ce8984f209..92d7a151e94 100644 --- a/web/app/(humanInputLayout)/form/[token]/form-status-card.tsx +++ b/web/app/(humanInputLayout)/form/[token]/form-status-card.tsx @@ -20,7 +20,7 @@ const FormStatusCard = ({ removeWebappBrand, replaceWebappLogo, }: FormStatusCardProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['share']) return (
diff --git a/web/app/(humanInputLayout)/form/[token]/form.tsx b/web/app/(humanInputLayout)/form/[token]/form.tsx index 7f533ae16b1..3de4b011925 100644 --- a/web/app/(humanInputLayout)/form/[token]/form.tsx +++ b/web/app/(humanInputLayout)/form/[token]/form.tsx @@ -26,7 +26,7 @@ export type FormData = { } const FormContent = () => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'share']) const { token } = useParams<{ token: string }>() diff --git a/web/app/(shareLayout)/components/authenticated-layout.tsx b/web/app/(shareLayout)/components/authenticated-layout.tsx index cf6736c6eb2..b243298feff 100644 --- a/web/app/(shareLayout)/components/authenticated-layout.tsx +++ b/web/app/(shareLayout)/components/authenticated-layout.tsx @@ -13,7 +13,7 @@ import { resolveWebAppAddress } from '@/service/webapp-address' import { webAppLogout } from '@/service/webapp-auth' const AuthenticatedLayout = ({ children }: { children: React.ReactNode }) => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const updateAppInfo = useWebAppStore((s) => s.updateAppInfo) const updateAppParams = useWebAppStore((s) => s.updateAppParams) const updateWebAppMeta = useWebAppStore((s) => s.updateWebAppMeta) diff --git a/web/app/(shareLayout)/components/splash.tsx b/web/app/(shareLayout)/components/splash.tsx index 052d71e5829..c9b221b60bb 100644 --- a/web/app/(shareLayout)/components/splash.tsx +++ b/web/app/(shareLayout)/components/splash.tsx @@ -25,7 +25,7 @@ import { replaceLoginRedirect } from '@/utils/login-redirect.client' import { basePath } from '@/utils/var' function Splash({ children }: PropsWithChildren) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'share']) const shareCode = useWebAppStore((s) => s.shareCode) const webAppAccessMode = useWebAppStore((s) => s.webAppAccessMode) const embeddedUserId = useWebAppStore((s) => s.embeddedUserId) 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 e8435f51d9d..27370f60278 100644 --- a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx +++ b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx @@ -12,7 +12,7 @@ import { useRouter, useSearchParams } from '@/next/navigation' import { sendWebAppResetPasswordCode, verifyWebAppResetPasswordCode } from '@/service/common' export default function CheckCode() { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const router = useRouter() const searchParams = useSearchParams() const email = decodeURIComponent(searchParams.get('email') as string) diff --git a/web/app/(shareLayout)/webapp-reset-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/page.tsx index 7f98a682429..46451a85b29 100644 --- a/web/app/(shareLayout)/webapp-reset-password/page.tsx +++ b/web/app/(shareLayout)/webapp-reset-password/page.tsx @@ -15,7 +15,7 @@ import { useRouter, useSearchParams } from '@/next/navigation' import { sendResetPasswordCode } from '@/service/common' export default function CheckCode() { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const searchParams = useSearchParams() const router = useRouter() const [email, setEmail] = useState('') diff --git a/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx index 6708d402398..0eecd9a7571 100644 --- a/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx +++ b/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx @@ -17,7 +17,7 @@ import { useRouter, useSearchParams } from '@/next/navigation' import { changeWebAppPasswordWithToken } from '@/service/common' const ChangePasswordForm = () => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'login']) const router = useRouter() const searchParams = useSearchParams() const token = decodeURIComponent(searchParams.get('token') || '') diff --git a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx index 5d113736890..ac15f5f42bc 100644 --- a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx +++ b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx @@ -22,7 +22,7 @@ import { replaceLoginRedirect } from '@/utils/login-redirect.client' import { basePath } from '@/utils/var' export default function CheckCode() { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const router = useRouter() const searchParams = useSearchParams() const email = decodeURIComponent(searchParams.get('email') as string) diff --git a/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx index ddbed90e7aa..6be995a3776 100644 --- a/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx +++ b/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx @@ -14,7 +14,7 @@ import { replaceLoginRedirect } from '@/utils/login-redirect.client' import { basePath } from '@/utils/var' export default function MailAndCodeAuth() { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const router = useRouter() const searchParams = useSearchParams() const emailFromLink = decodeURIComponent(searchParams.get('email') || '') diff --git a/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx index 1d3548a58c4..c09b324f5dc 100644 --- a/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx +++ b/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx @@ -29,7 +29,7 @@ type MailAndPasswordAuthProps = { } export default function MailAndPasswordAuth({ isEmailSetup }: MailAndPasswordAuthProps) { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const router = useRouter() const searchParams = useSearchParams() const [showPassword, setShowPassword] = useState(false) diff --git a/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx index b4e7d27ce10..6c3fe33d82a 100644 --- a/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx +++ b/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx @@ -22,7 +22,7 @@ type SSOAuthProps = { function SSOAuth({ protocol }: SSOAuthProps) { const router = useRouter() - const { t } = useTranslation() + const { t } = useTranslation(['login']) const searchParams = useSearchParams() const redirectUrl = searchParams.get('redirect_url') diff --git a/web/app/(shareLayout)/webapp-signin/layout.tsx b/web/app/(shareLayout)/webapp-signin/layout.tsx index 691c844e781..6fcbbb17de5 100644 --- a/web/app/(shareLayout)/webapp-signin/layout.tsx +++ b/web/app/(shareLayout)/webapp-signin/layout.tsx @@ -8,7 +8,7 @@ import { systemFeaturesQueryOptions } from '@/features/system-features/client' import useDocumentTitle from '@/hooks/use-document-title' export default function SignInLayout({ children }: PropsWithChildren) { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) useDocumentTitle(t(($) => $['webapp.login'], { ns: 'login' })) return ( diff --git a/web/app/(shareLayout)/webapp-signin/normalForm.tsx b/web/app/(shareLayout)/webapp-signin/normalForm.tsx index a6c2cd83e8c..326dbeb14dc 100644 --- a/web/app/(shareLayout)/webapp-signin/normalForm.tsx +++ b/web/app/(shareLayout)/webapp-signin/normalForm.tsx @@ -14,7 +14,7 @@ import MailAndPasswordAuth from './components/mail-and-password-auth' import SSOAuth from './components/sso-auth' const NormalForm = () => { - const { t } = useTranslation() + const { t } = useTranslation(['login']) const [isLoading, setIsLoading] = useState(true) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) diff --git a/web/app/(shareLayout)/webapp-signin/page.tsx b/web/app/(shareLayout)/webapp-signin/page.tsx index 44868ffa39e..14dfadb77e5 100644 --- a/web/app/(shareLayout)/webapp-signin/page.tsx +++ b/web/app/(shareLayout)/webapp-signin/page.tsx @@ -23,7 +23,7 @@ const getClientOrigin = () => window.location.origin const getServerOrigin = () => undefined function WebSSOForm() { - const { t } = useTranslation() + const { t } = useTranslation(['login', 'share']) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const webAppAccessMode = useWebAppStore((s) => s.webAppAccessMode) const searchParams = useSearchParams() diff --git a/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx b/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx index 85a13edc334..1aaaebf3d4e 100644 --- a/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx +++ b/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx @@ -24,7 +24,7 @@ type InputImageInfo = type AvatarWithEditProps = AvatarProps & { onSave?: () => void } const AvatarWithEdit = ({ onSave, ...props }: AvatarWithEditProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) const [inputImageInfo, setInputImageInfo] = useState() const [isShowAvatarPicker, setIsShowAvatarPicker] = useState(false) diff --git a/web/app/account/(commonLayout)/account-page/email-change-modal.tsx b/web/app/account/(commonLayout)/account-page/email-change-modal.tsx index 5bf5cc29f3e..f62e3c9ce4f 100644 --- a/web/app/account/(commonLayout)/account-page/email-change-modal.tsx +++ b/web/app/account/(commonLayout)/account-page/email-change-modal.tsx @@ -52,7 +52,7 @@ function isFetchResponseError(error: unknown): error is FetchResponseError { } const EmailChangeModal = ({ onClose, email }: Props) => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const router = useRouter() const [step, setStep] = useState(STEP.start) const [code, setCode] = useState('') diff --git a/web/app/account/(commonLayout)/account-page/index.tsx b/web/app/account/(commonLayout)/account-page/index.tsx index ac7d6121d5d..e96945b1146 100644 --- a/web/app/account/(commonLayout)/account-page/index.tsx +++ b/web/app/account/(commonLayout)/account-page/index.tsx @@ -33,7 +33,7 @@ const descriptionClassName = ` type AccountAppItem = AppPartial & IItem export default function AccountPage() { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'login']) const editNameInputId = useId() const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const { data: appList } = useQuery( diff --git a/web/app/account/(commonLayout)/avatar.tsx b/web/app/account/(commonLayout)/avatar.tsx index ab87124de25..4ec407c141c 100644 --- a/web/app/account/(commonLayout)/avatar.tsx +++ b/web/app/account/(commonLayout)/avatar.tsx @@ -18,7 +18,7 @@ import { useLogout } from '@/service/use-common' export default function AppSelector() { const router = useRouter() - const { t } = useTranslation() + const { t } = useTranslation(['common']) // Cache is hydrated by CommonLayoutHydrationBoundary; this hits cache synchronously. const { data: userProfileResp } = useSuspenseQuery(userProfileQueryOptions()) const userProfile = userProfileResp.profile diff --git a/web/app/account/(commonLayout)/delete-account/components/check-email.tsx b/web/app/account/(commonLayout)/delete-account/components/check-email.tsx index fd1b0fe20a7..384996e0b81 100644 --- a/web/app/account/(commonLayout)/delete-account/components/check-email.tsx +++ b/web/app/account/(commonLayout)/delete-account/components/check-email.tsx @@ -16,7 +16,7 @@ type DeleteAccountProps = { } export default function CheckEmail(props: DeleteAccountProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const { data: userProfileEmail } = useSuspenseQuery({ ...userProfileQueryOptions(), select: (data) => data.profile.email, diff --git a/web/app/account/(commonLayout)/delete-account/components/feed-back.tsx b/web/app/account/(commonLayout)/delete-account/components/feed-back.tsx index 333af440190..bbbaefcf2ec 100644 --- a/web/app/account/(commonLayout)/delete-account/components/feed-back.tsx +++ b/web/app/account/(commonLayout)/delete-account/components/feed-back.tsx @@ -23,7 +23,7 @@ type FeedbackFormValues = { } export default function FeedBack(props: DeleteAccountProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const { data: userProfileEmail } = useSuspenseQuery({ ...userProfileQueryOptions(), select: (data) => data.profile.email, diff --git a/web/app/account/(commonLayout)/delete-account/components/verify-email.tsx b/web/app/account/(commonLayout)/delete-account/components/verify-email.tsx index b0a0eef297b..1abb5300699 100644 --- a/web/app/account/(commonLayout)/delete-account/components/verify-email.tsx +++ b/web/app/account/(commonLayout)/delete-account/components/verify-email.tsx @@ -19,7 +19,7 @@ type VerifyEmailFormValues = { } export default function VerifyEmail(props: DeleteAccountProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const emailToken = useAccountDeleteStore((state) => state.sendEmailToken) const { mutate: sendEmail } = useSendDeleteAccountEmail() const { isPending: isDeleting, mutateAsync: confirmDeleteAccount } = useConfirmDeleteAccount() diff --git a/web/app/account/(commonLayout)/delete-account/index.tsx b/web/app/account/(commonLayout)/delete-account/index.tsx index 076e4a1425f..d4cad3546e4 100644 --- a/web/app/account/(commonLayout)/delete-account/index.tsx +++ b/web/app/account/(commonLayout)/delete-account/index.tsx @@ -13,7 +13,7 @@ type DeleteAccountProps = { } export default function DeleteAccount(props: DeleteAccountProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const setCountdownLeftTime = useSetCountdownLeftTime() const [showVerifyEmail, setShowVerifyEmail] = useState(false) diff --git a/web/app/account/(commonLayout)/header.tsx b/web/app/account/(commonLayout)/header.tsx index 6a3c9ca06b9..fabbbacd436 100644 --- a/web/app/account/(commonLayout)/header.tsx +++ b/web/app/account/(commonLayout)/header.tsx @@ -9,7 +9,7 @@ import Link from '@/next/link' import Avatar from './avatar' const Header = () => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const logoLabel = systemFeatures.branding.enabled && systemFeatures.branding.application_title diff --git a/web/app/account/(commonLayout)/page.tsx b/web/app/account/(commonLayout)/page.tsx index 48147e87029..ce56ef6fbc5 100644 --- a/web/app/account/(commonLayout)/page.tsx +++ b/web/app/account/(commonLayout)/page.tsx @@ -4,7 +4,7 @@ import useDocumentTitle from '@/hooks/use-document-title' import AccountPage from './account-page' export default function Account() { - const { t } = useTranslation() + const { t } = useTranslation(['common']) useDocumentTitle(t(($) => $['menus.account'], { ns: 'common' })) return (
diff --git a/web/app/account/oauth/authorize/page.tsx b/web/app/account/oauth/authorize/page.tsx index 2f6ef347f92..65a9c186e91 100644 --- a/web/app/account/oauth/authorize/page.tsx +++ b/web/app/account/oauth/authorize/page.tsx @@ -25,7 +25,7 @@ import { useLogout } from '@/service/use-common' import { buildOAuthCallbackUrl, buildReturnUrl, useSilentAuthorize } from './use-silent-authorize' export default function OAuthAuthorize() { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'oauth']) const SCOPE_INFO_MAP: Record< string, diff --git a/web/app/account/oauth/authorize/use-silent-authorize.ts b/web/app/account/oauth/authorize/use-silent-authorize.ts index ad561b2e3f6..90216b6ed15 100644 --- a/web/app/account/oauth/authorize/use-silent-authorize.ts +++ b/web/app/account/oauth/authorize/use-silent-authorize.ts @@ -52,7 +52,7 @@ export function useSilentAuthorize({ searchParams, state, }: SilentAuthorizeOptions) { - const { t } = useTranslation() + const { t } = useTranslation(['oauth']) const router = useRouter() const startedRef = useRef(false) const [autoAuthorizationFailed, setAutoAuthorizationFailed] = useState(false) diff --git a/web/app/activate/activateForm.tsx b/web/app/activate/activateForm.tsx index f60dcf727c9..32e2c586a5c 100644 --- a/web/app/activate/activateForm.tsx +++ b/web/app/activate/activateForm.tsx @@ -10,7 +10,7 @@ import { useInvitationCheck } from '@/service/use-common' const ActivateForm = () => { const router = useRouter() - const { t } = useTranslation() + const { t } = useTranslation(['login']) const searchParams = useSearchParams() const workspaceID = searchParams.get('workspace_id') const email = searchParams.get('email') diff --git a/web/app/components/access-rules-editor/add-access-subject-popover.tsx b/web/app/components/access-rules-editor/add-access-subject-popover.tsx index 57a541a9bec..d46b2df354f 100644 --- a/web/app/components/access-rules-editor/add-access-subject-popover.tsx +++ b/web/app/components/access-rules-editor/add-access-subject-popover.tsx @@ -30,7 +30,7 @@ function AddAccessSubjectPopoverContent({ updatingAccountId, onAddAccessSubject, }: AddAccessSubjectPopoverContentProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'permission']) const [searchValue, setSearchValue] = useState('') const { data: membersData, @@ -170,7 +170,7 @@ function AddAccessSubjectPopover({ updatingAccountId, onAddAccessSubject, }: AddAccessSubjectPopoverProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const [open, setOpen] = useState(false) const isOpen = !disabled && open diff --git a/web/app/components/access-rules-editor/automatic-include-workspace-members-section.tsx b/web/app/components/access-rules-editor/automatic-include-workspace-members-section.tsx index 9c9912f0a9c..55a445dac5a 100644 --- a/web/app/components/access-rules-editor/automatic-include-workspace-members-section.tsx +++ b/web/app/components/access-rules-editor/automatic-include-workspace-members-section.tsx @@ -15,7 +15,7 @@ function AutomaticIncludeWorkspaceMembersSection({ loading, onChange, }: AutomaticIncludeWorkspaceMembersSectionProps) { - const { t } = useTranslation() + const { t } = useTranslation(['permission']) const labelId = useId() const descriptionId = useId() diff --git a/web/app/components/access-rules-editor/batch-action.tsx b/web/app/components/access-rules-editor/batch-action.tsx index 7e27ef48f6b..6eb121eb170 100644 --- a/web/app/components/access-rules-editor/batch-action.tsx +++ b/web/app/components/access-rules-editor/batch-action.tsx @@ -28,7 +28,7 @@ export default function AccessRulesBatchAction({ onDelete, onCancel, }: AccessRulesBatchActionProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'permission']) const [isDeleteConfirmOpen, setIsDeleteConfirmOpen] = useState(false) const [isDeleting, setIsDeleting] = useState(false) diff --git a/web/app/components/access-rules-editor/index.tsx b/web/app/components/access-rules-editor/index.tsx index d37efe99048..8f62664b73c 100644 --- a/web/app/components/access-rules-editor/index.tsx +++ b/web/app/components/access-rules-editor/index.tsx @@ -74,7 +74,7 @@ function AccessRulesEditor({ onBatchRemoveAccessPolicyMemberBindings, onAddAccessSubject, }: AccessRulesEditorProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'permission']) const [selectedAccountIds, setSelectedAccountIds] = useState>(() => new Set()) const isLoading = isLoadingRules || isLoadingUserAccessSettings const shouldCenterTableBody = isLoading || userAccessSettings.length === 0 diff --git a/web/app/components/access-rules-editor/user-access-policy-row.tsx b/web/app/components/access-rules-editor/user-access-policy-row.tsx index 8db26ca5603..8f1804964d2 100644 --- a/web/app/components/access-rules-editor/user-access-policy-row.tsx +++ b/web/app/components/access-rules-editor/user-access-policy-row.tsx @@ -51,7 +51,7 @@ function UserAccessPolicyRow({ onChange, onRemove, }: UserAccessPolicyRowProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'permission']) const accountId = setting.account.account_id const accountName = setting.account.account_name || setting.account.email || accountId const selectedPolicy = setting.access_policies?.[0] diff --git a/web/app/components/api-key/api-key-modal.tsx b/web/app/components/api-key/api-key-modal.tsx index 99884146aef..a58a7a87ba4 100644 --- a/web/app/components/api-key/api-key-modal.tsx +++ b/web/app/components/api-key/api-key-modal.tsx @@ -43,7 +43,7 @@ type ApiKeyModalProps = { } export function ApiKeyModal({ open, canManage, scope, onOpenChange }: ApiKeyModalProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appApi', 'common']) const currentWorkspace = useAtomValue(currentWorkspaceAtom) const [deleteKeyId, setDeleteKeyId] = useState() const [createdApiKey, setCreatedApiKey] = useState() diff --git a/web/app/components/api-key/api-key-table.tsx b/web/app/components/api-key/api-key-table.tsx index 2a1cda31737..8b41a2a4933 100644 --- a/web/app/components/api-key/api-key-table.tsx +++ b/web/app/components/api-key/api-key-table.tsx @@ -19,7 +19,7 @@ export function ApiKeyTable({ showScope = false, onDeleteRequest, }: ApiKeyTableProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appApi', 'common', 'time']) const { formatTime } = useTimestamp() const maskToken = (token: string) => `${token.slice(0, 3)}...${token.slice(-20)}` diff --git a/web/app/components/api-key/created-api-key-dialog.tsx b/web/app/components/api-key/created-api-key-dialog.tsx index 831d3060453..57a60d24003 100644 --- a/web/app/components/api-key/created-api-key-dialog.tsx +++ b/web/app/components/api-key/created-api-key-dialog.tsx @@ -19,7 +19,7 @@ type CreatedApiKeyDialogProps = { } export function CreatedApiKeyDialog({ open, onOpenChange, value }: CreatedApiKeyDialogProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appApi', 'common']) return ( diff --git a/web/app/components/api-key/dataset-scope-dialog.tsx b/web/app/components/api-key/dataset-scope-dialog.tsx index fd0255affdf..4f52092891e 100644 --- a/web/app/components/api-key/dataset-scope-dialog.tsx +++ b/web/app/components/api-key/dataset-scope-dialog.tsx @@ -39,7 +39,7 @@ export function DatasetScopeDialog({ onOpenChange, onConfirm, }: DatasetScopeDialogProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appApi', 'common']) const [scope, setScope] = useState('all') const [selected, setSelected] = useState([]) const [pickerOpen, setPickerOpen] = useState(false) diff --git a/web/app/components/app-sidebar/app-detail-section.tsx b/web/app/components/app-sidebar/app-detail-section.tsx index 65adcf7043b..5d6e6c52ed4 100644 --- a/web/app/components/app-sidebar/app-detail-section.tsx +++ b/web/app/components/app-sidebar/app-detail-section.tsx @@ -42,7 +42,7 @@ type AppDetailSectionProps = { } const AppDetailSection = ({ expand = true }: AppDetailSectionProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const pathname = usePathname() const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const { data: currentUserId } = useSuspenseQuery({ diff --git a/web/app/components/app-sidebar/app-detail-top.tsx b/web/app/components/app-sidebar/app-detail-top.tsx index 6983e8b744b..b6e2f4299bd 100644 --- a/web/app/components/app-sidebar/app-detail-top.tsx +++ b/web/app/components/app-sidebar/app-detail-top.tsx @@ -23,7 +23,7 @@ type AppDetailTopProps = { } export function AppDetailTop({ expand = true, onToggle }: AppDetailTopProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) if (!expand) { return ( diff --git a/web/app/components/app-sidebar/app-info/__tests__/app-mode-labels.spec.ts b/web/app/components/app-sidebar/app-info/__tests__/app-mode-labels.spec.ts index ef7f6343ebc..e954621d001 100644 --- a/web/app/components/app-sidebar/app-info/__tests__/app-mode-labels.spec.ts +++ b/web/app/components/app-sidebar/app-info/__tests__/app-mode-labels.spec.ts @@ -7,7 +7,7 @@ describe('getAppModeLabel', () => { const t = withSelectorKey((key: string, options?: Record) => { const ns = (options?.ns as string | undefined) ?? '' return ns ? `${ns}.${key}` : key - }, 'app') as unknown as TFunction + }, 'app') as unknown as TFunction<['app']> it('should return advanced chat label', () => { expect(getAppModeLabel(AppModeEnum.ADVANCED_CHAT, t)).toBe('app.types.advanced') diff --git a/web/app/components/app-sidebar/app-info/app-info-modals.tsx b/web/app/components/app-sidebar/app-info/app-info-modals.tsx index 82c41a3b65c..b3afbe2a2d2 100644 --- a/web/app/components/app-sidebar/app-info/app-info-modals.tsx +++ b/web/app/components/app-sidebar/app-info/app-info-modals.tsx @@ -63,7 +63,7 @@ const AppInfoModals = ({ handleConfirmExport, onConfirmDelete, }: AppInfoModalsProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common', 'workflow']) const [confirmDeleteInput, setConfirmDeleteInput] = useState('') const [isSecretExporting, setIsSecretExporting] = useState(false) const exportConfirmLabelId = React.useId() diff --git a/web/app/components/app-sidebar/app-info/app-info-trigger.tsx b/web/app/components/app-sidebar/app-info/app-info-trigger.tsx index 24ae0b9799d..7da412685ca 100644 --- a/web/app/components/app-sidebar/app-info/app-info-trigger.tsx +++ b/web/app/components/app-sidebar/app-info/app-info-trigger.tsx @@ -29,7 +29,7 @@ const AppInfoTrigger = ({ isExporting, exportCheck, }: AppInfoTriggerProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common', 'workflow']) const { data: currentUserId } = useSuspenseQuery({ ...userProfileQueryOptions(), select: (data) => data.profile.id, diff --git a/web/app/components/app-sidebar/app-info/app-mode-labels.ts b/web/app/components/app-sidebar/app-info/app-mode-labels.ts index 1ff7559f650..260ff3b95e5 100644 --- a/web/app/components/app-sidebar/app-info/app-mode-labels.ts +++ b/web/app/components/app-sidebar/app-info/app-mode-labels.ts @@ -1,7 +1,7 @@ import type { TFunction } from 'i18next' import { AppModeEnum } from '@/types/app' -export function getAppModeLabel(mode: string, t: TFunction): string { +export function getAppModeLabel(mode: string, t: TFunction<['app']>): string { switch (mode) { case AppModeEnum.ADVANCED_CHAT: return t(($) => $['types.advanced'], { ns: 'app' }) diff --git a/web/app/components/app-sidebar/app-info/app-operations.tsx b/web/app/components/app-sidebar/app-info/app-operations.tsx index f45b8878cd0..26fe65a8d45 100644 --- a/web/app/components/app-sidebar/app-info/app-operations.tsx +++ b/web/app/components/app-sidebar/app-info/app-operations.tsx @@ -27,7 +27,7 @@ type AppOperationsProps = { } const AppOperations = ({ appName, operationGroups }: AppOperationsProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const visibleGroups = operationGroups.filter((group) => group.length > 0) if (!visibleGroups.length) return null diff --git a/web/app/components/app-sidebar/app-info/use-app-info-actions.ts b/web/app/components/app-sidebar/app-info/use-app-info-actions.ts index 116c09ad12b..527417d40eb 100644 --- a/web/app/components/app-sidebar/app-info/use-app-info-actions.ts +++ b/web/app/components/app-sidebar/app-info/use-app-info-actions.ts @@ -90,7 +90,7 @@ const getCurrentUiState = (state: AppInfoUiState, resetKey?: string) => { } export function useAppInfoActions({ resetKey }: UseAppInfoActionsParams) { - const { t } = useTranslation() + const { t } = useTranslation(['app']) const { replace } = useRouter() const queryClient = useQueryClient() const { mutateAsync: copyApp } = useMutation( diff --git a/web/app/components/app-sidebar/dataset-detail-section.tsx b/web/app/components/app-sidebar/dataset-detail-section.tsx index 68e6b6e3024..5663259771e 100644 --- a/web/app/components/app-sidebar/dataset-detail-section.tsx +++ b/web/app/components/app-sidebar/dataset-detail-section.tsx @@ -27,7 +27,7 @@ type DatasetDetailSectionProps = { } const DatasetDetailSection = ({ expand = true }: DatasetDetailSectionProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const pathname = usePathname() const datasetId = getDatasetIdFromPathname(pathname) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) diff --git a/web/app/components/app-sidebar/dataset-detail-top.tsx b/web/app/components/app-sidebar/dataset-detail-top.tsx index 1642f285a2d..a441b9379a1 100644 --- a/web/app/components/app-sidebar/dataset-detail-top.tsx +++ b/web/app/components/app-sidebar/dataset-detail-top.tsx @@ -23,7 +23,7 @@ type DatasetDetailTopProps = { } export function DatasetDetailTop({ expand = true, onToggle }: DatasetDetailTopProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) if (!expand) { return ( diff --git a/web/app/components/app-sidebar/dataset-info/dropdown.tsx b/web/app/components/app-sidebar/dataset-info/dropdown.tsx index a1def0ee008..80b8f342411 100644 --- a/web/app/components/app-sidebar/dataset-info/dropdown.tsx +++ b/web/app/components/app-sidebar/dataset-info/dropdown.tsx @@ -63,7 +63,7 @@ const getErrorMessage = async (error: unknown) => { } const DropDown = ({ expand, triggerClassName }: DropDownProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common', 'dataset']) const { push, replace } = useRouter() const [open, setOpen] = useState(false) const [showRenameModal, setShowRenameModal] = useState(false) diff --git a/web/app/components/app-sidebar/dataset-info/index.tsx b/web/app/components/app-sidebar/dataset-info/index.tsx index f10e7a2383f..d6af45bd61e 100644 --- a/web/app/components/app-sidebar/dataset-info/index.tsx +++ b/web/app/components/app-sidebar/dataset-info/index.tsx @@ -14,7 +14,7 @@ type DatasetInfoProps = { } const DatasetInfo = ({ expand }: DatasetInfoProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['dataset']) const dataset = useDatasetDetailContextWithSelector((state) => state.dataset) as DataSet const iconInfo = dataset.icon_info || { icon: '📙', diff --git a/web/app/components/app-sidebar/dataset-info/menu.tsx b/web/app/components/app-sidebar/dataset-info/menu.tsx index fe83aa60b78..6254ed4f619 100644 --- a/web/app/components/app-sidebar/dataset-info/menu.tsx +++ b/web/app/components/app-sidebar/dataset-info/menu.tsx @@ -26,7 +26,7 @@ const Menu = ({ detectIsUsedByApp, openAccessConfig, }: MenuProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'datasetPipeline']) const runtimeMode = useDatasetDetailContextWithSelector((state) => state.dataset?.runtime_mode) return ( diff --git a/web/app/components/app-sidebar/snippet-info/dropdown.tsx b/web/app/components/app-sidebar/snippet-info/dropdown.tsx index d582b801baf..372bc5bc0c8 100644 --- a/web/app/components/app-sidebar/snippet-info/dropdown.tsx +++ b/web/app/components/app-sidebar/snippet-info/dropdown.tsx @@ -41,7 +41,7 @@ type SnippetInfoDropdownProps = { } const SnippetInfoDropdown = ({ snippet }: SnippetInfoDropdownProps) => { - const { t } = useTranslation('snippet') + const { t } = useTranslation(['snippet', 'common']) const { replace } = useRouter() const workspacePermissionKeys = useAtomValue(workspacePermissionKeysAtom) const [open, setOpen] = React.useState(false) diff --git a/web/app/components/app/access-config/index.tsx b/web/app/components/app/access-config/index.tsx index 570b7d850f2..4a1789d2036 100644 --- a/web/app/components/app/access-config/index.tsx +++ b/web/app/components/app/access-config/index.tsx @@ -35,7 +35,7 @@ type AppAccessConfigContentProps = { } const AppAccessConfigContent = ({ appId, maintainerId }: AppAccessConfigContentProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'permission']) const locale = useLocale() const language = useMemo(() => getAccessControlTemplateLanguage(locale), [locale]) const [currentPage, setCurrentPage] = useState(1) diff --git a/web/app/components/app/access-point/built-in-access-points/index.tsx b/web/app/components/app/access-point/built-in-access-points/index.tsx index 30c3d99bf27..a9ef011645c 100644 --- a/web/app/components/app/access-point/built-in-access-points/index.tsx +++ b/web/app/components/app/access-point/built-in-access-points/index.tsx @@ -33,7 +33,7 @@ export function BuiltInAccessPoints({ canReleaseAndVersion, highlightedAccessPoint, }: BuiltInAccessPointsProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'deployments']) const docLink = useDocLink() const appInfo = useAppStore((state) => state.appDetail) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) diff --git a/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx b/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx index 59a754cc314..2819eee88e5 100644 --- a/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx +++ b/web/app/components/app/access-point/built-in-access-points/mcp-card.tsx @@ -46,7 +46,7 @@ export function MCPAccessPointCard({ workflow, workflowLoading, }: MCPAccessPointCardProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appOverview', 'common', 'deployments', 'tools']) const advancedApp = isAdvancedApp(appInfo) const basicApp = !advancedApp const workflowApp = appInfo.mode === AppModeEnum.WORKFLOW diff --git a/web/app/components/app/access-point/built-in-access-points/service-api-card.tsx b/web/app/components/app/access-point/built-in-access-points/service-api-card.tsx index 4b6fa613341..a2e147e5548 100644 --- a/web/app/components/app/access-point/built-in-access-points/service-api-card.tsx +++ b/web/app/components/app/access-point/built-in-access-points/service-api-card.tsx @@ -24,7 +24,7 @@ export function ServiceApiAccessPointCard({ canManage, highlighted, }: ServiceApiAccessPointCardProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const setAppDetail = useAppStore((state) => state.setAppDetail) const toggleApiMutation = useMutation( consoleQuery.apps.byAppId.apiEnable.post.mutationOptions({ diff --git a/web/app/components/app/access-point/built-in-access-points/trigger-card.tsx b/web/app/components/app/access-point/built-in-access-points/trigger-card.tsx index 5c46fac1ee6..caee48ca111 100644 --- a/web/app/components/app/access-point/built-in-access-points/trigger-card.tsx +++ b/web/app/components/app/access-point/built-in-access-points/trigger-card.tsx @@ -63,7 +63,7 @@ function TriggerAccessPointItem({ trigger: AppTrigger triggerPlugins: TriggerWithProvider[] }) { - const { t } = useTranslation() + const { t } = useTranslation(['agentV2', 'appOverview', 'common']) const invalidateTriggers = useInvalidateAppTriggers() const updateTriggerMutation = useMutation( consoleQuery.apps.byAppId.triggerEnable.post.mutationOptions({ @@ -143,7 +143,7 @@ export function TriggerAccessPointCard({ canManageAccessPoint, highlighted, }: TriggerAccessPointCardProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appOverview', 'common', 'deployments']) const docLink = useDocLink() const { data: response, isLoading } = useAppTriggers(appInfo.id) const { data: triggerPlugins = [] } = useAllTriggerPlugins() diff --git a/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx b/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx index f3265e6db6a..26acf232373 100644 --- a/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx +++ b/web/app/components/app/access-point/built-in-access-points/web-app-card.tsx @@ -79,7 +79,7 @@ export function WebAppAccessPointCard({ showAccessControl, workflow, }: WebAppAccessPointCardProps) { - const { t } = useTranslation() + const { t } = useTranslation(['agentV2', 'app', 'appOverview', 'common', 'deployments']) const setAppDetail = useAppStore((state) => state.setAppDetail) const [showSettings, setShowSettings] = useState(false) const [showEmbedded, setShowEmbedded] = useState(false) diff --git a/web/app/components/app/access-point/deployed-environment-access-points/environment-access-control.tsx b/web/app/components/app/access-point/deployed-environment-access-points/environment-access-control.tsx index 423d3b0cc2b..7e4a010b3a2 100644 --- a/web/app/components/app/access-point/deployed-environment-access-points/environment-access-control.tsx +++ b/web/app/components/app/access-point/deployed-environment-access-points/environment-access-control.tsx @@ -42,7 +42,7 @@ function EnvironmentAccessControlContainer({ onClose, onConfirm, }: EnvironmentAccessControlProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) const queryClient = useQueryClient() const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const [accessMode, setAccessMode] = useState(initialAccessMode) diff --git a/web/app/components/app/access-point/deployed-environment-access-points/environment-service-api-card.tsx b/web/app/components/app/access-point/deployed-environment-access-points/environment-service-api-card.tsx index 02c3e01dde1..88c439e91f4 100644 --- a/web/app/components/app/access-point/deployed-environment-access-points/environment-service-api-card.tsx +++ b/web/app/components/app/access-point/deployed-environment-access-points/environment-service-api-card.tsx @@ -20,7 +20,7 @@ export function EnvironmentServiceApiCard({ canManageAccessPoint, highlighted, }: EnvironmentServiceApiCardProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const appMode = useAppStore((state) => state.appDetail?.mode) const params = { app_id: appId, diff --git a/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx b/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx index f6003099544..638a1928293 100644 --- a/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx +++ b/web/app/components/app/access-point/deployed-environment-access-points/environment-web-app-card.tsx @@ -53,7 +53,7 @@ export function EnvironmentWebAppCard({ canManageAccessPoint, highlighted, }: EnvironmentWebAppCardProps) { - const { t } = useTranslation() + const { t } = useTranslation(['agentV2', 'app', 'appOverview', 'common', 'deployments']) const queryClient = useQueryClient() const appInfo = useAppStore((state) => state.appDetail) as AccessPointAppInfo | null const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) diff --git a/web/app/components/app/access-point/deployed-environment-access-points/index.tsx b/web/app/components/app/access-point/deployed-environment-access-points/index.tsx index 96cfdbbc78b..0c424db9dbe 100644 --- a/web/app/components/app/access-point/deployed-environment-access-points/index.tsx +++ b/web/app/components/app/access-point/deployed-environment-access-points/index.tsx @@ -42,7 +42,7 @@ export function DeployedEnvironmentAccessPoints({ canManageAccessPoint, highlightedAccessPoint, }: DeployedEnvironmentAccessPointsProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'deployments', 'tools']) const unsupportedStatusLabel = useAccessPointStatusLabel('unsupported') const title = (accessPoint: (typeof UNSUPPORTED_ACCESS_POINTS)[number]) => { diff --git a/web/app/components/app/access-point/index.tsx b/web/app/components/app/access-point/index.tsx index fb59a07fea1..d068ac999fe 100644 --- a/web/app/components/app/access-point/index.tsx +++ b/web/app/components/app/access-point/index.tsx @@ -53,7 +53,7 @@ function AccessPointContent({ canReleaseAndVersion, showEnvironmentTabs, }: AccessPointContentProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'deployments', 'workflow']) const environments = useAtomValue(inUseAppEnvironmentsAtom) const [queryStates, setQueryStates] = useQueryStates(accessPointQueryStates) const { accessPoint: highlightedAccessPoint, environment } = queryStates diff --git a/web/app/components/app/access-point/shared/api-secret-key-button.tsx b/web/app/components/app/access-point/shared/api-secret-key-button.tsx index 2341797888e..4666e396ce5 100644 --- a/web/app/components/app/access-point/shared/api-secret-key-button.tsx +++ b/web/app/components/app/access-point/shared/api-secret-key-button.tsx @@ -23,7 +23,7 @@ export function ApiSecretKeyButton({ disabled = false, environmentId, }: ApiSecretKeyButtonProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appApi']) const [modalOpen, setModalOpen] = useState(false) const isEnvironmentScope = Boolean(environmentId) const apiKeysQuery = useQuery( diff --git a/web/app/components/app/access-point/shared/service-api-card-view.tsx b/web/app/components/app/access-point/shared/service-api-card-view.tsx index 5ff7f941e87..d07e174cbf6 100644 --- a/web/app/components/app/access-point/shared/service-api-card-view.tsx +++ b/web/app/components/app/access-point/shared/service-api-card-view.tsx @@ -37,7 +37,7 @@ export function ServiceApiCardView({ switchDisabled, switchLoading = false, }: ServiceApiCardViewProps) { - const { t } = useTranslation() + const { t } = useTranslation(['agentV2', 'appOverview', 'deployments']) const docLink = useDocLink() const apiReferencePath = appMode ? getAppApiReferencePath(appMode) : undefined const apiReferenceUrl = apiReferencePath ? docLink(apiReferencePath) : undefined diff --git a/web/app/components/app/access-point/shared/use-access-point-actions.ts b/web/app/components/app/access-point/shared/use-access-point-actions.ts index ed08627abb1..44736e8b2a3 100644 --- a/web/app/components/app/access-point/shared/use-access-point-actions.ts +++ b/web/app/components/app/access-point/shared/use-access-point-actions.ts @@ -13,7 +13,7 @@ import { consoleQuery } from '@/service/console' import { asyncRunSafe } from '@/utils' export function useAccessPointActions(appId: string, canManageAccessPoint: boolean) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const queryClient = useQueryClient() const setAppDetail = useAppStore((state) => state.setAppDetail) const refreshAppDetail = useCallback(async () => { diff --git a/web/app/components/app/access-point/shared/use-access-point-status-label.ts b/web/app/components/app/access-point/shared/use-access-point-status-label.ts index 52a6b727661..b776962b5fd 100644 --- a/web/app/components/app/access-point/shared/use-access-point-status-label.ts +++ b/web/app/components/app/access-point/shared/use-access-point-status-label.ts @@ -4,7 +4,7 @@ import type { AccessPointStatus } from '@/app/components/base/access-point/statu import { useTranslation } from 'react-i18next' export function useAccessPointStatusLabel(status: AccessPointStatus) { - const { t } = useTranslation() + const { t } = useTranslation(['agentV2', 'appOverview', 'common', 'deployments']) const labels: Record = { disabled: t(($) => $['overview.status.disable'], { ns: 'appOverview' }), inService: t(($) => $['agentDetail.access.status.inService'], { ns: 'agentV2' }), diff --git a/web/app/components/app/access-point/shared/web-app-access-control.tsx b/web/app/components/app/access-point/shared/web-app-access-control.tsx index c17eb11a0a5..31c8392023a 100644 --- a/web/app/components/app/access-point/shared/web-app-access-control.tsx +++ b/web/app/components/app/access-point/shared/web-app-access-control.tsx @@ -11,7 +11,7 @@ type WebAppAccessControlEntryProps = { } export function WebAppAccessControlEntrySkeleton({ loading }: { loading: boolean }) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) return (
@@ -39,7 +39,7 @@ export function WebAppAccessControlEntry({ disabled, onClick, }: WebAppAccessControlEntryProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app']) return (
diff --git a/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx b/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx index 4dc979e3208..d18870af1f5 100644 --- a/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx +++ b/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx @@ -18,7 +18,7 @@ type Props = Readonly<{ }> const EditItem: FC = ({ type, content, onChange }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation']) const avatar = type === EditItemType.Query ? ( diff --git a/web/app/components/app/annotation/add-annotation-modal/index.tsx b/web/app/components/app/annotation/add-annotation-modal/index.tsx index 5459b456b81..12837318839 100644 --- a/web/app/components/app/annotation/add-annotation-modal/index.tsx +++ b/web/app/components/app/annotation/add-annotation-modal/index.tsx @@ -31,7 +31,7 @@ type Props = Readonly<{ }> const AddAnnotationModal: FC = ({ isShow, onHide, onAdd }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const deploymentEdition = useAtomValue(deploymentEditionAtom) const { data: annotationQuota } = useQuery( consoleQuery.features.get.queryOptions({ diff --git a/web/app/components/app/annotation/batch-action.tsx b/web/app/components/app/annotation/batch-action.tsx index 0868a22d341..1369789d336 100644 --- a/web/app/components/app/annotation/batch-action.tsx +++ b/web/app/components/app/annotation/batch-action.tsx @@ -29,7 +29,7 @@ const BatchAction: FC = ({ onBatchDelete, onSelectedIdsChange, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const [isShowDeleteConfirm, { setTrue: showDeleteConfirm, setFalse: hideDeleteConfirm }] = useBoolean(false) const [isDeleting, { setTrue: setIsDeleting, setFalse: setIsNotDeleting }] = useBoolean(false) diff --git a/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx b/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx index 4aadfdddb89..26cc0034d33 100644 --- a/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx +++ b/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx @@ -18,7 +18,7 @@ const CSV_TEMPLATE_QA_CN = [ ] const CSVDownload: FC = () => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'share']) const locale = useLocale() const { CSVDownloader, Type } = useCSVDownloader() diff --git a/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx b/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx index 12f5147efad..60fccfba169 100644 --- a/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx +++ b/web/app/components/app/annotation/batch-add-annotation-modal/csv-uploader.tsx @@ -14,7 +14,7 @@ export type Props = Readonly<{ }> const CSVUploader: FC = ({ file, updateFile }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common', 'datasetCreation']) const [dragging, setDragging] = useState(false) const dropRef = useRef(null) const dragRef = useRef(null) diff --git a/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx b/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx index cd1dd99c70e..dc6b732ffb8 100644 --- a/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx +++ b/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx @@ -33,7 +33,7 @@ export type IBatchModalProps = { } const BatchModal: FC = ({ appId, isShow, onCancel, onAdded }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const deploymentEdition = useAtomValue(deploymentEditionAtom) const { data: annotationQuota } = useQuery( consoleQuery.features.get.queryOptions({ diff --git a/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx b/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx index 48943656d07..cbf668425be 100644 --- a/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx +++ b/web/app/components/app/annotation/clear-all-annotations-confirm-modal/index.tsx @@ -19,7 +19,7 @@ type Props = Readonly<{ }> const ClearAllAnnotationsConfirmModal: FC = ({ isShow, onHide, onConfirm }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const title = t(($) => $['table.header.clearAllConfirm'], { ns: 'appAnnotation' }) return ( diff --git a/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx index 8c577df0b00..fe4bceb5322 100644 --- a/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx +++ b/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx @@ -35,7 +35,7 @@ export const EditTitle: FC<{ className?: string; title: string }> = ({ className
) const EditItem: FC = ({ type, readonly, content, onSave }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const [newContent, setNewContent] = useState('') const showNewContent = newContent && newContent !== content const avatar = diff --git a/web/app/components/app/annotation/edit-annotation-modal/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/index.tsx index 3626d050005..52c351adb86 100644 --- a/web/app/components/app/annotation/edit-annotation-modal/index.tsx +++ b/web/app/components/app/annotation/edit-annotation-modal/index.tsx @@ -53,7 +53,7 @@ const EditAnnotationModal: FC = ({ onRemove, onlyEditResponse, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'appDebug', 'appLog', 'common']) const { formatTime } = useTimestamp() const handleSave = async (type: EditItemType, editedContent: string) => { let postQuery = query diff --git a/web/app/components/app/annotation/empty-element.tsx b/web/app/components/app/annotation/empty-element.tsx index cdf366f04fb..2f01daf1a0b 100644 --- a/web/app/components/app/annotation/empty-element.tsx +++ b/web/app/components/app/annotation/empty-element.tsx @@ -25,7 +25,7 @@ const ThreeDotsIcon = ({ className }: SVGProps) => { } const EmptyElement: FC = () => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation']) return (
diff --git a/web/app/components/app/annotation/filter.tsx b/web/app/components/app/annotation/filter.tsx index 0c407695211..7fd53304c52 100644 --- a/web/app/components/app/annotation/filter.tsx +++ b/web/app/components/app/annotation/filter.tsx @@ -18,7 +18,7 @@ type IFilterProps = { const Filter: FC = ({ appId, queryParams, setQueryParams, children }) => { const { data, isLoading } = useAnnotationsCount(appId) - const { t } = useTranslation() + const { t } = useTranslation(['common']) if (isLoading || !data) return null return (
diff --git a/web/app/components/app/annotation/header-opts/index.tsx b/web/app/components/app/annotation/header-opts/index.tsx index d725b92c4c7..cc90e1d62f4 100644 --- a/web/app/components/app/annotation/header-opts/index.tsx +++ b/web/app/components/app/annotation/header-opts/index.tsx @@ -68,7 +68,7 @@ const OperationsMenu: FC = ({ onClearAll, onExportJsonl, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation']) const locale = useLocale() const annotationUnavailable = list.length === 0 @@ -132,7 +132,7 @@ const OperationsMenu: FC = ({ } const HeaderOptions: FC = ({ appId, onAdd, onAdded, controlUpdateList }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const locale = useLocale() const [list, setList] = useState([]) diff --git a/web/app/components/app/annotation/index.tsx b/web/app/components/app/annotation/index.tsx index 2267f518db8..0573ea7be53 100644 --- a/web/app/components/app/annotation/index.tsx +++ b/web/app/components/app/annotation/index.tsx @@ -50,7 +50,7 @@ type Props = Readonly<{ const Annotation: FC = (props) => { const { appDetail } = props - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'common']) const docLink = useDocLink() const [isShowEdit, setIsShowEdit] = useState(false) const [annotationConfig, setAnnotationConfig] = useState(null) diff --git a/web/app/components/app/annotation/list.tsx b/web/app/components/app/annotation/list.tsx index a6f44ad16f1..955bf449278 100644 --- a/web/app/components/app/annotation/list.tsx +++ b/web/app/components/app/annotation/list.tsx @@ -31,7 +31,7 @@ function AnnotationTableRow({ onView, onRemoveClick, }: AnnotationTableRowProps) { - const { t } = useTranslation() + const { t } = useTranslation(['appDebug']) const questionId = React.useId() return ( @@ -80,7 +80,7 @@ export function List({ onSelectedIdsChange, onBatchDelete, }: Props) { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'appLog', 'common']) const { formatTime } = useTimestamp() const [currId, setCurrId] = React.useState(null) const [showConfirmDelete, setShowConfirmDelete] = React.useState(false) diff --git a/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx b/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx index dbaa091659f..6538b40baf5 100644 --- a/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx +++ b/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx @@ -18,7 +18,7 @@ type Props = Readonly<{ }> const RemoveAnnotationConfirmModal: FC = ({ isShow, onHide, onRemove }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appDebug', 'common']) const title = t(($) => $['feature.annotation.removeConfirm'], { ns: 'appDebug' }) return ( diff --git a/web/app/components/app/annotation/view-annotation-modal/hit-history-no-data.tsx b/web/app/components/app/annotation/view-annotation-modal/hit-history-no-data.tsx index 946f556aca0..860e8da3e13 100644 --- a/web/app/components/app/annotation/view-annotation-modal/hit-history-no-data.tsx +++ b/web/app/components/app/annotation/view-annotation-modal/hit-history-no-data.tsx @@ -4,7 +4,7 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' const HitHistoryNoData: FC = () => { - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation']) return (
diff --git a/web/app/components/app/annotation/view-annotation-modal/index.tsx b/web/app/components/app/annotation/view-annotation-modal/index.tsx index 17c9ba5f7e9..091c22fe747 100644 --- a/web/app/components/app/annotation/view-annotation-modal/index.tsx +++ b/web/app/components/app/annotation/view-annotation-modal/index.tsx @@ -51,7 +51,7 @@ const ViewAnnotationModal: FC = ({ appId, isShow, onHide, item, onSave, o const { id, question, answer, created_at: createdAt } = item const [newQuestion, setNewQuery] = useState(question) const [newAnswer, setNewAnswer] = useState(answer) - const { t } = useTranslation() + const { t } = useTranslation(['appAnnotation', 'appDebug', 'appLog', 'common']) const { formatTime } = useTimestamp() const [currPage, setCurrPage] = React.useState(0) const [total, setTotal] = useState(0) diff --git a/web/app/components/app/app-access-control/access-control-dialog.tsx b/web/app/components/app/app-access-control/access-control-dialog.tsx index 4269d8f8148..27a92ca0e5a 100644 --- a/web/app/components/app/app-access-control/access-control-dialog.tsx +++ b/web/app/components/app/app-access-control/access-control-dialog.tsx @@ -13,7 +13,7 @@ type DialogProps = { } const AccessControlDialog = ({ className, children, show, onClose }: DialogProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common']) const close = useCallback(() => { onClose?.() }, [onClose]) diff --git a/web/app/components/app/app-access-control/access-control-form.tsx b/web/app/components/app/app-access-control/access-control-form.tsx index 300f3b1fa10..da06d52bbff 100644 --- a/web/app/components/app/app-access-control/access-control-form.tsx +++ b/web/app/components/app/app-access-control/access-control-form.tsx @@ -46,7 +46,7 @@ export function AccessControlForm({ const publicAccessLabelId = useId() const externalAccessLabelId = useId() const accessControlOptionsLabelId = useId() - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) const confirmDisabled = (accessMode === AccessModeValue.PUBLIC && publicAccessDisabled) || (accessMode === AccessModeValue.SPECIFIC_GROUPS_MEMBERS && subjectsStatus !== 'success') diff --git a/web/app/components/app/app-access-control/add-member-or-group-pop/breadcrumb.tsx b/web/app/components/app/app-access-control/add-member-or-group-pop/breadcrumb.tsx index 454429003de..cb6f75f6f68 100644 --- a/web/app/components/app/app-access-control/add-member-or-group-pop/breadcrumb.tsx +++ b/web/app/components/app/app-access-control/add-member-or-group-pop/breadcrumb.tsx @@ -15,7 +15,7 @@ type SelectedGroupsBreadcrumbProps = { } export function SelectedGroupsBreadcrumb({ groups, onChange }: SelectedGroupsBreadcrumbProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app']) const handleBreadcrumbClick = (index: number) => { onChange(groups.slice(0, index + 1)) diff --git a/web/app/components/app/app-access-control/add-member-or-group-pop/index.tsx b/web/app/components/app/app-access-control/add-member-or-group-pop/index.tsx index 53c07cc0de3..eb2f3d31657 100644 --- a/web/app/components/app/app-access-control/add-member-or-group-pop/index.tsx +++ b/web/app/components/app/app-access-control/add-member-or-group-pop/index.tsx @@ -35,7 +35,7 @@ export default function AddMemberOrGroupDialog({ subjects: selectedAccessSubjects, onChange, }: AddMemberOrGroupDialogProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) const [open, setOpen] = useState(false) const [keyword, setKeyword] = useState('') const [selectedGroupsForBreadcrumb, setSelectedGroupsForBreadcrumb] = useState< diff --git a/web/app/components/app/app-access-control/add-member-or-group-pop/subject-item.tsx b/web/app/components/app/app-access-control/add-member-or-group-pop/subject-item.tsx index 0a6380df7a6..a9d90d4385e 100644 --- a/web/app/components/app/app-access-control/add-member-or-group-pop/subject-item.tsx +++ b/web/app/components/app/app-access-control/add-member-or-group-pop/subject-item.tsx @@ -55,7 +55,7 @@ function GroupItem({ onToggle: () => void onExpand: (group: AccessControlGroup) => void }) { - const { t } = useTranslation() + const { t } = useTranslation(['app']) return (
  • @@ -102,7 +102,7 @@ function MemberItem({ ...userProfileQueryOptions(), select: (data) => data.profile, }) - const { t } = useTranslation() + const { t } = useTranslation(['common']) return (
  • diff --git a/web/app/components/app/app-access-control/index.tsx b/web/app/components/app/app-access-control/index.tsx index 92216f70e0b..32fce0fb573 100644 --- a/web/app/components/app/app-access-control/index.tsx +++ b/web/app/components/app/app-access-control/index.tsx @@ -32,7 +32,7 @@ export default function AccessControl(props: AccessControlProps) { } function AppAccessControlContainer({ app, onClose, onConfirm }: AccessControlProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app']) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const [accessMode, setAccessMode] = useState( () => diff --git a/web/app/components/app/app-access-control/specific-groups-or-members.tsx b/web/app/components/app/app-access-control/specific-groups-or-members.tsx index 6d6287361bd..1e9ce0f67e5 100644 --- a/web/app/components/app/app-access-control/specific-groups-or-members.tsx +++ b/web/app/components/app/app-access-control/specific-groups-or-members.tsx @@ -30,7 +30,7 @@ export default function SpecificGroupsOrMembers({ onSubjectsChange, onRetrySubjects, }: SpecificGroupsOrMembersProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'common']) if (accessMode !== AccessMode.SPECIFIC_GROUPS_MEMBERS) { return ( @@ -90,7 +90,7 @@ type RenderGroupsAndMembersProps = { } function RenderGroupsAndMembers({ subjects, onChange }: RenderGroupsAndMembersProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app']) const { groups, members } = subjects if (groups.length <= 0 && members.length <= 0) { @@ -191,7 +191,7 @@ type BaseItemProps = { } function BaseItem({ icon, onRemove, children }: BaseItemProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) return (
    diff --git a/web/app/components/app/app-publisher/__tests__/utils.spec.ts b/web/app/components/app/app-publisher/__tests__/utils.spec.ts index 1d2b4967449..7dc8e2e209e 100644 --- a/web/app/components/app/app-publisher/__tests__/utils.spec.ts +++ b/web/app/components/app/app-publisher/__tests__/utils.spec.ts @@ -28,7 +28,7 @@ describe('app-publisher utils', () => { }) describe('getDisabledFunctionTooltip', () => { - const t = withSelectorKey((key: string) => key, 'app') as unknown as TFunction + const t = withSelectorKey((key: string) => key, 'app') as unknown as TFunction<['app']> it('should prioritize the unpublished hint', () => { expect( diff --git a/web/app/components/app/app-publisher/built-in-publisher/actions-section.tsx b/web/app/components/app/app-publisher/built-in-publisher/actions-section.tsx index 3e35ae97865..85e1916abd6 100644 --- a/web/app/components/app/app-publisher/built-in-publisher/actions-section.tsx +++ b/web/app/components/app/app-publisher/built-in-publisher/actions-section.tsx @@ -62,7 +62,7 @@ export function PublisherActionsSection({ onConfigureWorkflowTool, onPublishToMarketplace, }: PublisherActionsSectionProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'workflow']) const appId = appDetail?.id const hasPublishedVersion = Boolean(publishedAt) diff --git a/web/app/components/app/app-publisher/built-in-publisher/summary-section.tsx b/web/app/components/app/app-publisher/built-in-publisher/summary-section.tsx index 97eb69357c6..34d1faa91e6 100644 --- a/web/app/components/app/app-publisher/built-in-publisher/summary-section.tsx +++ b/web/app/components/app/app-publisher/built-in-publisher/summary-section.tsx @@ -59,7 +59,7 @@ export function PublisherSummarySection({ upgradeHighlightStyle, versionInfo, }: PublisherSummarySectionProps) { - const { t } = useTranslation() + const { t } = useTranslation(['workflow']) const hasPublishedVersion = Boolean(publishedAt) const publishedTimestamp = publishedAt || (versionInfo?.created_at ? versionInfo.created_at * 1000 : undefined) diff --git a/web/app/components/app/app-publisher/environment-deployment-flow/actions-section.tsx b/web/app/components/app/app-publisher/environment-deployment-flow/actions-section.tsx index 5e142a71eda..eb1457ca4a4 100644 --- a/web/app/components/app/app-publisher/environment-deployment-flow/actions-section.tsx +++ b/web/app/components/app/app-publisher/environment-deployment-flow/actions-section.tsx @@ -17,7 +17,7 @@ export function PublisherEnvironmentActionsSection({ deployment?: EnvironmentDeployment environmentId: string }) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'workflow']) const actionsDisabled = !appId || !deployment const accessPointHref = appId ? environmentHref('access-point', appId, environmentId) : undefined const deployHref = appId ? environmentHref('deploy', appId, environmentId) : undefined diff --git a/web/app/components/app/app-publisher/environment-deployment-flow/index.tsx b/web/app/components/app/app-publisher/environment-deployment-flow/index.tsx index 9a0328e297a..e9c6f4aa3a1 100644 --- a/web/app/components/app/app-publisher/environment-deployment-flow/index.tsx +++ b/web/app/components/app/app-publisher/environment-deployment-flow/index.tsx @@ -43,7 +43,7 @@ export function PublisherEnvironmentFlow({ onConfigurationOpenChange, onGoToPublish, }: PublisherEnvironmentFlowProps) { - const { t } = useTranslation() + const { t } = useTranslation(['deployments']) const deploymentPolling = useAtomValue(publisherEnvironmentDeploymentPollingAtom) const startDeploymentPolling = useSetAtom(startPublisherEnvironmentDeploymentPollingAtom) diff --git a/web/app/components/app/app-publisher/environment-deployment-flow/latest-version-row.tsx b/web/app/components/app/app-publisher/environment-deployment-flow/latest-version-row.tsx index cd2e7580353..227272f7fe9 100644 --- a/web/app/components/app/app-publisher/environment-deployment-flow/latest-version-row.tsx +++ b/web/app/components/app/app-publisher/environment-deployment-flow/latest-version-row.tsx @@ -17,7 +17,7 @@ export function PublisherLatestVersionRow({ latestVersion?: DeploymentVersion | null onShowAllVersions: () => void }) { - const { t } = useTranslation() + const { t } = useTranslation(['deployments']) return (
    diff --git a/web/app/components/app/app-publisher/environment-deployment-flow/summary-section.tsx b/web/app/components/app/app-publisher/environment-deployment-flow/summary-section.tsx index c5ce3aa5aad..6d0cd98a61d 100644 --- a/web/app/components/app/app-publisher/environment-deployment-flow/summary-section.tsx +++ b/web/app/components/app/app-publisher/environment-deployment-flow/summary-section.tsx @@ -34,7 +34,7 @@ export function PublisherEnvironmentSummarySection({ onGoToPublish: () => void onShowAllVersions: () => void }) { - const { t } = useTranslation() + const { t } = useTranslation(['deployments', 'workflow']) const { formatTimeFromNow } = useFormatTimeFromNow() const deploymentState = deployment?.deployment const deployedVersion = deploymentState?.current_version diff --git a/web/app/components/app/app-publisher/environment-tabs/index.tsx b/web/app/components/app/app-publisher/environment-tabs/index.tsx index ca9ef20e7d0..d24de41f2ac 100644 --- a/web/app/components/app/app-publisher/environment-tabs/index.tsx +++ b/web/app/components/app/app-publisher/environment-tabs/index.tsx @@ -32,7 +32,7 @@ export function PublisherEnvironmentTabs({ onAddEnvironment, onSelectEnvironment, }: PublisherEnvironmentTabsProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'deployments', 'workflow']) const builtInLabel = t(($) => $['nodes.common.memories.builtIn'], { ns: 'workflow' }) const moreLabel = t(($) => $['operation.more'], { ns: 'common' }) const moreEnvironmentsLabel = t(($) => $['studio.moreEnvironments'], { diff --git a/web/app/components/app/app-publisher/features-wrapper.tsx b/web/app/components/app/app-publisher/features-wrapper.tsx index ffb85da6b44..94826743fe1 100644 --- a/web/app/components/app/app-publisher/features-wrapper.tsx +++ b/web/app/components/app/app-publisher/features-wrapper.tsx @@ -34,7 +34,7 @@ type Props = Omit & { } const FeaturesWrappedAppPublisher = (props: Props) => { - const { t } = useTranslation() + const { t } = useTranslation(['appDebug', 'common']) const features = useFeatures((s) => s.features) const featuresStore = useFeaturesStore() const [restoreConfirmOpen, setRestoreConfirmOpen] = useState(false) diff --git a/web/app/components/app/app-publisher/publish-with-multiple-model.tsx b/web/app/components/app/app-publisher/publish-with-multiple-model.tsx index 3f94f9ab8a8..3386fe7add3 100644 --- a/web/app/components/app/app-publisher/publish-with-multiple-model.tsx +++ b/web/app/components/app/app-publisher/publish-with-multiple-model.tsx @@ -30,7 +30,7 @@ const PublishWithMultipleModel: FC = ({ multipleModelConfigs, onSelect, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['appDebug']) const language = useLanguage() const { data: textGenerationModelList = [] } = useQuery( consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({ diff --git a/web/app/components/app/app-publisher/publisher-content/index.tsx b/web/app/components/app/app-publisher/publisher-content/index.tsx index 82641a214cc..5d6fc6bff71 100644 --- a/web/app/components/app/app-publisher/publisher-content/index.tsx +++ b/web/app/components/app/app-publisher/publisher-content/index.tsx @@ -64,7 +64,7 @@ export function PublisherContent({ toolPublished, workflowToolAvailable = true, }: PublisherContentProps) { - const { t } = useTranslation() + const { t } = useTranslation(['app', 'workflow']) const appDetail = useAppStore((state) => state.appDetail) const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions()) const { formatTimeFromNow } = useFormatTimeFromNow() diff --git a/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx b/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx index 98e199a1dc7..07cef773d02 100644 --- a/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx +++ b/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx @@ -33,7 +33,7 @@ export function PublisherPanel({ showBuiltInPublisher, workflowLaunch, }: PublisherPanelProps) { - const { t } = useTranslation() + const { t } = useTranslation(['workflow']) const [deploymentConfigurationOpen, setDeploymentConfigurationOpen] = useState(false) const handleOpenChange: NonNullable = (nextOpen, eventDetails) => { const isOutsideDismiss = diff --git a/web/app/components/app/app-publisher/publisher-content/use-marketplace-publish.ts b/web/app/components/app/app-publisher/publisher-content/use-marketplace-publish.ts index 2ccdd0c4424..0d09f969ae1 100644 --- a/web/app/components/app/app-publisher/publisher-content/use-marketplace-publish.ts +++ b/web/app/components/app/app-publisher/publisher-content/use-marketplace-publish.ts @@ -4,7 +4,7 @@ import { toast } from '@/app/notifications' import { publishToCreatorsPlatform } from '@/service/apps' export function useMarketplacePublish(appId?: string) { - const { t } = useTranslation() + const { t } = useTranslation(['workflow']) const [isPublishing, setIsPublishing] = useState(false) async function publish() { diff --git a/web/app/components/app/app-publisher/publisher-content/use-version-info.ts b/web/app/components/app/app-publisher/publisher-content/use-version-info.ts index 6e722b96ea0..03689bf20ce 100644 --- a/web/app/components/app/app-publisher/publisher-content/use-version-info.ts +++ b/web/app/components/app/app-publisher/publisher-content/use-version-info.ts @@ -22,7 +22,7 @@ export function useVersionInfo({ publishedWorkflow?: WorkflowResponse | null onClosePublisher: () => void }) { - const { t } = useTranslation() + const { t } = useTranslation(['workflow']) const [isOpen, setIsOpen] = useState(false) const { mutate: updateWorkflow } = useUpdateWorkflow() const invalidateAppWorkflow = useInvalidateAppWorkflow() diff --git a/web/app/components/app/app-publisher/publisher-content/use-workflow-tool.ts b/web/app/components/app/app-publisher/publisher-content/use-workflow-tool.ts index 01609e2ef8a..23279aebc79 100644 --- a/web/app/components/app/app-publisher/publisher-content/use-workflow-tool.ts +++ b/web/app/components/app/app-publisher/publisher-content/use-workflow-tool.ts @@ -49,7 +49,7 @@ export function useWorkflowTool({ toolPublished, workflowToolAvailable, }: UseWorkflowToolParams) { - const { t } = useTranslation() + const { t } = useTranslation(['workflow']) const [drawerOpen, setDrawerOpen] = useState(false) const canManageTools = useCanManageTools() const visible = appMode === AppModeEnum.WORKFLOW && !hasHumanInputNode && !hasTriggerNode diff --git a/web/app/components/app/app-publisher/utils.ts b/web/app/components/app/app-publisher/utils.ts index a7edb07da86..2ddfe5ee4af 100644 --- a/web/app/components/app/app-publisher/utils.ts +++ b/web/app/components/app/app-publisher/utils.ts @@ -24,7 +24,7 @@ export const getDisabledFunctionTooltip = ({ missingStartNode, noAccessPermission, }: { - t: TFunction + t: TFunction<['app']> publishedAt?: number missingStartNode: boolean noAccessPermission: boolean diff --git a/web/app/components/app/app-publisher/version-info-modal.tsx b/web/app/components/app/app-publisher/version-info-modal.tsx index c28855da843..b18007894fb 100644 --- a/web/app/components/app/app-publisher/version-info-modal.tsx +++ b/web/app/components/app/app-publisher/version-info-modal.tsx @@ -25,7 +25,7 @@ const VersionInfoModal: FC = ({ onClose, onPublish, }) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'workflow']) const [title, setTitle] = useState(versionInfo?.marked_name || '') const [releaseNotes, setReleaseNotes] = useState(versionInfo?.marked_comment || '') const [titleError, setTitleError] = useState(false) diff --git a/web/app/components/app/app-publisher/workflow-tool-action/index.tsx b/web/app/components/app/app-publisher/workflow-tool-action/index.tsx index bf9cc3fe444..a804a4b3b21 100644 --- a/web/app/components/app/app-publisher/workflow-tool-action/index.tsx +++ b/web/app/components/app/app-publisher/workflow-tool-action/index.tsx @@ -26,7 +26,7 @@ const WorkflowToolAction = ({ published, onConfigure, }: WorkflowToolActionProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['appApi', 'workflow']) const disabledReason = disabled ? message : undefined const workflowToolLabel = t(($) => $['common.workflowAsTool'], { ns: 'workflow' }) diff --git a/web/app/components/app/configuration/base/operation-button/index.tsx b/web/app/components/app/configuration/base/operation-button/index.tsx index bb65f0213f0..384a9495cc1 100644 --- a/web/app/components/app/configuration/base/operation-button/index.tsx +++ b/web/app/components/app/configuration/base/operation-button/index.tsx @@ -15,7 +15,7 @@ export function OperationButton({ className, ...buttonProps }: OperationButtonProps) { - const { t } = useTranslation() + const { t } = useTranslation(['common']) return ( diff --git a/web/app/components/plugins/marketplace/plugin-type-switch.tsx b/web/app/components/plugins/marketplace/plugin-type-switch.tsx index 91a2dcc163b..e611b096a7f 100644 --- a/web/app/components/plugins/marketplace/plugin-type-switch.tsx +++ b/web/app/components/plugins/marketplace/plugin-type-switch.tsx @@ -14,7 +14,7 @@ type PluginTypeSwitchProps = { variant?: 'default' | 'hero' | 'home' } const PluginTypeSwitch = ({ className, variant = 'default' }: PluginTypeSwitchProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['plugin']) const [activePluginType, handleActivePluginTypeChange] = useActivePluginType() const setSearchMode = useSetAtom(searchModeAtom) const isHero = variant === 'hero' diff --git a/web/app/components/plugins/marketplace/search-box/index.tsx b/web/app/components/plugins/marketplace/search-box/index.tsx index c0d9b33dc15..6487ac2e16d 100644 --- a/web/app/components/plugins/marketplace/search-box/index.tsx +++ b/web/app/components/plugins/marketplace/search-box/index.tsx @@ -43,7 +43,7 @@ function SearchBox({ autoFocus = false, showTags = true, }: SearchBoxProps) { - const { t } = useTranslation() + const { t } = useTranslation(['plugin', 'tools']) const accessibleLabel = placeholder || t(($) => $.searchTools, { ns: 'plugin' })! const inputRef = useRef(null) useImperativeHandle(ref, () => inputRef.current as HTMLInputElement, []) diff --git a/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx b/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx index 31ed25cfdd0..4d27c3aa78b 100644 --- a/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx +++ b/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx @@ -25,7 +25,7 @@ const SearchBoxWrapper = ({ showTags = true, usedInMarketplace = true, }: SearchBoxWrapperProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['plugin']) const [searchPluginText, handleSearchPluginTextChange] = useSearchPluginText() const [filterPluginTags, handleFilterPluginTagsChange] = useFilterPluginTags() diff --git a/web/app/components/plugins/marketplace/search-box/tags-filter.tsx b/web/app/components/plugins/marketplace/search-box/tags-filter.tsx index 011fc405b6b..85b02bc8fa3 100644 --- a/web/app/components/plugins/marketplace/search-box/tags-filter.tsx +++ b/web/app/components/plugins/marketplace/search-box/tags-filter.tsx @@ -17,7 +17,7 @@ type TagsFilterProps = { usedInMarketplace?: boolean } function TagsFilter({ tags, onTagsChange, usedInMarketplace = false }: TagsFilterProps) { - const { t } = useTranslation() + const { t } = useTranslation(['pluginTags']) const [searchText, setSearchText] = useState('') const { tags: options, tagsMap } = useTags() const filteredOptions = options.filter((option) => diff --git a/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx b/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx index 2762a969544..3cc82adbaf4 100644 --- a/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx +++ b/web/app/components/plugins/marketplace/search-box/trigger/marketplace.tsx @@ -19,7 +19,7 @@ function MarketplaceTrigger({ tagsMap, onTagsChange, }: MarketplaceTriggerProps) { - const { t } = useTranslation() + const { t } = useTranslation(['pluginTags']) const triggerRef = useRef(null) const shouldRestoreFocusRef = useRef(false) const selectedTagLabels = tags.map((tag) => tagsMap[tag]?.label).filter(Boolean) diff --git a/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx b/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx index 31b68c09741..070058af986 100644 --- a/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx +++ b/web/app/components/plugins/marketplace/search-box/trigger/tool-selector.tsx @@ -19,7 +19,7 @@ function ToolSelectorTrigger({ tagsMap, onTagsChange, }: ToolSelectorTriggerProps) { - const { t } = useTranslation() + const { t } = useTranslation(['pluginTags']) const triggerRef = useRef(null) const shouldRestoreFocusRef = useRef(false) const selectedTagLabels = tags.map((tag) => tagsMap[tag]?.label).filter(Boolean) diff --git a/web/app/components/plugins/marketplace/sort-dropdown/index.tsx b/web/app/components/plugins/marketplace/sort-dropdown/index.tsx index 52c4f0c6e9b..e44e5b013e5 100644 --- a/web/app/components/plugins/marketplace/sort-dropdown/index.tsx +++ b/web/app/components/plugins/marketplace/sort-dropdown/index.tsx @@ -10,7 +10,7 @@ import { useTranslation } from '#i18n' import { useMarketplaceSort } from '../atoms' const SortDropdown = () => { - const { t } = useTranslation() + const { t } = useTranslation(['plugin']) const options = [ { value: 'install_count', diff --git a/web/app/components/plugins/marketplace/templates/template-detail-dialog.tsx b/web/app/components/plugins/marketplace/templates/template-detail-dialog.tsx index 1e230705e9e..c0d118f08bb 100644 --- a/web/app/components/plugins/marketplace/templates/template-detail-dialog.tsx +++ b/web/app/components/plugins/marketplace/templates/template-detail-dialog.tsx @@ -22,7 +22,7 @@ export default function TemplateDetailDialog({ onInstall, onOpenChange, }: TemplateDetailDialogProps) { - const { t } = useTranslation() + const { t } = useTranslation(['plugin']) const locale = useLocale() // resolvedTheme maps the "system" preference to the concrete light/dark // value the marketplace page expects. diff --git a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx index 737df3301ff..5a7d1acd5de 100644 --- a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx @@ -59,7 +59,7 @@ const AddOAuthButton = ({ renderTrigger, oAuthData, }: AddOAuthButtonProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'plugin']) const renderI18nObject = useRenderI18nObject() const [isOAuthSettingsOpen, setIsOAuthSettingsOpen] = useState(false) const [isOAuthSettingsMounted, setIsOAuthSettingsMounted] = useState(false) diff --git a/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx b/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx index a88e48fdfaf..5d604174762 100644 --- a/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx @@ -43,7 +43,7 @@ const ApiKeyModal = ({ onUpdate, formSchemas: formSchemasFromProps = [], }: ApiKeyModalProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'plugin']) const [doingAction, setDoingAction] = useState(false) const doingActionRef = useRef(doingAction) const handleSetDoingAction = useCallback((value: boolean) => { diff --git a/web/app/components/plugins/plugin-auth/authorize/index.tsx b/web/app/components/plugins/plugin-auth/authorize/index.tsx index b0da11c70da..f390411c8c2 100644 --- a/web/app/components/plugins/plugin-auth/authorize/index.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/index.tsx @@ -35,7 +35,7 @@ const Authorize = ({ notAllowCustomCredential, onApiKeyClick, }: AuthorizeProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['plugin']) const { canCreateCredential } = useCredentialPermissions() const oAuthButtonProps: AddOAuthButtonProps = useMemo(() => { diff --git a/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx b/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx index 6296cec2202..3124c189a27 100644 --- a/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx @@ -39,7 +39,7 @@ const OAuthClientSettings = ({ hasOriginalClientParams, onUpdate, }: OAuthClientSettingsProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'plugin']) const [doingAction, setDoingAction] = useState(false) const doingActionRef = useRef(doingAction) const handleSetDoingAction = useCallback((value: boolean) => { diff --git a/web/app/components/plugins/plugin-auth/authorize/oauth-visibility-dialog.tsx b/web/app/components/plugins/plugin-auth/authorize/oauth-visibility-dialog.tsx index 1c7364d656d..eaeddd93b69 100644 --- a/web/app/components/plugins/plugin-auth/authorize/oauth-visibility-dialog.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/oauth-visibility-dialog.tsx @@ -29,7 +29,7 @@ const OAuthVisibilityDialog = ({ onConfirm, loading = false, }: OAuthVisibilityDialogProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['common', 'plugin']) const handleOpenChange = (nextOpen: boolean) => { if (loading && !nextOpen) return onOpenChange(nextOpen) diff --git a/web/app/components/plugins/plugin-auth/authorize/permission-selector.tsx b/web/app/components/plugins/plugin-auth/authorize/permission-selector.tsx index 0e5b636d59f..239461998f9 100644 --- a/web/app/components/plugins/plugin-auth/authorize/permission-selector.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/permission-selector.tsx @@ -21,7 +21,7 @@ type PermissionSelectorProps = { } const PermissionSelector = ({ disabled, permission, onChange }: PermissionSelectorProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['datasetSettings', 'plugin']) const { data: userProfile } = useSuspenseQuery({ ...userProfileQueryOptions(), select: (data) => data.profile, diff --git a/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx b/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx index 913ff1c11e3..56734c5c85c 100644 --- a/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx +++ b/web/app/components/plugins/plugin-auth/authorized-in-data-source-node.tsx @@ -13,7 +13,7 @@ const AuthorizedInDataSourceNode = ({ authorizationsNum, onJumpToDataSourcePage, }: AuthorizedInDataSourceNodeProps) => { - const { t } = useTranslation() + const { t } = useTranslation(['plugin']) return (