These docs are for v3.2. Click to read the latest docs for v5.0.

Discussions

Ask a Question
Back to All

(Static) Localization in {{#each Items}} loop not working

I want to display a category in each item, here is the code (template.hbs):

   {{#each Items}}
      <p>{{Localization.Category}}: {{Category}}</p>
   {{/each}}

(localization.de-AT.json):

{
  "Category":"Kategorie"
}

This displays only the colon and the name of the category, but not the word "Kategorie". Anyway, this code is working as expected (displays the word "Kategorie" followed by paragraphs with 0, 1, 2, 3...):

<p class="CategoryHeader">{{Localization.Category}}: {{Category}}</p>
{{#each Items}}
   <p>{{@index}}</p>
{{/each}}

Any ideas?