mwg API
    Preparing search index...

    Function diffPlaceholders

    • Compares two message texts placeholder by placeholder - the check a translation editor runs between a reference string and its translation, since a dropped or reworded token ({dmg:03d} becoming {damage}, or vanishing entirely) reaches the player as a raw placeholder exactly the way a missing key would.

      Parameters

      • baseText: string
      • targetText: string

      Returns PlaceholderDiff