I'm trying to make my website bilingual. so I would like to iterate my JS object translation. I can iterate it with this code :
for (var word of translation) {
console.log(word);
}
but then I get this:
from the moment I use this code I undefined
for (var word of translation) {
console.log(word[0]);
}
this is my object model
translation = [
{ English : [ ["English" , "engels"], ["lblEng",""] ]},
{dutch : [["dutch" , "nederlands"], ["lblNl",""]]},
{ second : [["second","seconde"], ["sec",""]]},
{minut : [["minut", "minut"],["min",""]]},
{ hour : [["hour","uur"],["h",""]]},
{ day :[ ["day", "dag"],["d",""]]},
{ to : [["to", "naar"],["to",""]]},
{ from : [["from", "van"],["from",""]]}
]