summaryrefslogtreecommitdiff
path: root/resources/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/ui.js')
-rw-r--r--resources/js/ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/js/ui.js b/resources/js/ui.js
index e5afb53..3aa0c98 100644
--- a/resources/js/ui.js
+++ b/resources/js/ui.js
@@ -301,14 +301,14 @@ const UI = {
if (statusEffect.slug === 'faint') {
const node = document.createElement('b');
node.innerHTML = 'X';
- node.title = statusEffect.name;
+ node.title = translate(`status_${statusEffect.slug}`) || statusEffect.name;
return node;
}
const img = document.createElement('img');
img.src = `/modules/tuxemon/mods/tuxemon/gfx/ui/icons/status/icon_${statusEffect.slug}.png`;
- img.title = statusEffect.name;
+ img.title = translate(`status_${statusEffect.slug}`) || statusEffect.name;
return img;
},