@runic-artifex/views-translations

Version 0.23.0. Read from the published package.

@runic-artifex/views-translations

configureRunicViewsText function

Shows Runic's page text in the window's language, in instance or in the current Runic instance (the page's unless called inside RunicInstance.run): field errors (FieldState.error, resolveText, describeBridgeError) with configureFieldErrorText(runicViewsFieldErrorText), and the sentences of describeBridgeError and the key names of formatShortcut with configureRunicText(runicViewsText).

resolveRunicViewsText function

Formats a runic-views text reference, such as a validation error's text, in locale (the page's when omitted); undefined for a reference of another catalog, or one that does not match this catalog.

runicViewsCatalog constant

The 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]).

runicViewsFieldErrorText function

The runic-views text of a field error in locale, as configureFieldErrorText takes it: for an invalid-text error with a reason Runic's parsers report; undefined for any other error, so it shows its English message.

runicViewsMessages constant

The runic-views messages, as the generated m of a catalog.

runicViewsText function

The runic-views text of Runic's own page text in locale, as configureRunicText takes it: the sentences describeBridgeError writes (bridge.*) and the key names formatShortcut writes (shortcut.*, platform.*_key); undefined for a key this version has no message for, so it shows its English text.

runicViewsTransport constant

The runic-views catalog's generated transport module.