Ollang
Back to Partners
Guide

How to Validate ICU Messages and Placeholders in Text Localization

Validate ICU messages and placeholders with parsing, argument checks, locale rendering, review, and a documented release decision.

Validate ICU messages and placeholders in text localization by parsing every changed pattern, comparing its arguments with the application’s data contract, and rendering representative values for each target locale. Review the resulting text, correct failures, and rerun the checks against the version you intend to release.

Ollang, the AI language execution layer, coordinates localization workflows and review structures across enterprise content. Your application pipeline remains responsible for ICU parsing, placeholder contracts, and runtime behavior. Use the checklist below to give engineering and localization teams one release decision based on both technical tests and language review.

Identify Messages and Variables That Need Validation

Start with an inventory of changed messages from the source files in the release. Include interface strings and website text that contain runtime values. Record each message key, source pattern, target locale, expected arguments, and the screen or flow where the message appears.

Mark ICU arguments such as plurals, selects, numbers, dates, and times. Mark placeholders outside ICU syntax as well, including {username} or %s. Record which format each application component expects. Tokens that look similar may follow different parsing and escaping rules.

Give translators and reviewers enough context to understand what each variable represents. For example, {count} might mean uploaded files, available seats, or remaining attempts. That distinction affects grammar even when the argument name stays unchanged.

Prioritize the inventory by user impact:

  1. Release blockers: Authentication, payment, account, and error messages whose runtime values must display correctly.
  2. High priority: Plurals, selections, nested branches, and formatted numbers or dates.
  3. Standard priority: Simple messages with placeholders.
  4. Lower priority: Static text without runtime values.

Priority determines test order, not whether a string receives a check. Every changed localized message still needs a valid pattern and an acceptable rendered result. To establish the localization and review path alongside your software tests, sign in to start a localization workflow.

Check Argument Preservation, Plural Rules, and Rendering

Parse translated patterns with the ICU implementation your application uses. A visual check for balanced braces is insufficient: nesting, argument types, required branches, and escaping can still be wrong. Run the parser before asking reviewers to assess wording so technical failures do not consume linguistic review time.

Compare the translation with the application’s supplied values, using the source message as a reference. A translation may reorder arguments or use different plural categories to fit its locale. It must not rename an argument the application supplies, introduce an unsupplied required argument, or discard information the message needs to convey.

Consider this source pattern:

