Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to localize a block array with the internationalized array plugin in Sanity.io

5 replies
Last updated: Mar 14, 2024
Hello Sanity peeps,Does anyone know how to localize a block array with
the internationalized array plugin ? I have tried changing the type to "internationalizedArrayString" but that returns an error.

defineField({

name: 'information',

title: 'Information',

type: 'array',

of: [{ type: 'block'}],

}),
Feb 8, 2024, 11:36 AM
👋 I just want to caution you that field level translation of a portable text field will eat through your attribute limit and cause you massive headaches down the line.
Feb 8, 2024, 5:38 PM
That is a fair point. Guess I will localize on the document level in that case. Thanks!
Feb 8, 2024, 10:18 PM
user A
Did you use Document Level Localization in the end? Doesn't it cause issues down the line when you want to link to a certain page, for example, with document level localization if you use a reference field it would be possible to link to any of the translated items of that page, for example.
Mar 14, 2024, 5:14 AM
user P
This is probably not the answer that anyone wants to hear but I switched to StoryBlok because their internationalization had much better documentation that I could follow better.
Mar 14, 2024, 11:48 AM
user A
thanks for letting us know! It’s a super useful piece of feedback to bring to the product team.
Mar 14, 2024, 3:02 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?