Skip to content

Add missing click-to-teleport locale key to all locale files#2882

Merged
tastybento merged 3 commits intodevelopfrom
copilot/fix-translation-on-hover
Mar 22, 2026
Merged

Add missing click-to-teleport locale key to all locale files#2882
tastybento merged 3 commits intodevelopfrom
copilot/fix-translation-on-hover

Conversation

Copy link
Contributor

Copilot AI commented Mar 22, 2026

Hovering over home names in chat (e.g. after /is go <bad_name>) shows the raw locale key commands.island.sethome.click-to-teleport instead of translated text.

The key is referenced via user.getTranslation() in IslandGoCommand, IslandSethomeCommand, IslandDeletehomeCommand, and IslandRenamehomeCommand but was never added to the locale files — so getTranslation() falls back to returning the key verbatim.

  • Added click-to-teleport to en-US.yml under commands.island.sethome
  • Added translated click-to-teleport to all 22 non-English locale files (cs, de, es, fr, hr, hu, id, it, ja, ko, lv, nl, pl, pt-BR, pt, ro, ru, tr, uk, vi, zh-CN, zh-HK)
Original prompt

This section details on the original issue you should resolve

<issue_title>No translation on hover</issue_title>
<issue_description>### Expected behavior

Translated text

Observed/Actual behavior

Image When hovering over the list of homes, the text shown is the locale key, not the translated text.

Steps/models to reproduce

  1. Type /is go hfhfhfhfh (purpose error in a name)
  2. The list of homes will be shown
  3. Move mouse to hover over the list

BentoBox version

> bbox v
[20:50:08 INFO]: Running PAPER 1.21.11.
[20:50:08 INFO]: (1.21.11-127-bd74bf6 (MC: 1.21.11))
[20:50:08 INFO]: BentoBox version: 3.11.3-SNAPSHOT-LOCAL-LOCAL
[20:50:08 INFO]: Database: MARIADB
[20:50:08 INFO]: Loaded Game Worlds:
[20:50:08 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, The End
[20:50:08 INFO]: raft_world (Raft): Overworld, Nether
[20:50:08 INFO]: Loaded Addons:
[20:50:08 INFO]: BSkyBlock 1.19.1 (ENABLED)
[20:50:08 INFO]: Level 2.23.0 (ENABLED)
[20:50:08 INFO]: Raft 0.1.0-SNAPSHOT-LOCAL (ENABLED)
[20:50:08 INFO]: Warps 1.17.0 (ENABLED)

Plugin list

No response

Other

No response</issue_description>

<agent_instructions>This function was added in a recent PR, but the translation doesn't work.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

The key commands.island.sethome.click-to-teleport was used in
IslandGoCommand, IslandSethomeCommand, IslandDeletehomeCommand, and
IslandRenamehomeCommand but was missing from the locale files, causing
the raw key to be shown as hover text instead of the translated message.

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/2020c8db-752b-4e8e-89fa-385ec0021024
Copilot AI changed the title [WIP] Fix translation display on hover over homes Add missing click-to-teleport locale key Mar 22, 2026
Copilot AI requested a review from tastybento March 22, 2026 03:56
@tastybento
Copy link
Member

@copilot add translations as well as the English.

Added translated click-to-teleport hover text to all 22 non-English
locale files: cs, de, es, fr, hr, hu, id, it, ja, ko, lv, nl, pl,
pt-BR, pt, ro, ru, tr, uk, vi, zh-CN, zh-HK.

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/3850d60c-0df2-444f-9ed5-8a9f5e4c3aab
Copy link
Contributor Author

Copilot AI commented Mar 22, 2026

@copilot add translations as well as the English.

Added translations to all 22 non-English locale files in commit 1cf6314: cs, de, es, fr, hr, hu, id, it, ja, ko, lv, nl, pl, pt-BR, pt, ro, ru, tr, uk, vi, zh-CN, zh-HK.

Copilot AI changed the title Add missing click-to-teleport locale key Add missing click-to-teleport locale key to all locale files Mar 22, 2026
@tastybento tastybento marked this pull request as ready for review March 22, 2026 19:36
@tastybento tastybento merged commit d8b697c into develop Mar 22, 2026
1 check passed
@tastybento tastybento deleted the copilot/fix-translation-on-hover branch March 22, 2026 22:54
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No translation on hover

2 participants