mwg API
    Preparing search index...

    Function messageText

    • A catalog message reduced to plain, comparable text: a string as-is, a PluralForms reduced to its other branch (or the first form present, the same fallback resolvePlural itself uses with no count), and a FluentMessage formatted with no params - best-effort, since a .ftl message needing a required variable throws rather than resolving; that failure reads as empty text here rather than aborting the caller's whole scan.

      Parameters

      Returns string

      import { messageText } from '@datamoc/mw_games/i18n';

      messageText('Hello'); // 'Hello'
      messageText({ one: '1 item', other: '{count} items' }); // '{count} items'