#✅ | translation

1 messages · Page 1 of 1 (latest)

stable mossBOT
#

Translating custom buttons

You can translate custom button labels with FancyMenu placeholders:

{"placeholder":"local","values":{"key":"your.translation.key"}}

Put that into the button label, and FancyMenu will replace it with the text from your localization file.
More info: Localizing Layouts

If you want, I can also show you how to set up the actual en_us.json / de_de.json files for the translations ✨

#

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
#

Yep 😊

To change the Quit button from English to Polish, do this:

1) Add the Polish translation key

In your localization file, use the same key, but put the Polish text in pl_pl.json:

{
  "my_menu.quit": "Wyjdź"
}

Keep your English fallback in en_us.json too:

{
  "my_menu.quit": "Quit"
}

2) Use that key in the button label

Set the button label to:

{"placeholder":"local","values":{"key":"my_menu.quit"}}

3) Make sure Minecraft is set to Polish

FancyMenu will show the Polish text when the game language is set to Polish.

More info: Localizing Layouts

If you want, I can also give you the exact folder path and file structure for the resource pack 🙂

#

To set a custom button label in FancyMenu:

  1. Right-click the button
  2. Open label/text settings
  3. Enter your text there

If you want it to be translated, use a placeholder like this:

{"placeholder":"local","values":{"key":"your.translation.key"}}

If you mean the vanilla button label specifically, you need to customize the button in a layout for the current screen and edit the button’s label there.
Docs: Text Formatting and Localizing Layouts

If you want, I can show you exactly where to click in the editor ✨

#

You can use placeholders in text fields that support placeholders — in FancyMenu, that’s usually when the full text editor opens.

Common places:

  • Button labels
  • Text elements
  • Sliders
  • Loading requirements
  • Action values
  • Advanced position/size fields

To insert one, click the Placeholders button in the text editor and pick the one you want.
Docs: Placeholders

For a translated button label, use:

{"placeholder":"local","values":{"key":"your.translation.key"}}

If you want, I can tell you exactly where to put it for a button label 🙂

#

Put the placeholder in the button label text field.

Example:

{"placeholder":"local","values":{"key":"my_menu.quit"}}

Steps:

  1. Right-click the button
  2. Open the label/text editor
  3. Paste the placeholder there
  4. Save

If you mean a custom button you made in FancyMenu, that’s the right place.
If you mean a vanilla button, tell me which screen it is and I’ll tell you where to edit it 🙂

#

You can change a vanilla button’s texture/colors by editing it in a layout for the current screen:

  1. Open the screen
  2. Enable Current Screen Customization
  3. Create a layout for current screen
  4. Right-click the vanilla button
  5. Set its background textures or use a template button

If you mean the button should have a different text color, that’s usually done through the button label text/component, but the button itself is mainly changed via its textures.

Docs:

If you want, I can also tell you how to make it look like a red / blue / green button specifically ✨

#

To make a button label red, use a Minecraft formatting code in the label:

{"text":"Quit","color":"red"}

If the label is plain text, you can also try:

&cQuit

For vanilla/mod buttons, the safest way is the JSON text component version.
Docs: Text Formatting

If you want, I can show you how to do this for a translated label too 🙂

#

Yes — that’s because if you replace the label with plain text like Quit, the translation placeholder is gone.

Use the localized text as the label, and wrap it in a red component instead:

{"text":"","extra":[{"placeholder":"local","values":{"key":"my_menu.quit"}}],"color":"red"}

If FancyMenu doesn’t accept that directly in your label field, then the easy alternative is:

  • keep the {"placeholder":"local"...} label
  • and use the translation file to provide the translated text
  • but for per-language red styling, you’d need to use a formatted text component that supports both

If you want, I can help you make the quit button red and translated at the same time with the exact format for FancyMenu ✨

stable mossBOT
#
Thread Marked as Solved

This support thread has been automatically marked as solved because there were no new messages for at least 24 hours.

If you still need help, feel free to continue the conversation or create a new support thread.