mojira.dev
MC-280333

Text Displays with a translation key in their text field don't update properly when changing language

Text Display entities (and possibly other entities) with a translation key in their text field do not update properly on the client when changing to a different language, and only correctly do so when exiting and re-joining the world.

Steps to reproduce

  1. Summon the text display

    /summon text_display ~ ~ ~ {text:{translate:"key.mouse.left"}}
  2. Observe that the text says “Left Button” in whichever language your game is set to.

  3. Change your language in settings.

  4. Observe that the Text Display is still in the previously selected language.

Linked issues

Comments 4

You have an error in your command. Use it:
/summon text_display ~ ~ ~ {text:{translate:key.mouse.left}}

Might be the same issue as MC-162441, at least relates to

@mixquartz My command works perfectly fine in the latest snapshot (25w09a).

If you’re looking for the 1.21.4 format, you can use this:

/summon text_display ~ ~ ~ {text:'{"translate":"key.mouse.left"}'}

I can confirm that the same issue still happens in 1.21.8.
I summoned a text display using the following command, with the translation key ija.oneblock.tl.c defined in both English and German inside a resource pack embedded in the world:

/summon text_display ~ ~ ~ {alignment:"center",billboard:"center",text:{translate:"ija.oneblock.tl.c"}}

I summon the text display while the game is set to English and the English translation correctly gets shown. If I switch to German, the English translation still gets shown. However, once I leave the world and rejoin, the German translation correctly gets shown.

flamesatgames

(Unassigned)

Confirmed

Platform

Normal

Entities, Text

1.21.4, 25w09a, 25w10a, 1.21.8 Release Candidate 1

Retrieved