Description
The MenuItemModal close button uses a hardcoded English aria-label="Close" instead of a translation key. The CartDrawer component already correctly uses t('cart.close') for its close button.
Files to Change
packages/storefront/src/components/MenuItemModal.tsx — line 191
Steps
- Import the
useTranslation hook (if not already imported)
- Replace
aria-label="Close" with aria-label={t('common.close')}
- Ensure the
common.close key exists in all translation files
Effort
XS — one-line change
Description
The
MenuItemModalclose button uses a hardcoded Englisharia-label="Close"instead of a translation key. TheCartDrawercomponent already correctly usest('cart.close')for its close button.Files to Change
packages/storefront/src/components/MenuItemModal.tsx— line 191Steps
useTranslationhook (if not already imported)aria-label="Close"witharia-label={t('common.close')}common.closekey exists in all translation filesEffort
XS — one-line change