mwg API
    Preparing search index...

    Function tRaw

    • Resolves a message by key, interpolating {token} placeholders from params, without any display-text decoration: no typographic spacing, no right-to-left isolate wrapping. This is the resolver for catalog values that are not shown to the player - a sound path behind the semantic formatter's audio channel, an icon id, a font name - where a narrow no-break space or a bidi control character would corrupt the value rather than improve it.

      A key present in neither language returns itself, the same as t().

      Parameters

      Returns string

      import { setBase, tRaw } from '@datamoc/mw_games/i18n';

      setBase({ locale: 'fr', direction: 'ltr', messages: { 'ui.click.audio': 'sounds/hit!.wav' } });
      tRaw('ui.click.audio'); // 'sounds/hit!.wav', with no extra spacing before the '!'