@nextcloud/l10n
    interface GettextWrapper {
        addTranslations(bundle: GettextTranslationBundle): void;
        gettext(
            original: string,
            placeholders?: Record<string, string | number>,
        ): string;
        ngettext(
            singular: string,
            plural: string,
            count: number,
            placeholders?: Record<string, string | number>,
        ): string;
    }
    Index

    Methods

    • Get translated string (singular form), optionally with placeholders

      Parameters

      • original: string

        original string to translate

      • placeholders: Record<string, string | number> = {}

        map of placeholder key to value

      Returns string

    • Get translated string with plural forms

      Parameters

      • singular: string

        Singular text form

      • plural: string

        Plural text form to be used if count requires it

      • count: number

        The number to insert into the text

      • placeholders: Record<string, string | number> = {}

        optional map of placeholder key to value

      Returns string

    MMNEPVFCICPMFPCPTTAAATR