Skip to content

fix(dataset): translate image parse node response#7331

Draft
c121914yu wants to merge 1 commit into
labring:mainfrom
c121914yu:codex/fix-image-parse-node-response-i18n
Draft

fix(dataset): translate image parse node response#7331
c121914yu wants to merge 1 commit into
labring:mainfrom
c121914yu:codex/fix-image-parse-node-response-i18n

Conversation

@c121914yu

Copy link
Copy Markdown
Collaborator

What changed

  • Use the chat:image_parse translation key for the image parsing child node response in dataset search.
  • Add Simplified Chinese, Traditional Chinese, and English translations for the node name.
  • Update dataset search and Agent dataset search assertions while keeping billing usage names under account_usage:image_parse.

Why

Chat and app debug pages do not load the account_usage namespace. The image parsing child node response used account_usage:image_parse, so its node name was rendered as an untranslated key.

Impact

Image parsing child responses now display a localized node name in chat details and workflow debugging. Billing labels are unchanged.

Validation

  • node scripts/test/withMongo.mjs pnpm --dir packages/service test test/core/workflow/dispatch/dataset/search.test.ts test/core/workflow/dispatch/ai/agent/sub/dataset.test.ts
  • 2 test files passed, 10 tests passed.
  • Commit hooks passed ESLint and Prettier.

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 18.42% 1632 / 8859
🔵 Statements 18.41% 1713 / 9304
🔵 Functions 16.2% 342 / 2110
🔵 Branches 15.14% 761 / 5026
File CoverageNo changed files found.
Generated in workflow #1549 for commit 8d00cf3 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_8d00cf3b97fd3d361e7b1ecccd7c587e9b26ce25

🕒 Time: 2026-07-18 15:12:13 (UTC+8)

@github-actions

Copy link
Copy Markdown

Build Successful - Preview fastgpt Image for this PR:

ghcr.io/labring/fastgpt-pr:fastgpt_8d00cf3b97fd3d361e7b1ecccd7c587e9b26ce25

🕒 Time: 2026-07-18 15:15:18 (UTC+8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant