I am attempting to store a JSON object containing information in multiple languages. I am uncertain if the way I have implemented it is optimal, so any suggestions are appreciated.
My current issue is that I am unsure how to access the first language without knowing what language it is.
var Data = {
"NameIntern": "Something intern",
"en": {
"Name": "Some name",
"ModuleOrder": "123,333,22" }
};
document.write(Data[1].Name);
I simply want to be able to access the second object; sometimes it's "en", sometimes it's "de".
Any tips would be greatly appreciated!