gt-sanity@3.0.0
Major Changes
-
#1981
0b2a13fThanks @brian-lou! - Adoptsanity-plugin-internationalized-arrayas the field-level localization engine and add schema-options-based field exclusion.Field-level localization is now powered by the reference plugin. Enabling
fieldLevelLocalization(or itsinternationalizedArrayalias) ingtPluginnow auto-configuressanity-plugin-internationalized-arrayfrom your locales instead of generating gt-sanity's own schema types and Studio UI. Studio behavior (per-language add buttons, language labels, field actions) now always matches the native plugin, and studios that already register the plugin themselves can keep their setup — translation is shape-based and works either way.Breaking changes:
- Removed the
createInternationalizedArrayTypesexport and theFieldLevelUIComponentstype; gt-sanity no longer ships its own field-level input/item components. - Removed the
typePrefix,includeCompatibilityTypes, andcomponentsoptions fromGTFieldLevelLocalizationConfig(no native equivalent). Passing them logs a warning and they are ignored. Data created with a customtypePrefixis no longer detected; standardinternationalizedArray*data is unaffected. gt-sanitynow re-exportsinternationalizedArray,internationalizedArrayLanguageFilter, andisInternationalizedArrayItemTypefromsanity-plugin-internationalized-arrayfor direct use, andGTFieldLevelLocalizationConfiggained native passthrough options (defaultLanguages,buttonLocations,buttonAddAll,languageDisplay,apiVersion).
New: exclude fields from translation in the schema. The serializer now honors
options.gt.exclude,options.documentInternationalization.exclude(@sanity/document-internationalization), andoptions.aiAssist.exclude(@sanity/assist) on field definitions and on type definitions ("field or type", matching the native plugins' semantics), at any nesting depth — no need to maintain a parallel exclusion list in the plugin config. Exclusion via schema options andlocalize: falsenow also applies to fields of top-level object fields, which were previously not filtered. - Removed the
Patch Changes
- #1982
00c688cThanks @fernando-aviles! - Revamped Sanity UI