Lint rules
structure-mismatch
errorFlags a key whose value has a different shape in a target locale than in the source locale.
Why this is bad
The source locale defines each key's shape, so a target locale holding a different shape at the same key can't line up with it and may lead to runtime errors.
Examples
Given a source locale that defines items as an array:
messages/en.json
{"items": ["One", "Two"]}
Examples of incorrect code for this rule:
messages/es.json
{"items": "One"}
Examples of correct code for this rule:
messages/es.json
{"items": ["Uno", "Dos"]}