Compat v14 : replace broken localize² with new helper localizeEmbedded

This commit is contained in:
Vlyan
2026-04-06 12:43:36 +02:00
parent 71f01b1c5c
commit 852703c4ef
13 changed files with 62 additions and 54 deletions

View File

@@ -1,6 +1,6 @@
{{#each data.splitItemsList as |cat type|}}
<h3 class="toggle-on-click" data-toggle="inventory-item-list-{{type}}">
{{localize (localize 'l5r5e.{type}s.title' type=type)}} ({{cat.length}})
{{localizeEmbedded 'l5r5e.{type}s.title' type=type}} ({{cat.length}})
{{#if ../data.editable_not_soft_locked}}
<a data-item-type="{{type}}" class="item-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}

View File

@@ -8,7 +8,7 @@
<strong>{{localize 'l5r5e.rings.label'}}</strong> : {{localizeRing data.system.ring}}
</li>
<li>
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{localize (localize 'l5r5e.peculiarities.types.{type}' type=data.system.peculiarity_type)}}
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{localizeEmbedded 'l5r5e.peculiarities.types.{type}' type=data.system.peculiarity_type}}
</li>
<li>
<strong>{{localize 'l5r5e.advancements.curriculum'}}</strong> : {{localizeYesNo data.system.in_curriculum}}
@@ -26,7 +26,7 @@
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{data.system.types}}
</li>
</ul>
{{> 'systems/l5r5e/templates/items/item/item-text-partial-reference.html'}}
</section>
</div>