We really like the concept of language fallbacks work within the context of the
gatsby-source-datocms. One issue that we are working through is the ability to specify required fields on a query. The DatoCMS model allows a field to be localized and required - but a side-effect is that all fields are required to be duplicated when only a single string may vary between locales.
One issue that we are trying to figure out is how to enforce at GraphQL query time the integrity of the data model.
It would be great if the concept of the fallback map that gatsby-source-datocms could be specified within the DatoCMS and used to validate a model upon save. As a workaround we currently have to omit the ‘required’ field so we don’t have maintain duplicate content when customizing ‘en-gb’ from ‘en’.
The downside of this approach is that the GraphQL schema shows that the field values are optional.
Is there a way around this - would it be possible to make country agnostic entries be required, but country overrides be optional?