trnalsate

This commit is contained in:
sebseb7
2025-07-16 10:37:13 +02:00
parent a8c77e1107
commit 65611865c8
25 changed files with 254 additions and 54 deletions

View File

@@ -8,6 +8,7 @@ import CircularProgress from '@mui/material/CircularProgress';
import IconButton from '@mui/material/IconButton';
import AddToCartButton from './AddToCartButton.js';
import { Link } from 'react-router-dom';
import { withI18n } from '../i18n/withTranslation.js';
import ZoomInIcon from '@mui/icons-material/ZoomIn';
class Product extends Component {
@@ -336,7 +337,7 @@ class Product extends Component {
sx={{ mt: 'auto', fontWeight: 'bold', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}
>
<span>{new Intl.NumberFormat('de-DE', {style: 'currency', currency: currency || 'EUR'}).format(price)}</span>
<small style={{ color: '#77aa77', fontSize: '0.6em' }}>(incl. {vat}% USt.,*)</small>
<small style={{ color: '#77aa77', fontSize: '0.6em' }}>({this.props.t ? this.props.t('product.inclVatFooter', { vat }) : `incl. ${vat}% USt.,*`})</small>
@@ -366,4 +367,4 @@ class Product extends Component {
}
}
export default Product;
export default withI18n()(Product);