👀 See Sanity in action: Watch product demo now →

Intl-Input Plugin for Translation - Query not Returning Page

7 replies
Last updated: Mar 12, 2021
Hey! I´m using intl-input plugin for translation and I am having a really weird issue, maybe someone has an idea what it can be?I´ve created a page with a translation, one in my default language (swedish) and one in english. When I query for that page from my app, I can’t see it. Not even with an `const pageQuery = `*`;` however, I can access it by running the exact same query from
Sanity desk vision.
Mar 12, 2021, 10:41 AM
It’s because of the id structure. it’s got a . in it.
Mar 12, 2021, 10:50 AM
You either have to use a read only access key and don’t use the cdn, or change the id structure used.
Mar 12, 2021, 10:50 AM
user L
- I´ll look into it!
Mar 12, 2021, 10:52 AM
Sorry i forgot i wrote this. wait a sec.
Mar 12, 2021, 10:54 AM
I decided to go the delimited route, but you might not.
Mar 12, 2021, 10:54 AM
That’s exactly what I was looking for, thank you!
Mar 12, 2021, 10:59 AM

Sanity.io – build remarkable experiences at scale

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