Interface TranslationBundle<C>

Type Parameters:
C - command sender type
All Superinterfaces:
CaptionProvider<C>

@API(status=STABLE) public interface TranslationBundle<C> extends CaptionProvider<C>
A bundle of translations.

This can be registered to the command manager by accessing the caption registry using CommandManager.captionRegistry() and then registering the provider using CaptionRegistry.registerProvider(CaptionProvider):

TranslationBundle<C> bundle = TranslationBundle.core(sender -> sender.locale());
 manager.captionRegistry().registerProvider(translationBundle);