Open mxmzb opened 3 years ago
Hiya, thanks for taking a look and for opening the issue!
This is a good idea -- I've renamed the issue. I'll add something like a transformDocument
option to the API that allows users to customize how the document is prepared before being patched. This probably won't make it into 1.0, though.
So for now, an alternative option would be:
title
field to hiddencustomTitle
field with localizationpreview
prop for the document type to get the title from customTitle
instead of the original field.title
if it is empty.
I am looking at https://www.sanity.io/docs/localization and thinking, that it would be nice to restructure the
shopifyProduct
schema (e.g. instead of transferring the shopify title intoshopifyProduct.title
transfer it intoshopifyProduct.title.en
), or rename it (e.g. instead of transferring the shopify title intoshopifyProduct.title
transfer it intoshopifyProduct.shopifyTitle
) so you can have a clean localized title attribute.PS.: Thanks for building this toolset!