Fixes Cohort localization

This commit is contained in:
Megastruktur 2020-09-04 17:00:14 +03:00
parent 3cb9129993
commit 5e6d5b243f
2 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@
<div id="selected-gang-description" class="description"> <div id="selected-gang-description" class="description">
{{#each data.gang_type as |gang_type key|}} {{#each data.gang_type as |gang_type key|}}
{{#with (lookup ../data.gang_type_list gang_type)}} {{#with (lookup ../data.gang_type_list gang_type)}}
{{description}} {{localize description}}
{{/with}} {{/with}}
{{/each}} {{/each}}
</div> </div>

View file

@ -20,7 +20,7 @@
{{#if (eq item.data.cohort.[0] "Gang")}} {{#if (eq item.data.cohort.[0] "Gang")}}
{{#each item.data.gang_type as |gang_type key|}} {{#each item.data.gang_type as |gang_type key|}}
<div> <div>
{{#with (lookup ../item.data.gang_type_list gang_type)}}{{description}} {{/with}} {{#with (lookup ../item.data.gang_type_list gang_type)}}{{localize description}} {{/with}}
</div> </div>
{{/each}} {{/each}}
{{/if}} {{/if}}
@ -29,18 +29,18 @@
<div class="flex-vertical"> <div class="flex-vertical">
{{#each item.data.edges as |edge key|}} {{#each item.data.edges as |edge key|}}
{{#with (lookup ../item.data.edges_list edge)}} {{#with (lookup ../item.data.edges_list edge)}}
<div class="description">{{description}} <b>({{localize label}})</b></div> <div class="description">{{localize description}} <b>({{localize label}})</b></div>
{{/with}} {{/with}}
{{/each}} {{/each}}
{{#each item.data.flaws as |flaw key|}} {{#each item.data.flaws as |flaw key|}}
{{#with (lookup ../item.data.flaws_list flaw)}} {{#with (lookup ../item.data.flaws_list flaw)}}
<div class="description">{{description}} <b>({{localize label}})</b></div> <div class="description">{{localize description}} <b>({{localize label}})</b></div>
{{/with}} {{/with}}
{{/each}} {{/each}}
</div> </div>
</div> </div>
<div class="description">{{item.data.description}}</div> <div class="description">{{localize item.data.description}}</div>
</div> </div>
</div> </div>