From 94cf76f8968cf81a06d70fe329b5edf4ec07f94f Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 1 Sep 2023 00:07:35 +0200 Subject: battle translations --- resources/js/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/js/ui.js') 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; }, -- cgit v1.2.3