-
-
Notifications
You must be signed in to change notification settings - Fork 1
bug(knowledge-graph): 3D/2D toggle button labels hardcoded in English, not i18n #3401
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
The 2D/3D toggle button added in PR #3359 used hardcoded English strings for its label and tooltip rather than $t() i18n keys, breaking the multi-language support that all other UI strings in the component use.
Root Cause
<!-- Broken -->
:title="viewMode === '2d' ? 'Switch to 3D view' : 'Switch to 2D view'"
{{ viewMode === '2d' ? '3D' : '2D' }}Fix
Added switchTo3D, switchTo2D, view3D, view2D keys to all 11 locale files (ar, de, en, es, fa, fr, he, lv, pl, pt, ur) and replaced hardcoded strings with $t() calls.
Already fixed in: PR #3372 (fix: code-review issues for 3D view toggle)
References
- PR feat(knowledge-graph): add 3D force-graph view toggle (#3330) #3359 (original implementation)
- PR fix(knowledge-graph): code-review fixes for 3D view toggle (#3330) #3372 (fix)
- Issue feat(knowledge-graph): add 3D force-graph view toggle to KnowledgeGraph.vue #3330 (parent feature)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working