---
source: https://studio.eloqnt.dev/docs/lint-rules/structure-mismatch
docs_index: https://studio.eloqnt.dev/llms.txt
---

# structure-mismatch

Flags 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:

```json title="messages/en.json"
{
  "items": ["One", "Two"]
}
```

Examples of **incorrect** code for this rule:

```json title="messages/es.json"
{
  "items": "One"
}
```

Examples of **correct** code for this rule:

```json title="messages/es.json"
{
  "items": ["Uno", "Dos"]
}
```

---

For an index of every eloqnt/studio documentation page, see [https://studio.eloqnt.dev/llms.txt](https://studio.eloqnt.dev/llms.txt).
