sanity-plugin-internationalized-array icon indicating copy to clipboard operation
sanity-plugin-internationalized-array copied to clipboard

Languages reorder crash the field on the published document

Open anonim2214 opened this issue 7 months ago • 2 comments

Describe the bug

I integrated Sanity with another CMS to pull translations from it. So I've faced with the problem that I can't see my published document. After my investigation I found the problem in sorting algorytm.

To Reproduce

  1. Create a release in Sanity
  2. Push the document with random langugage order in this release with API
  3. Do not open the version of this document befor release
  4. Publish the release
  5. Open published document

Expected behavior

I can see published document in sanity

Screenshots

Image

Which versions of Sanity are you using?

3.98.0

What operating system are you using?

MacOS 15.5

Which versions of Node.js / npm are you running?

10.2.4

Additional context I guess the problem in this funcion Image

anonim2214 avatar Jul 09 '25 13:07 anonim2214

This is causing major issues.

Did you find a workaround?

eivindml avatar Aug 26 '25 13:08 eivindml

Yes, I found. I requested all documents in sanity, and then updated them with RIGHT sorted i18n arrays. By the way, now I check sorting every time when I update sanity with external CMS data

anonim2214 avatar Sep 22 '25 12:09 anonim2214