Hi, This is my first post on the forum. I’m updating the API documentation for 1QBit and would like to end up with sample code with a selector for different languages. For example:
Does anyone have a recommendation of how to set up the data structure in Contentful to achieve this? Should I create a Long Text field for each language? Should I have one big Long Text field and include all the sample code there distinguished by code block language, for example, ```python?
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 py, rb, php, nodjs, net,kotlin or csharp intead of java)
I hope I could help you and am looking forward to hear from you again,
Mario
Never mind. I was playing with locales and I just found out that you can only select human languages when creating a new one. So, it won’t work for code languages.