Skip to content

Commit

Permalink
fix: s49 QOP page text optimization bun2141
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 authored and libruce committed Mar 21, 2024
1 parent 89e6454 commit cd542c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions apps/storefront/src/pages/quickorder/components/QuickAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ export default function QuickAdd(props: AddToListContentProps) {
if (notFoundSku.length > 0) {
showErrors(value, notFoundSku, 'sku', '')
snackbar.error(
b3Lang('purchasedProducts.quickAdd.notFoundSku', { notFoundSku }),
b3Lang('purchasedProducts.quickAdd.notFoundSku', {
notFoundSku: notFoundSku.join(','),
}),
{
isClose: true,
}
Expand All @@ -332,7 +334,7 @@ export default function QuickAdd(props: AddToListContentProps) {
showErrors(value, notPurchaseSku, 'sku', '')
snackbar.error(
b3Lang('purchasedProducts.quickAdd.notPurchaseableSku', {
notPurchaseSku,
notPurchaseSku: notPurchaseSku.join(','),
}),
{
isClose: true,
Expand All @@ -351,7 +353,7 @@ export default function QuickAdd(props: AddToListContentProps) {

snackbar.error(
b3Lang('purchasedProducts.quickAdd.insufficientStockSku', {
stockSku,
stockSku: stockSku.join(','),
}),
{
isClose: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function QuickOrderPad(props: QuickOrderPadProps) {
}}
>
{b3Lang('purchasedProducts.quickOrderPad.outOfStockSku', {
outOfStock,
outOfStock: outOfStock.join(','),
})}
</p>
<Link
Expand Down
6 changes: 3 additions & 3 deletions packages/lang/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@
"purchasedProducts.quickOrderPad.productsAdded": "Products were added to cart",
"purchasedProducts.quickOrderPad.viewCart": "VIEW CART",
"purchasedProducts.quickOrderPad.insufficientStockSku": "SKU {sku} do not have enough stock, please change quantity",
"purchasedProducts.quickOrderPad.notEnoughStock": "SKU {variantSku} is not enough stock",
"purchasedProducts.quickOrderPad.notEnoughStock": "{variantSku} does not have enough stock",
"purchasedProducts.quickOrderPad.availableAmount": "Available amount - {availableAmount}",
"purchasedProducts.quickOrderPad.outOfStockSku": "SKU {outOfStock} are out of stock",
"purchasedProducts.quickOrderPad.outOfStockSku": "{outOfStock} are out of stock",
"purchasedProducts.quickOrderPad.notPurchaseableSku": "SKU {notPurchaseSku} cannot be purchased in online store.",
"purchasedProducts.quickOrderPad.minQuantityMessage": "You need to purchase a minimum of {minQuantity} of the {sku} per order.",
"purchasedProducts.quickOrderPad.accountPendingApproval": "Your business account is pending approval. This feature is currently disabled.",
Expand All @@ -281,7 +281,7 @@
"purchasedProducts.quickAdd.incorrectNumber": "Incorrect number",
"purchasedProducts.quickAdd.notFoundSku": "SKU {notFoundSku} were not found, please check entered values",
"purchasedProducts.quickAdd.notPurchaseableSku": "SKU {notPurchaseSku} no longer for sale",
"purchasedProducts.quickAdd.insufficientStockSku": "SKU {stockSku} do not have enough stock, please change quantity",
"purchasedProducts.quickAdd.insufficientStockSku": "{stockSku} does not have enough stock, please change the quantity ",
"purchasedProducts.quickAdd.purchaseQuantityLimitMessage": "You need to purchase a {typeText} of {limit} of the {sku} per order",
"purchasedProducts.footer.selectOneItemToAdd": "Please select at least one item to add to cart",
"purchasedProducts.footer.productsAdded": "Products were added to cart",
Expand Down

0 comments on commit cd542c3

Please sign in to comment.