Open sorokin-energi opened 1 year ago
Ideas to handle this in v1:
document-i18n
is in the plugins listdocumentI18n
property from the sanity codegen config, and use the fieldNames
property set thereThen the generator would add the configured/default field names for schemas with i18n: true
.
Hi,
@sanity/document-internationalization
can add__i18n_lang
,__i18n_refs
and__i18n_base
fields to schemas withi18n
flag.But it's also possible to use custom names on both global or schema level:
Two options are in my mind
Like