Skip to content

Commit ffa5182

Browse files
committed
WEB-926: Fix missing i18n translations in Tax Components view
1 parent 2a6f1e3 commit ffa5182

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/app/products/manage-tax-components/view-tax-component/view-tax-component.component.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939

4040
@if (taxComponentData.debitAccountType) {
4141
<div class="flex-50">
42-
{{
43-
'labels.inputs.accounting.' + (taxComponentData.debitAccountType.value?.split('.')[1] || '').toUpperCase()
44-
| translate
45-
}}
42+
{{ taxComponentData.debitAccountType.code | translateKey: 'inputs.accounting' }}
4643
</div>
4744
}
4845

@@ -67,10 +64,7 @@
6764

6865
@if (taxComponentData.creditAccountType) {
6966
<div class="flex-50">
70-
{{
71-
'labels.inputs.accounting.' +
72-
(taxComponentData.creditAccountType.value?.split('.')[1] || '').toUpperCase() | translate
73-
}}
67+
{{ taxComponentData.creditAccountType.code | translateKey: 'inputs.accounting' }}
7468
</div>
7569
}
7670

0 commit comments

Comments
 (0)