0

GraphQL ignores fields that start with double underscore __i18n_lang and I cant query the language from Sanity. The Sanity Intl plugin has already a solution how to replace the name but the Docs are not very friendly for a Sanity beginner like me.

Please help me implement this code on my Sanity studio.

OR

help me create a new field lang that automatically gets the value of __i18n_lang using sanity api.

Jozefini
  • 173
  • 1
  • 11
  • I'm facing the same problem. Were you able to sort it? – Fabio Milheiro Apr 30 '22 at 11:11
  • 1
    Hi Fabio, at that time I was using GatsbyJS, and only GraphQL worked there. The only way was checking suffix of `_id` but still was a bit unreliable. Now I use NextJS and work directly with GROQ query instead and works perfect. – Jozefini May 02 '22 at 10:22

0 Answers0