@runic-artifex/views-translations
configureRunicViewsTextfunctionShows Runic's page text in the window's language, in
instanceor in the current Runic instance (the page's unless called insideRunicInstance.run): field errors (FieldState.error,resolveText,describeBridgeError) withconfigureFieldErrorText(runicViewsFieldErrorText), and the sentences ofdescribeBridgeErrorand the key names offormatShortcutwithconfigureRunicText(runicViewsText).resolveRunicViewsTextfunctionFormats a
runic-viewstext reference, such as a validation error'stext, inlocale(the page's when omitted);undefinedfor a reference of another catalog, or one that does not match this catalog.runicViewsCatalogconstantThe catalog as an entry of a generated transport's
createReferenceResolver, so the page resolves the validation texts of Runic.Application.Views.Translations together with the application's references:createReferenceResolver([{ transport, messages: m }, runicViewsCatalog]).runicViewsFieldErrorTextfunctionThe runic-views text of a field error in
locale, asconfigureFieldErrorTexttakes it: for aninvalid-texterror with a reason Runic's parsers report;undefinedfor any other error, so it shows its English message.runicViewsMessagesconstantThe runic-views messages, as the generated
mof a catalog.runicViewsTextfunctionThe runic-views text of Runic's own page text in
locale, asconfigureRunicTexttakes it: the sentencesdescribeBridgeErrorwrites (bridge.*) and the key namesformatShortcutwrites (shortcut.*,platform.*_key);undefinedfor a key this version has no message for, so it shows its English text.runicViewsTransportconstantThe runic-views catalog's generated transport module.