Skip to main content

๐ŸŒ I18n

i18n is used mainly for server-side localization. If you are seeking client-side localization, please consult the ๐ŸŒ Language. In general, typical users do not require the use of i18n, as it is primarily designed for providers of public model and asset packs who offer multilingual support.

info

The country or region specification for the language is optional (for example, "en_us" can be simplified to "en"). The plugin will first attempt to find a language tailored to the specific country or region. If such a language is not available, it will then search for the general language. If the language is also not found, the plugin will default to using English (en) as the fallback language.

i18n:
en:
item.chinese_lantern: "Chinese Lantern"
item.fairy_flower: "Fairy Flower"
item.bench: "Bench"
item.table_lamp: "Table Lamp"
item.wooden_chair: "Wooden Chair"
zh_cn:
item.chinese_lantern: "็ฏ็ฌผ"
item.fairy_flower: "ไป™็ต่Šฑ"
item.bench: "้•ฟๆค…"
item.table_lamp: "ๅฐ็ฏ"
item.wooden_chair: "ๆœจๆค…"
info

To render server side translation, please insert i18n tag

Example:

items:
custom:chinese_lantern:
material: paper
data:
item-name: "<i18n:item.chinese_lantern>"
tip

You can nest other tags within i18n for use.

i18n:
en:
internal.cooking_info.0: "Time: <arg:cooking_time>ticks"
internal.cooking_info.1: "Experience: <arg:cooking_experience>"