Dev.to WebDev 🛠 Dev 👁 0

Devlog: Language-aware HUD tooltips

Date: 29 November 2026 Commit: 8f4c5fb Parent: 3aed705 What changed Fixed a bug where hovering over HUD icons could display hardcoded Hindi labels instead of text matching the selected language. The stat badges in in

Devlog: Language-aware HUD tooltips

Date: 29 November 2026
Commit: 8f4c5fb
Parent: 3aed705

What changed
Fixed a bug where hovering over HUD icons could display hardcoded Hindi labels instead of text matching the selected language.

The stat badges in index.html now use data-i18n-title keys rather than static title attributes. New Hindi and English tooltip translations were added in src/i18n.js, including labels for the karma stats, collections, movement indicators, rebirth state, and the close control.

Technical details
Replaced 16 static tooltip attributes with localized translation keys.
Added 16 stat tooltip entries to both Hi_IN and En_US.
Added a localized close-tooltip entry.
The language switch now controls both the HUD icon tooltips and the close tooltip.
Stats
Files changed: 2
Additions: 53
Deletions: 17
Net change: 36 lines

Commit : https://github.com/weirdcodesofficial/MOKSHA/commit/8f4c5fb3896305a0bf7dd2d793baa391ab3647b8

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.