Let's say I have the following translation code:
languageOptions: {
en: {
code: "en"
displayName: "English"
},
es: {
code: "es"
displayName: "Español"
}
}
I want to, from within my Handlebars template, iterate over the properties within languageOptions. I'm also using the ember-i18n plugin. Is there a way to do something like what I'm attempting to do here? (The code below, unfortunately, does not work.)
{{#each-in (t 'languageOptions') as | language | }}
{{language}}
{{/each-in}}
I think a plain
{{each}}, translating the text from within the loop, should give you the result you are looking for.