RunicText type alias

Module @runic-artifex/views in @runic-artifex/views 0.23.0

type RunicText = (key: RunicTextKey, locale: string | undefined) => string | undefined;

The application's text for Runic's own page text, as configureRunicText takes it: the text of key in locale (the locale references are shown in, textLocale), or undefined for Runic's English text. The keys are the messages of the runic-views catalog, which configureRunicViewsText() of @runic-artifex/views-translations installs in English and German. With messages of the application's own catalog:

configureRunicText((key, locale) => {
  const options = locale === undefined ? {} : { locale };
  if (key === "bridge.disconnected") return m.connection_lost(options);
  return undefined;
});