From c7d373748867809885c90c7e4507c2b6c2656b5f Mon Sep 17 00:00:00 2001 From: Andre601 Date: Fri, 18 Apr 2025 22:11:21 +0200 Subject: [PATCH 1/2] [Feat] Add documentation about lang_or --- source/minimessage/format.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/minimessage/format.rst b/source/minimessage/format.rst index d36f07f..dafcf28 100644 --- a/source/minimessage/format.rst +++ b/source/minimessage/format.rst @@ -236,6 +236,26 @@ Examples .. image:: /minimessage/images/translatable_2.png :alt: The result of parsing ``1':'Stone'>!``, shown in-game in the Minecraft client's chat window in English +Fallback +======== + +.. note:: + + The fallback option is only available since Minecraft 1.19.4. + +Allows displaying minecraft messages using the player locale, or a fallback if no text is available + +Tag + :mm:`` +Aliases + ``tr_or``, ``translate_or`` +Arguments + * ``_key_``, the translation key + * ``_fallback_``, the fallback text to display + * ``_valueX_``, optional values that are used for placeholders in the key (they will end up in the ``with`` tag in the JSON) +Examples + * :mm:`You should get a !` + Insertion ********* From 5a88df771feac3789dd1886df355df640d20a360 Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Sat, 19 Apr 2025 01:02:13 +0200 Subject: [PATCH 2/2] Use +++ for section title --- source/minimessage/format.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/minimessage/format.rst b/source/minimessage/format.rst index dafcf28..7d641ce 100644 --- a/source/minimessage/format.rst +++ b/source/minimessage/format.rst @@ -237,7 +237,7 @@ Examples :alt: The result of parsing ``1':'Stone'>!``, shown in-game in the Minecraft client's chat window in English Fallback -======== +++++++++ .. note::