Describe the bug
If we have a translation with deep structure, like
{
"languages": {
"en": "English",
"de": "Deutsch"
}
}
it fails to generate correct Translation type in gatsby-types.d.ts. The translation is missing message.
To Reproduce
Steps to reproduce the behavior:
- Add example above as messages for any locale.
- Run build.
- Check gatsby-types.d.ts
Expected behavior
The Translation type should include
readonly message: Maybe<Scalars['String']>;