Skip to content

bug(knowledge-graph): 3D/2D toggle button labels hardcoded in English, not i18n #3401

@mrveiss

Description

@mrveiss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions