---
title: "Verify localized plural messages at boundary counts"
description: "Check a localized selection summary at zero, one, two, and a locale-specific higher count, ensuring grammar and actual selected identifiers agree."
canonical_url: "https://vostride.com/agent-library/localization/plural-count-boundaries.md"
md_url: "https://vostride.com/agent-library/localization/plural-count-boundaries.md"
content_kind: "recipe"
topic: "localization"
---

# Verify localized plural messages at boundary counts

Check a localized selection summary at zero, one, two, and a locale-specific higher count, ensuring grammar and actual selected identifiers agree.

## Risk

Pluralization errors often arise from selecting translation branches with a formatted string or from a count that lags selection state. Keep the locale grammar expectations explicit and inspect the actual selection set alongside each phrase.

## Fixtures

- An owned sandbox list in a supported locale with distinct plural forms and an approved message expectation for zero, one, two, and five.
- Five disposable records with stable identifiers and a bulk action that offers a review screen before any mutation.
- A read-only fixture manifest and localized message references maintained by the product team; this recipe does not invent translation correctness.

## Steps

1. Open the list with nothing selected and verify the approved zero-state message and absence of selected checkmarks.
2. Select one record and verify the count, identifier, and approved singular phrase agree.
3. Select a second record and verify the approved two-item phrase, then select all five and verify the higher-count phrase.
4. Open the bulk-action review and verify it lists exactly the five selected identifiers with the corresponding approved localized summary.
5. Cancel the review, deselect all records, and verify the zero-state wording returns; inspect the independent data oracle and verify no bulk operation was committed.

## Expected results

- Each prepared count selects the approved locale-specific message form.
- The displayed numeric count matches the exact selected identifier set.
- Cancelling the review leaves all underlying fixture records unchanged.

## False-pass traps

- Checking only one and many misses locales whose two-item or other count rules differ.
- A grammatically correct phrase can still describe a stale or incorrect selection count.

## Cleanup

- Clear selection and restore the account locale preference without applying the bulk action.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa test](/docs/agent-qa/configuration/test.md)

- [Localization QA recipes](/agent-library/localization.md)
- [Software factory QA library](/agent-library.md)
