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:
- Release blockers: Authentication, payment, account, and error messages whose runtime values must display correctly.
- High priority: Plurals, selections, nested branches, and formatted numbers or dates.
- Standard priority: Simple messages with placeholders.
- 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.