FormidableLabs / babel-bridge

Simple React+Sanity app where content is automatically translated into the user’s language
6 stars 0 forks source link

Sanity: Default language should always come from language schema #25

Closed dtaylorbrown closed 11 months ago

dtaylorbrown commented 1 year ago

At the moment we can detect the default language from the schema in sanity.config.ts but ideally we also need to be able to do this within the custom desk structure where we currently have:

const defaultLanguage = {
  id: 'en-US', title: 'English (US)', default: true
};

This could possibly cause some issues if the default language were to ever change in the schema

Acceptance criteria

umxr commented 1 year ago

This might be superseded by #39