Skip to content

PluginText

type PluginText =
| string
| LocalizedMap
| {
key: string;
params?: Record<string, unknown>;
};

Text a plugin shows: written text, host-style text in several languages ({ en: ‘Recent’, de: ‘Zuletzt’ }), or one of its own messages to translate, { key: 'plugin.<id>.<key>', params }, from its translations.