LiamMartens/sanity-plugin-intl-input

How to integrate it with the sanity-plugin-content-calendar?

NicolasBonet opened this issue · 0 comments

Hello guys,

This is not a bug report, but I'm interested in knowing what's the best way to integrate this plugin with the https://github.com/sanity-io/sanity-plugin-content-calendar? I'm not entirely sure about what should be the best approach as I don't have much experience with Sanity, but I'm guessing that the best way to go would be to create a function similar to updateIntlFieldsForDocument that is executed whenever the cron-job from the calendar plugin is triggered? Or do you guys think that there is a better approach?

My concern with the solution I'm suggesting is that I would have to clone a lot of the files in the repo as that function has many imports that rely on the getSanityClient which won't be available as I would need to use the SDK, so maybe there is a better approach similar to a hook that I can invoke?

Thank you in advance!