Internationalization
Provide Multilingual Item Experience for Global Players
Introduction
Zaphkiel has built-in internationalization support, enabling your server to provide a localized item experience for players from around the world. The system automatically displays item names, descriptions, and interaction information in the appropriate language based on the player's client language settings.
Key Advantages
- 🌐 Global Support - Covers all language regions supported by Minecraft
- 🔍 Automatic Detection - No manual setup required; the system automatically recognizes player language
- 🛡️ Fault Tolerance - Automatically displays default language content when translations are missing
- 📋 Comprehensive Localization - Item names, descriptions, and interaction events can all be localized
- ⚙️ Simple Configuration - Manage all language versions through standard YAML format
Language Configuration
Basic Syntax
Use the i18n
node to organize content for different languages:
Language Code Reference
Based on Minecraft Wiki language standards, supported language codes include:
Code | Language | Region |
---|---|---|
zh_cn | Simplified Chinese | China |
zh_tw | Traditional Chinese | China Taiwan |
en_us | English | United States |
ja_jp | Japanese | Japan |
ko_kr | Korean | South Korea |
fr_fr | French | France |
de_de | German | Germany |
es_es | Spanish | Spain |
pt_br | Portuguese | Brazil |
ru_ru | Russian | Russia |
Configuration Examples
Item Attribute Localization
Provide multilingual versions for various item attributes:
Event Localization
Provide localized feedback for player interactions:
Translation Priority
Content selection order:
- First Priority: i18n translation corresponding to the player's client language
- Second Priority: Default language content (root node configuration)
- Guarantee Mechanism: Ensures all players see understandable content
Troubleshooting
Common Issues
Q: What if translations aren't taking effect?
A: Check that language codes are formatted correctly, ensuring underscores are used instead of hyphens (e.g., zh_cn
instead of zh-cn
)
Q: Items don't change when players switch languages? A: This is normal behavior. Existing items will switch languages on their next update, while new items will immediately use the new language
Q: Can I translate only part of the content? A: Yes, untranslated parts will automatically use default content
Q: How do I confirm which language a player is using? A: The system detects this automatically, no manual intervention needed