scripts/extensions/helloWorld/src/extension.ts
import {IExtension} from 'superdesk-api';
import {superdesk} from './superdesk';
const {gettext} = superdesk.localization;
const str = gettext('Hello world');
const extension: IExtension = {
activate: () => {
superdesk.ui.alert(str);
return Promise.resolve({});
},
};
export default extension;