iya-sts
    Preparing search index...
    phraseSource: (given: PhraseSpec | (() => PhraseSpec)) => ProseSource = ServerProse.phraseSource

    Type Declaration

      • (given: PhraseSpec | (() => PhraseSpec)): ProseSource
      • Builds a PHRASE source (#543 phase 2): the prose of a module's tables and the sentences it makes from templates, translated wherever an answer to one of its routes carries them EXACTLY.

        • A string equal to a message's English is replaced by its translation.
        • A string a template matches is refilled in the translated template, each parameter translated in turn when it is itself a message of this namespace, a filled template, or a list of those joined with ', '; anything else (a number, a name, a DN) is carried over as it was.
        • A key holding .param. names a phrase used only as a parameter.
        • Only on the source's routes (* naming every route), so a value elsewhere that happens to read like a sentence of it is never touched.

        Parameters

        • given: PhraseSpec | (() => PhraseSpec)

          the routes and the English, or a function answering them

        Returns ProseSource

        the source