However when I tried to query, there is no language argument. My guess is that it requires a specific file structure, but couldn't figure it out. The structure I'm using is as follows:
|-- data
|-- en
|-- a.json
|-- b.json
|-- zh
|-- a.json
|-- b.json
Because I'm using namespaces, gatsby-transformer-json won't even parse dataJson. Instead it parses enJson and zhJson, and both of them don't have the language argument. Is it possible to fetch language specific data with namespaces?
In the doc, there's a section "How to fetch language specific data" mentioning that this plugin can be used along side with
gatsby-transformer-json
.However when I tried to query, there is no
language
argument. My guess is that it requires a specific file structure, but couldn't figure it out. The structure I'm using is as follows:Because I'm using namespaces,
gatsby-transformer-json
won't even parsedataJson
. Instead it parsesenJson
andzhJson
, and both of them don't have thelanguage
argument. Is it possible to fetch language specific data with namespaces?