Far-Beyond-Pulsar/Pulsar-Native
View on GitHubui_log_viewer: rust-i18n dependency wired but never initialized, zero translations
Open
#479 opened on Jul 29, 2026
bugdifficulty: easyenhancementgood first issuehelp wantedpriority: medium
Repository metrics
- Stars
- (348 stars)
- PR merge metrics
- (PR metrics pending)
Description
Summary
crates/editor/ui_log_viewer/Cargo.toml:28 adds rust-i18n.workspace = true as a dependency, but the crate:
- Never calls
rust_i18n::i18n!("locales", ...)— the macro that initializes per-crate locale loading (compare withui_common/src/lib.rs:6,ui_problems/src/lib.rs:6, etc.) - Has no
locales/directory - Has zero
t!()macro usages anywhere in its source
All UI strings are hardcoded English — panel labels, filter controls, column headers in the log viewer, system info panel, GPU metrics, etc.
This is dead configuration: the dependency is pulled in but does nothing.
Affected components
MissionControlPanel— panel title, workspace labelsLogDrawer— filter buttons, column headers, search placeholderLogsPanel,SystemInfoPanel,GpuMetricsPanel,ResourceMonitorPanel,MemoryBreakdownPanel,AdvancedMetricsPanel,CallerSitesPanel— section titles, labels, empty states
Suggested fix
- Add
rust_i18n::i18n!("locales", fallback = "en");tocrates/editor/ui_log_viewer/src/lib.rs - Create
locales/en.ymlwith translation keys for all user-facing strings in the crate - Replace hardcoded strings with
t!("Key.Name")calls - Either remove
rust-i18nfrom Cargo.toml if unused, or complete the implementation