mojira.dev
MC-266603

Inconsistent translated messages in chat after language switch

In reference to the existing issue MC-212304 and MC-162441, it has been observed that translated messages in the chat do not update after a client language switch. However, there is inconsistency in the handling of messages containing hover events. When a translated message is used in conjunction with a hover event, the text in the hover event is updated after a language switch. This results in an inconsistent state where the message in the chat and the text in the hover event do not match.

Expected Behavior: The expected behavior should be either that translated messages in hover events have the same language as the translated message, or that translated messages in the chat update after a language switch. Currently, there is an inconsistent state that needs to be addressed to ensure a uniform and correct display.

Example Command: /tellraw @p {"translate":"advancements.adventure.kill_a_mob.title","hoverEvent":{"action":"show_text","contents":[{"translate":"advancements.adventure.kill_a_mob.title"}]}}

Steps to Reproduce:

  1. Execute the command.

  2. Change the client language to German.

  3. Hover over the message in the chat.

Behavior:

  • After Step 1: The text in the hover event corresponds to the same text as the message in the same language.

  • After Step 3: The text in the hover event is in German, while the text in the chat remains in the original language.

Attachments

Comments 1

Confirmed, but likely won't fix.
Chat itself is finalized, while hover events aren't, they're still stored as their json component.

Foorcee

(Unassigned)

Community Consensus

Commands, Internationalisation

1.20.2

Retrieved