MAIDR JavaScript API
    Preparing search index...
    • The language MAIDR speaks to this reader when a chart loads: the one they chose in its settings, or else fallback, auto unless given, which follows the browser.

      The core speaks it from the first chart's first render; a diagram adapter, a bundle of its own that writes words into the chart data before that render, reads it here so that the words it writes are in the same language.

      Parameters

      • load: (key: string) => unknown = fromLocalStorage

        Reads a stored value by key. Local storage unless given

      • fallback: LanguageSetting = 'auto'

        The preference when none is saved, or the saved one is not one MAIDR knows

      Returns Locale

      The locale