platform-bible-utils
    Preparing search index...

    Type Alias NotifyProjectOpenBlockedDependencies

    What notifyProjectOpenBlocked needs from PAPI, passed in so it runs in any process.

    type NotifyProjectOpenBlockedDependencies = {
        getLocalizedStrings: (
            localizeKeys: LocalizeKey[],
        ) => Promise<LanguageStrings>;
        logWarning: (message: string) => void;
        sendNotification: (
            notification: { message: LocalizeKey; severity: "warning" },
        ) => Promise<unknown>;
    }
    Index

    Properties

    getLocalizedStrings: (localizeKeys: LocalizeKey[]) => Promise<LanguageStrings>

    Looks up the translations of localizeKeys, e.g. papi.localization.getLocalizedStrings

    logWarning: (message: string) => void

    Logs message as a warning, e.g. logger.warn

    sendNotification: (
        notification: { message: LocalizeKey; severity: "warning" },
    ) => Promise<unknown>

    Shows notification to the user, e.g. papi.notifications.send