configureTranslatedText function

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

function configureTranslatedText(translations: TextTranslations): () => void;

Connects the Translations runtime of the current instance (the page's, outside RunicInstance.run): resolveText, useText and the framework helpers format references with it, and the window's locale, when the application sets one, is passed to its setLocale. Returns a function that disconnects it. A later call replaces an earlier one, so a page with several catalogs passes one resolve for all of them, such as the generated createReferenceResolver's.