gt-sanity@3.1.1
Patch Changes
-
#2006
8b1a01fThanks @fernando-aviles! - Fix a Studio crash whenlocalesrepeats a locale or includes the source localegtPluginbuilt thesupportedLanguageslist as[sourceLocale, ...locales]
without deduplicating, so a config like{sourceLocale: 'en-US', locales: ['de-DE', 'en-US', ...]}— the shape you get from spreadinggt.config.json—
registereden-UStwice with@sanity/document-internationalization.That duplicate made the Translations menu list the locale twice and offset every
language after it insanity-plugin-internationalized-array, whose reorder
effect then rewrote the translations array on every render and crashed the
Studio with "Maximum update depth exceeded". It also produced duplicate
initial-value template ids for each translatable document type.localesis now normalized to unique translation targets with the source locale
removed.