Sure ✨
1) Create a localization file
Make a resource pack with your language files, for example:
assets/minecraft/lang/en_us.json
{
"my_menu.play": "Play",
"my_menu.quit": "Quit"
}
assets/minecraft/lang/de_de.json
{
"my_menu.play": "Spielen",
"my_menu.quit": "Beenden"
}
Important:
- The keys must stay the same
- Only the translated text changes
- You need an
en_us.json fallback
More info here: Localizing Layouts
2) Use the translation in the button label
Set the custom button label to:
{"placeholder":"local","values":{"key":"my_menu.play"}}
For the quit button:
{"placeholder":"local","values":{"key":"my_menu.quit"}}
3) Test it
When the game language changes, FancyMenu will show the matching translation automatically.
If you want, I can also show you how to localize:
- button hover text
- entire layouts
- images with different languages