Translatable Text Component

Data Type

A text component, where if the specified text component is a string, it will be treated as a translation key.

Note

You can refer to Minecraft Wiki: Raw JSON text format for JSON text components you can use.

Examples

"text": "example.translation_key"

This example will display a text that says "example.translation_key", which can be translated into something else using a language file in a resource pack.

"text": {
    "translate": "example.translation_key"
}

An alternative version of the example above, using the translate JSON text component.