Internationalization Language
Display corresponding content based on client language
Effect
Through internationalization language configuration, the Xerr plugin can automatically load text content in the corresponding language according to the player's client language settings. For example:
Players using an English client will see English prompt text (e.g., "Scroll to select reply") Players using a Traditional Chinese client will see Traditional Chinese text (e.g., "滾輪切換回復選項")
Directory Structure
Internationalization language configuration files adopt a directory structure corresponding to the original layout/display files for easy maintenance and mapping.
The core directory is core/lang
, which contains two types of translation files: layout display and line display:
- Language code specification: Refer to the Minecraft Wiki language code standards (e.g., en_US for English, zh_CN for Simplified Chinese)
- Directory mapping rules:
core/lang/layout
corresponds to translations for thecore/layout
directory, andcore/lang/display/line
corresponds to translations for thecore/display/bossbar/line
directory
Layout Display Translation
Corresponding original layout file
The value
in the original layout file is the default text, which will be overwritten by the translation file of the corresponding language during internationalization:
Line Display Translation
Corresponding original display file
The text
in the original display file is the default text, which will be overwritten by the translation file of the corresponding language during internationalization: