KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
706 stars 107 forks source link

23w03a/1.19.4: Translation fallback field #863

Closed ejm closed 1 year ago

ejm commented 1 year ago

In the newest Snapshot, Mojang introduced a change to translate components, a fallback field which contains a string to be used in the event that a translation key can't be found.

Full information can be found here:

Added an optional fallback field to translate text components.

  • The new field is a string that will be used in place of translation if it is missing
  • If fallback is missing, the old behavior (i.e. using the key itself as the translation) is preserved

Thanks!

zml2008 commented 1 year ago

Fixed in #868