feat(control-plane): add i18n for knowledge base and refine mental models - #3677
Open
Sanderhoff-alt wants to merge 1 commit into
Open
Conversation
Sanderhoff-alt
force-pushed
the
feat/i18n-knowledge-base-and-mental-models
branch
7 times, most recently
from
August 20, 2026 14:24
f3212cc to
4d10581
Compare
Sanderhoff-alt
force-pushed
the
feat/i18n-knowledge-base-and-mental-models
branch
3 times, most recently
from
August 20, 2026 14:46
487e3ff to
3b02533
Compare
…dels - Localize Knowledge Base module across all 10 locales (en, zh-CN, zh-TW, yue-Hant, ja, ko, es, fr, de, pt) - Streamline Chinese terminology for Knowledge Pages to "知识页" / "知識頁" - Retain standard terminology for Source Query and Delta/Full refresh - Replace hardcoded strings in mental-models-view.tsx with i18n keys - Refine document descriptions and fix legacy localization typos
Sanderhoff-alt
force-pushed
the
feat/i18n-knowledge-base-and-mental-models
branch
from
August 20, 2026 14:51
3b02533 to
222c327
Compare
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.
Problem Description
knowledge-base-view.tsx) was untranslated across all non-English locale dictionaries (zh-CN,zh-TW,yue-Hant,ja,ko,es,fr,de,pt), with 32+ keys left as English fallback strings.documentsDescriptionacross all 10 locales to accurately convey the memory extraction/retain pipeline instead of literal retention.staleAutoTitle,staleManualTitle,inSyncTitle) and history diff headers (basedOnDiff→ 「依据对比」).mental-models-view.tsxwere hardcoded in English instead of usingnext-intltranslation keys:toast.success("Mental model content cleared"))<Button>Open</Button>)Proposed Solution
knowledgeBase.*keys across all 10 supported locales:en,zh-CN,zh-TW,yue-Hant,ja,ko,es,fr,de,pt.fieldSourceQuery,editSourceQueryHint,howDerived,backedBy, search, and folder/page CRUD dialogs.知识页(zh) /知識頁(zh-TW, yue).Source Query(源查询 / 來源查詢 / ソースクエリ / 소스 쿼리 / etc.) andDelta / Fullrefresh modes (增量 / 完整).documentsDescriptionto accurately express document memory extraction across all 10 locales.staleAutoTitle,staleManualTitle,inSyncTitle) and simplifiedbasedOnDiffto 「依据对比」 / 「依據對比」.toast.success(t("toastContentCleared"))and{t("actionOpenDetail")}inmental-models-view.tsx.Verification
npm run i18n:check(tsx scripts/find-untranslated.ts), confirmed✓ no hardcoded user-facing strings found.npx vitest run tests/messages/(22/22 tests passed, verifying all statict(...)keys and message dictionaries across locales).