feat(insight): add multi-language support for insight reports - #45
Open
BingqingLyu wants to merge 1 commit into
Open
feat(insight): add multi-language support for insight reports#45BingqingLyu wants to merge 1 commit into
BingqingLyu wants to merge 1 commit into
Conversation
- 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>
Owner
Author
Conflict Group 2This PR shares modified functions with 1 other PR(s): #108. These PRs should be reviewed as a batch — merging one may affect the others.
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
Posted by codegraph-ai conflict detection. |
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
This PR implements multi-language support for the
/insightHTML report, addressing issue QwenLM#2022.Changes Made
LLM-generated content localization
DataProcessor.tsto pass user language setting to LLM promptsStatic text localization
i18n.tswith translations for 6 languages (en, zh, ja, de, pt, ru)Language indication
HTML lang attribute
langattribute based on user's language settingSupported Languages
Testing
Related Issue
Closes QwenLM#2022