I am trying to change a label on the invoice trans...
# suitecommerce
p
I am trying to change a label on the invoice transactions via the UI but the change is not happening on the commerce site. Is there a special way to change the label? I could have sworn it worked before but this time the change does not show.
s
The UI works but you're probably not inputting the correct string. It has be exact.
What is the string you're trying to change?
p
Amount to Amount Due
s
Yeah, so I don't think you're translating the exact string
In one template, for example, the code is:
Copy code
{{translate '<span class="receipt-details-header-amount-label">Amount: </span> <span class="receipt-details-header-amount-number">$(0)</span>' totalFormatted}}
The string you need to translate is
Copy code
<span class="receipt-details-header-amount-label">Amount: </span> <span class="receipt-details-header-amount-number">$(0)</span>
p
Got it. Thanks!
s
In some cases we have text strings that also have a colon and a trailing space at the end
So you would need to include those in those circumstances Example:
Copy code
<span class="payment-wizard-show-credit-transaction-module-accordion-container-label">{{translate 'Amount: '}} </span>
👍 1