Hello and welcome to our forums!
We have faced a similar issue when creating the example apps: Link to the example app, written in java.
We solved it by having a field for every language:
By using this content model:
and it results to this json response:
"en-US": "Fetch all entries > code"
"en-US": "curl -H 'Authorization: Bearer '$CDA_TOKEN 'https://cdn.contentful.com/spaces/'$SPACE_ID'/entries/'"
"en-US": "var entry = await client.GetEntries<dynamic>();\n\nConsole.WriteLine(entry.ToString());"
"en-US": "client.getEntries()\n.then((response) => console.log(response))"
"en-US": "final CDAArray all =\n client\n .fetch(CDAEntry.class)\n .all();\n\nSystem.out.println(all);\n"
Feel free to check out the source code of the apps here: https://github.com/contentful/the-example-app.java (Other languages are also available: use
csharp intead of
I hope I could help you and am looking forward to hear from you again,