It’d be great to be able to configure the API to automatically fallback from locale 1 to locale 2 when no value for locale 1 is found.
For instance, my website’s goal is to display content. I want to display something, even when the content hasn’t been translated yet in the user’s primary language. In such case, I’d like to decide a fallback language (or several, in order), based on the user’s primary language.
This would allow to display my content in chinese, and fallback to english when a specific field hasn’t been translated.
A very good example and doc is available at https://www.i18next.com/principles/fallback#fallback-language
Right now, it’s possible manually from the client consumming the GraphCMS API. But it requires for all fields to fetch multiple locales in order to fallback to them in case some fiels aren’t translated. It’s both cumbersome, error prone, takes time and increases bandwith.
When implementing such system on the GraphCMS API level, I strongly suggest you anticipate several “scenarios”, because not everybody may want such behaviour, it should be opt-in, and other way to “fallback” may arise, based on your customers needs.