iya-sts
    Preparing search index...

    Class export=

    A refusal's sentence: its catalog key and parameters, and its English.

    Hierarchy

    • String
      • export=

    Indexable

    • readonly [index: number]: string
    Index
    key: string
    params: Record<string, SentenceParam>
    text: string
    • The sentence as an answer carries it: its key and its parameters, a parameter that is a sentence carried the same way.

      Returns SentenceMessage

      { key, params }

    • The sentence in a page's language, for a page the SERVER draws (the signed-out document): its parameters that are sentences said in it too, and its English where the translator lacks its key.

      Parameters

      • t: any

        the page's translator (PageLocale.forPage())

      Returns string

      the sentence, as text

    • The English, so a sentence put in a store or an answer is its words.

      Returns string

      the English

    • The English: what every caller that treats a sentence as text reads.

      Returns string

      the English

    • The English, for + and a template literal.

      Returns string

      the English

    • Whether a value is a sentence.

      Parameters

      • value: unknown

        anything

      Returns value is export=

      true for a Sentence

    • The messages member of an answer whose errors are these sentences: one entry per sentence, null for one that is only text. Undefined where none is a Sentence, so an answer with no catalog sentence carries no member it would not have carried before.

      Parameters

      • list: unknown[]

        the sentences, Sentences or text

      Returns SentenceMessage[]

      the messages, or undefined

    • A sentence from the refusals catalogs.

      Parameters

      • key: string

        the catalog key, a literal (refusals.authn.failedFor)

      • Optionalparams: Record<string, SentenceParam>

        the parameters, by name

      • Optionalfallback: string

        the English to send where the English catalog has no such key: a sentence read back from a store (VcSignin.revived())

      Returns export=

      the sentence

    • The message a stored sentence was, for a record that keeps a refusal to show on a later view (the screen's screenError): a store keeps the English (toJSON()), so the key is kept beside it.

      Parameters

      • value: unknown

        the sentence, or text

      Returns SentenceMessage

      { key, params }, or null for text