Skip to content

Commit 71d8dfb

Browse files
mahsemmergify[bot]
authored andcommitted
fix: add strings for translation in pos_item_cart.js
(cherry picked from commit 4b72b60)
1 parent 3d6d560 commit 71d8dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

erpnext/selling/page/point_of_sale/pos_item_cart.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -966,13 +966,13 @@ erpnext.PointOfSale.ItemCart = class {
966966

967967
if (!res.length) {
968968
transaction_container.html(
969-
`<div class="no-transactions-placeholder">No recent transactions found</div>`
969+
`<div class="no-transactions-placeholder">${__("No recent transactions found")}</div>`
970970
);
971971
return;
972972
}
973973

974974
const elapsed_time = moment(res[0].posting_date + " " + res[0].posting_time).fromNow();
975-
this.$customer_section.find(".customer-desc").html(`Last transacted ${elapsed_time}`);
975+
this.$customer_section.find(".customer-desc").html(`${__("Last transacted")} ${__(elapsed_time)}`);
976976

977977
res.forEach((invoice) => {
978978
const posting_datetime = moment(invoice.posting_date + " " + invoice.posting_time).format(
@@ -997,7 +997,7 @@ erpnext.PointOfSale.ItemCart = class {
997997
</div>
998998
<div class="invoice-status">
999999
<span class="indicator-pill whitespace-nowrap ${indicator_color[invoice.status]}">
1000-
<span>${invoice.status}</span>
1000+
<span>${__(invoice.status)}</span>
10011001
</span>
10021002
</div>
10031003
</div>

0 commit comments

Comments
 (0)