diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-09-01 00:07:35 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-09-01 00:07:35 +0200 |
commit | 94cf76f8968cf81a06d70fe329b5edf4ec07f94f (patch) | |
tree | 3441162085e32ed3abbc73b17bd10edb94432ada /resources/js/ui.js | |
parent | c657c77d0cf49afba627b93848e1915e2ce7d3ff (diff) |
battle translations
Diffstat (limited to 'resources/js/ui.js')
-rw-r--r-- | resources/js/ui.js | 4 |
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; }, |