Skip to content

Component.translatable() does not translate text in the Dialog API #12971

@lil-aleks

Description

@lil-aleks

Expected behavior

The client should see the translated text displayed in the dialog.

Observed/Actual behavior

The dialog only shows the translation key instead of the translated text.

Steps/models to reproduce

  • Register languages with the GlobalTranslator using a TranslationStore. like in the docs
  • Use Component.translatable() within any part of the dialog.

Plugin and Datapack List

? Server Plugins (1):
Paper Plugins:

  • Waystonez

There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
There are no more data packs available

Paper version

1.21.7-32-main@e792779 (2025-07-16T20:10:15Z) (Implementing API version 1.21.7-R0.1-SNAPSHOT)

Other

The translations are correctly registered, as Component.translatable() works as expected in chat messages.
The dialog is created dynamically when an event is triggered (in my case, a PlayerInteractEvent), not during plugin bootstrap or startup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions