Skip to content

feat(insight): add multi-language support for insight reports - #45

Open
BingqingLyu wants to merge 1 commit into
mainfrom
pr-2061-main-run-76b44964
Open

feat(insight): add multi-language support for insight reports#45
BingqingLyu wants to merge 1 commit into
mainfrom
pr-2061-main-run-76b44964

Conversation

@BingqingLyu

@BingqingLyu BingqingLyu commented Apr 27, 2026

Copy link
Copy Markdown
Owner

What this PR does

This PR implements multi-language support for the /insight HTML report, addressing issue QwenLM#2022.

Changes Made

  1. LLM-generated content localization

    • Modified DataProcessor.ts to pass user language setting to LLM prompts
    • All qualitative insights (impressive_workflows, friction_points, etc.) are now generated in the user's preferred language
  2. Static text localization

    • Created i18n.ts with translations for 6 languages (en, zh, ja, de, pt, ru)
    • Updated React components (Header.tsx, Qualitative.tsx) to use translations
    • All section headings, labels, and UI text are now localized
  3. Language indication

    • Added a message displaying which language is being used when generating insights
    • Message: "Generating insights in {{language}}..."
  4. HTML lang attribute

    • Set the HTML lang attribute based on user's language setting
    • Improves accessibility and browser language handling

Supported Languages

  • English (en)
  • 中文 (zh)
  • 日本語 (ja)
  • Deutsch (de)
  • Português (pt)
  • Русский (ru)

Testing

  • Build passes successfully
  • All eslint checks pass
  • TypeScript compilation successful

Related Issue

Closes QwenLM#2022

- LLM-generated content now respects user's UI language setting
- HTML report static text is localized for en/zh/ja/de/pt/ru
- Added language display message when generating insights
- Set HTML lang attribute based on user language
- Frontend React components use translation dictionary

Closes QwenLM#2022

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@BingqingLyu

BingqingLyu commented May 7, 2026

Copy link
Copy Markdown
Owner Author

Conflict Group 2

This PR shares modified functions with 1 other PR(s): #108.

These PRs should be reviewed as a batch — merging one may affect the others.

Function File Also modified by
AtAGlance Qualitative.tsx #108
NavToc Qualitative.tsx #108
analyzeSession DataProcessor.ts #108
generateQualitativeInsights DataProcessor.ts #108
graph LR
    PR45["PR #45"]
    FAtAGlance_7020["AtAGlance<br>Qualitative.tsx"]
    PR45 -->|modifies| FAtAGlance_7020
    PR108["PR #108"]
    PR108 -->|modifies| FAtAGlance_7020
    FNavToc_7020["NavToc<br>Qualitative.tsx"]
    PR45 -->|modifies| FNavToc_7020
    PR108 -->|modifies| FNavToc_7020
    FanalyzeSession_8719["analyzeSession<br>DataProcessor.ts"]
    PR45 -->|modifies| FanalyzeSession_8719
    PR108 -->|modifies| FanalyzeSession_8719
    FgenerateQualitativeInsights_8719["generateQualitativeInsights<br>DataProcessor.ts"]
    PR45 -->|modifies| FgenerateQualitativeInsights_8719
    PR108 -->|modifies| FgenerateQualitativeInsights_8719
Loading

Posted by codegraph-ai conflict detection.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

This pull request has had no activity for 60 days and is being marked as stale. It will be closed in another 30 days if no further activity occurs. To keep it open, push a new commit or leave a comment. Maintainers may apply pinned, status/blocked, status/on-hold, or status/ready-for-merge to exempt it from auto-close.

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

Labels

conflicting-group-2 Conflicting PR group 2 — review as a batch conflicting-pr Shares at least one cross-PR dependency with other PRs status/stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: /insight report should respect user language settings

2 participants