Command error message translates item name via host languange
When playing on a LAN world with two instances, where the hoster (A) has a different language than the one joining (B), item names in the /enchant error message are translated via the language of A.
Steps to reproduce:
- Open a world to LAN on instance A with Language A.
- Join the world form instance B.
- Set the language in instance B to a different Language than A.
- Get any item in the main hand of player B.
- use the /enchant @p lure command to try and enchant the item with an unsupported enchantment (for example lure on anything but a fishing rod.)
- See that the item name is in language A while the rest of the message is in language B.
Example using upside down English on instance A and normal English on instance B:

2023-05-24, 04:36 PM
2023-05-24, 09:23 PM
2023-05-24, 09:23 PM
0
2
-