mardi 5 juillet 2016

Ember.js / Ember-i18n: Is it possible to iterate over properties within a translation file from within a Handlebars template?

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.)


    





Aucun commentaire:

Enregistrer un commentaire