Nutrient Web SDK
    Preparing search index...

    Variable messagesReadonly

    messages: Record<string, Record<string, string>>

    Returns an object containing the translated messages for every locale. In the messages object each key represents the locale and values are objects containing messageId-translated message pairs.

    The messages object can be mutated directly to change translations or add new ones.

    {
    "en": {
    "delete": "Delete",
    "openPDF": "Open PDF"
    },
    "it": {
    "delete": "Rimuovi",
    "openPDF": "Apri PDF"
    }
    }

    Mutate the messages object. Replace "Open PDF" with "Open".

    NutrientViewer.I18n.messages.en.openPDF = "Open";