@nextcloud/l10n
    Index

    Constructors

    Methods

    Constructors

    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