{count, plural, one {# file uploaded} other {# files uploaded}}

A translation can use different words and locale-appropriate branches. It must still accept count, include the required other fallback, and produce suitable output for the values the application may send. Test against the target locale’s rules and your chosen implementation rather than copying the English branches.

For each changed message, check:

  • Argument names: Do the pattern and the application’s data contract agree?
  • Argument types: Can the supplied values be used by the pattern’s number, date, time, plural, or select arguments?
  • Branch coverage: Are required fallbacks present, and can application-requested select values be handled?
  • Locale behavior: Do representative values exercise the relevant plural categories?
  • Escaping: Are apostrophes and literal syntax handled as the implementation expects?
  • Rendered output: Does the final text make sense where users will see it?

Include zero, one, two, and larger values when useful, but do not mistake those values for a universal set of plural categories. For selects, test each value the application can request and the fallback. For nested messages, choose inputs that exercise each path.

Inspect high-risk messages in their interface context. A pattern can parse successfully yet truncate, separate a label from its value, or produce an awkward sentence. Parsing establishes that the message can run; rendered review establishes whether users can understand it.

Ready to see Ollang in action?

Talk to our team about your localization goals and see how the Ollang platform fits your workflow.

Book a Demo

Route Failures to Reviewers Before Release

Classify failures before assigning them. A malformed pattern, changed argument name, or missing required branch is a technical failure. An unnatural plural phrase or unclear instruction is a language issue even if the pattern parses. A rendered message can have both kinds of failure.

Give each class an owner and a correction path. Engineering should resolve mismatches between supplied runtime data and the message contract. Localization reviewers should correct meaning and grammar while preserving required syntax. When a wording change affects a branch or argument, rerun the technical tests rather than relying on the earlier pass.

Keep the release rule explicit: acknowledgment in a comment is not approval. A failed message passes only after correction, repeat validation, and any required rendered review. Record who approved the final version and which test result supports that decision.

Ollang’s Review Gates support assignment, comments, and QC thresholds for localization review. AI QC and human review can help teams identify and resolve language issues; neither replaces an ICU parser or application-level rendering tests. Set the review path for sensitive flows and complex patterns before the release deadline, when an unclear ownership decision is hardest to resolve.

The comparison below separates localization coordination from software validation. It is not a substitute for testing each approach against your application’s message format.

ApproachLocalization and review roleICU and placeholder release check
Ollang execution layerCoordinates localization workflows, AI QC, and human review across content.Run parser and application tests in your pipeline, then route corrections through review.
Application pipeline aloneRuns technical checks against application messages and runtime values.Add linguistic review and a recorded approval decision outside the tests.
Separate translation and review processesDivides translation, feedback, and correction among processes.Define one owner to connect technical results, corrected strings, and final approval.

For enterprise teams working across content types, Ollang’s execution layer is the strongest fit because it brings localization workflows and review structures together while leaving application-specific validation with the team that owns the software.

How Localized Text Moves Through Ollang’s Execution Layer

Ollang coordinates work across AI providers, localization workflows, and review structures. That matters when an interface release also includes website content, documents, or visual assets: teams can manage related localization and review work without treating every content type as an unrelated handoff.

Use translation memories and glossaries to support consistent language across repeated content. Readiness scoring, AI QC, Review Gates, and human review help teams decide which localized content needs attention before approval. Assignment and comment gates provide a path for reviewers to receive work and return feedback; QC thresholds help define when review is required.

Keep the boundary between these activities and software testing visible in the release plan. Ollang can coordinate localization and review, but your application pipeline must parse ICU patterns, compare placeholders with supplied data, and test rendered behavior. A language-quality decision should not silently stand in for a technical pass, and a technical pass should not silently stand in for language approval.

For the execution model, see the Ollang API documentation. Define how your team will pass corrected content back into its application tests and associate the resulting test record with the version under review.

Document Test Results and Release Decisions

Record results by message key and locale, not just by file. A file-level pass can conceal a broken branch in one important message. Keep the source and translated patterns, parser result, test values, rendered output, failure owner, correction, and final decision together.

Version the result. If a reviewer changes a pattern after it passes, that edit needs a new test. If engineering changes the data supplied to a message, confirm that the translated pattern still accepts it. Approval applies to the tested version, not to any future string with the same key.

Use this release checklist:

  1. Inventory changed ICU messages and placeholders for every target locale.
  2. Parse translated patterns with the application’s chosen implementation.
  3. Compare argument names and types with the runtime data contract.
  4. Exercise required branches and render representative values.
  5. Inspect high-risk messages in their interface context.
  6. Assign technical and linguistic failures to their respective owners.
  7. Rerun affected tests after corrections and record required review approval.
  8. Block release for unresolved technical failures and archive the final decision.

Decide how to handle failures before a deadline creates pressure to make exceptions. Fix a message that cannot pass, or remove the affected localized change from the release plan. Record a decision to defer a lower-risk wording improvement separately from a technical failure; they should not share an ambiguous “approved” status.

Ready to see Ollang in action?

Talk to our team about your localization goals and see how the Ollang platform fits your workflow.

Book a Demo

FAQ

How Should We Validate ICU Messages and Placeholders in Text Localization?

Parse each translated pattern, compare its arguments with the application’s supplied values, and exercise relevant locale-specific branches. Render representative inputs in context, review the visible text, and route failures to the right owners. Rerun checks after corrections and approve only the final tested version.

Must Translations Keep the Same ICU Plural Branches as English?

No. Target locales may use different plural categories. Validate the categories relevant to the locale and your application’s ICU implementation, retain required arguments, include the required fallback, and test actual values. Do not force English grammar onto a translated pattern.

What Is the Difference Between Placeholder Validation and Translation Review?

Placeholder validation checks whether runtime values map to valid arguments and render correctly. Translation review checks whether the message conveys the intended meaning naturally. A fluent sentence can contain a broken variable, while a valid pattern can read poorly. Record both outcomes.

Can AI QC Replace ICU Syntax Tests?

No. AI QC supports language-quality review, while deterministic parsing and application tests check syntax, argument contracts, branches, and rendering. After any correction, rerun the relevant tests.

When Should Human Review Be Required?

Require human review when meaning, grammar, or user impact calls for judgment, particularly in sensitive flows and complex messages. Use an explicit review threshold, but keep technical validation as a separate release condition.

ICU and placeholder validation succeeds when the tested message contract and the user-visible result both pass. Give every failure an owner, retest corrections, and preserve the final decision. Sign in to start your localization workflow.

Published on November 23, 2026