Icons & Translations
Icons & Translations
Use these methods inside setup to register icons and translations that your plugin’s UI depends on.
registerIcon
Registers an inline SVG icon by name. Use the name in registerSource or registerFileAction.
registerL10n
Adds translation strings used by the plugin’s labels and UI.
Keys registered here can be accessed via uploaderApi.l10n('my-source.label') for translated text. The current locale name is available via pluginApi.config.get('localeName'). Keys are also used automatically when the label in registerSource matches a key. See Localization for the full list of built-in keys and locale definition format.