TextRuleEngine

ValidatePlaceholders compares source and translated brace tokens, reports unexpected tokens, checks brace balance and validates paired rich-text tags. TMP tags br, page and sprite are treated as self-closing.

List<TextRuleViolation> issues = engine.ValidatePlaceholders(
    revision, translatedText, new LocaleId("de"));

CheckGlossary searches configured forbidden variants using each term’s case policy. It does not require the approved term and does not calculate an accuracy score.

GeneratePseudoText accents characters, pads to an expansion factor and can reverse the result with bidi override marks. That option is a layout stress helper, not shaping or language validation.

Run the text rules before approval and before your release gate. ReleaseGateEvaluator does not invoke this service.


Copyright © 2026 DecNet Games. All rights reserved. LocalizeShip is a commercial Unity Asset.

This site uses Just the Docs, a documentation theme for Jekyll.