fix(storefront): polish cart
Fix real regression: the payment success checkmark and timeout clock icons had been corrupted to literal '?' glyphs (confirmed via git history — ✓ and ⏱ were replaced), so a customer who just paid saw a confusing '?' instead of a success indicator. Restored both icons and marked them aria-hidden since the adjacent heading already conveys the status. Add missing accessible names to icon-only buttons that had none: quantity increase/decrease controls and the mobile delete button (desktop remove button had a title attribute only, which is not reliably announced by screen readers — added aria-label alongside it). New cart.increaseQuantity/decreaseQuantity keys added across all three locales. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,6 +105,8 @@ export const en: Translations = {
|
||||
autoClose: 'Window will close automatically...',
|
||||
confirmClear: 'Are you sure you want to clear the cart?',
|
||||
removeItem: 'Remove item',
|
||||
increaseQuantity: 'Increase quantity',
|
||||
decreaseQuantity: 'Decrease quantity',
|
||||
paymentQrAlt: 'Payment QR code',
|
||||
acceptTerms: 'Please accept the offer terms, return policy, and warranty terms to proceed with the order.',
|
||||
copyError: 'Copy error:',
|
||||
|
||||
@@ -105,6 +105,8 @@ export const hy: Translations = {
|
||||
autoClose: 'Պատուհանը կփակվի ավտոմատ...',
|
||||
confirmClear: 'Վստա՞հ եք, որ ցանկանում եք մաքրել զամբյուղը',
|
||||
removeItem: 'Հեռացնել ապրանքը',
|
||||
increaseQuantity: 'Ավելացնել քանակը',
|
||||
decreaseQuantity: 'Նվազեցնել քանակը',
|
||||
paymentQrAlt: 'Վճարման QR կոդ',
|
||||
acceptTerms: 'Խնդրում ենք ընդունել պայմանները՝ պատվերը հաստատելու համար։',
|
||||
copyError: 'Պատճենման սխալ՝',
|
||||
|
||||
@@ -105,6 +105,8 @@ export const ru: Translations = {
|
||||
autoClose: 'Окно закроется автоматически...',
|
||||
confirmClear: 'Вы уверены, что хотите очистить корзину?',
|
||||
removeItem: 'Удалить товар',
|
||||
increaseQuantity: 'Увеличить количество',
|
||||
decreaseQuantity: 'Уменьшить количество',
|
||||
paymentQrAlt: 'QR-код для оплаты',
|
||||
acceptTerms: 'Пожалуйста, примите условия оферты, политику возврата и возврата для подтверждения оформления заказа.',
|
||||
copyError: 'Ошибка копирования:',
|
||||
|
||||
@@ -103,6 +103,8 @@ export interface Translations {
|
||||
autoClose: string;
|
||||
confirmClear: string;
|
||||
removeItem: string;
|
||||
increaseQuantity: string;
|
||||
decreaseQuantity: string;
|
||||
paymentQrAlt: string;
|
||||
acceptTerms: string;
|
||||
copyError: string;
|
||||
|
||||
Reference in New Issue
Block a user