Skip to content

Commit 3af4d7b

Browse files
chore(i18n): update translations
1 parent 30c306f commit 3af4d7b

13 files changed

Lines changed: 84 additions & 64 deletions

File tree

clients/apps/web/src/components/Checkout/Checkout.tsx

Lines changed: 49 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ const Checkout = ({
347347
<div className="md:flex md:justify-end">
348348
<div className="mx-auto flex w-full max-w-[480px] flex-col gap-y-6 px-4 pt-6 pb-0 md:mx-0 md:py-12 md:pr-12 md:pl-4">
349349
{orgHeader}
350-
<div className="flex flex-col gap-y-8 md:sticky md:top-8">
350+
<div className="flex flex-col md:sticky md:top-8 md:gap-y-8">
351351
{hasProductCheckout(checkout) && (
352352
<>
353353
{mobileLayout === 'collapsed-bar' && (
@@ -361,64 +361,61 @@ const Checkout = ({
361361
)}
362362
<div
363363
className={twMerge(
364-
'flex flex-col gap-y-2',
364+
'flex flex-col gap-y-8',
365365
mobileCollapses && !mobileSummaryOpen && 'hidden md:flex',
366+
mobileCollapses &&
367+
'dark:border-polar-700 dark:bg-polar-800 -mx-4 border-b border-gray-200 bg-gray-50 px-4 pt-6 pb-6 md:mx-0 md:border-0 md:bg-transparent md:p-0 md:dark:bg-transparent',
366368
)}
367369
>
368-
<div className="flex flex-row items-center gap-x-3">
369-
{hasMedia && checkout.product.medias[0]?.public_url && (
370-
<Dialog>
371-
<DialogTrigger
372-
asChild
373-
disabled={checkout.product.medias.length <= 1}
374-
>
375-
<button
376-
className={`relative h-10 w-10 shrink-0 ${checkout.product.medias.length > 1 ? 'cursor-pointer' : 'cursor-default'}`}
370+
<div className="flex flex-col gap-y-2">
371+
<div className="flex flex-row items-center gap-x-3">
372+
{hasMedia && checkout.product.medias[0]?.public_url && (
373+
<Dialog>
374+
<DialogTrigger
375+
asChild
376+
disabled={checkout.product.medias.length <= 1}
377377
>
378-
<UploadImage
379-
src={checkout.product.medias[0].public_url}
380-
approximateWidth={40}
381-
alt={checkout.product.name}
382-
className="h-10 w-10 rounded-lg object-cover"
378+
<button
379+
className={`relative h-10 w-10 shrink-0 ${checkout.product.medias.length > 1 ? 'cursor-pointer' : 'cursor-default'}`}
380+
>
381+
<UploadImage
382+
src={checkout.product.medias[0].public_url}
383+
approximateWidth={40}
384+
alt={checkout.product.name}
385+
className="h-10 w-10 rounded-lg object-cover"
386+
/>
387+
{checkout.product.medias.length > 1 && (
388+
<span className="absolute right-0 bottom-0 rounded bg-black/60 px-1 py-0.5 text-[10px] leading-none font-medium text-white">
389+
+{checkout.product.medias.length - 1}
390+
</span>
391+
)}
392+
</button>
393+
</DialogTrigger>
394+
<DialogContent className="dark:bg-polar-900 max-w-2xl">
395+
<DialogHeader>
396+
<DialogTitle>{checkout.product.name}</DialogTitle>
397+
<DialogDescription className="sr-only">
398+
Product images
399+
</DialogDescription>
400+
</DialogHeader>
401+
<Slideshow
402+
images={checkout.product.medias.map((m) =>
403+
getResizedImage(m.public_url, 672),
404+
)}
383405
/>
384-
{checkout.product.medias.length > 1 && (
385-
<span className="absolute right-0 bottom-0 rounded bg-black/60 px-1 py-0.5 text-[10px] leading-none font-medium text-white">
386-
+{checkout.product.medias.length - 1}
387-
</span>
388-
)}
389-
</button>
390-
</DialogTrigger>
391-
<DialogContent className="dark:bg-polar-900 max-w-2xl">
392-
<DialogHeader>
393-
<DialogTitle>{checkout.product.name}</DialogTitle>
394-
<DialogDescription className="sr-only">
395-
Product images
396-
</DialogDescription>
397-
</DialogHeader>
398-
<Slideshow
399-
images={checkout.product.medias.map((m) =>
400-
getResizedImage(m.public_url, 672),
401-
)}
402-
/>
403-
</DialogContent>
404-
</Dialog>
405-
)}
406-
<div className="flex min-w-0 flex-col gap-y-1">
407-
<span className="text-sm font-medium text-gray-900 dark:text-white">
408-
{checkout.product.name}
409-
</span>
406+
</DialogContent>
407+
</Dialog>
408+
)}
409+
<div className="flex min-w-0 flex-col gap-y-1">
410+
<span className="text-sm font-medium text-gray-900 dark:text-white">
411+
{checkout.product.name}
412+
</span>
413+
</div>
410414
</div>
415+
<span className="text-3xl font-medium">
416+
<CheckoutHeroPrice checkout={checkout} locale={locale} />
417+
</span>
411418
</div>
412-
<span className="text-3xl font-medium">
413-
<CheckoutHeroPrice checkout={checkout} locale={locale} />
414-
</span>
415-
</div>
416-
<div
417-
className={twMerge(
418-
'flex flex-col gap-y-8',
419-
mobileCollapses && !mobileSummaryOpen && 'hidden md:flex',
420-
)}
421-
>
422419
<CheckoutProductSwitcher
423420
checkout={checkout}
424421
update={

clients/apps/web/src/components/Checkout/MobileOrderSummaryBar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ export const MobileOrderSummaryBar = ({
2929
type="button"
3030
onClick={onToggle}
3131
aria-expanded={isOpen}
32-
className="dark:border-polar-700 dark:bg-polar-800 -mx-4 flex items-center justify-between gap-x-4 border-y border-gray-200 bg-gray-50 px-4 py-4 text-sm md:hidden"
32+
className={twMerge(
33+
'dark:border-polar-700 dark:bg-polar-800 -mx-4 flex items-center justify-between gap-x-4 border-y border-gray-200 bg-gray-50 px-4 py-4 text-sm md:hidden',
34+
)}
3335
>
3436
<span className="flex items-center gap-x-2 font-medium whitespace-nowrap text-gray-900 dark:text-white">
3537
{t('checkout.pricing.orderSummary')}
3638
<ChevronDown
3739
size={16}
38-
className={twMerge('transition-transform', isOpen && 'rotate-180')}
40+
className="transition-transform duration-200"
41+
style={{ transform: `rotate(${isOpen ? 180 : 0}deg)` }}
3942
/>
4043
</span>
4144
<span className="flex flex-col items-end text-right whitespace-nowrap text-gray-900 dark:text-white">

clients/packages/i18n/src/locales/config/.cache.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@
181181
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
182182
"embedPaymentMethod.errors.unauthorized": "Session expired.",
183183
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
184-
"embedPaymentMethod.errors.unknown": "Something went wrong."
184+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
185+
"checkout.pricing.orderSummary": "Order summary"
185186
},
186187
"fr": {
187188
"checkout.footer.poweredBy": "Powered by",
@@ -365,7 +366,8 @@
365366
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
366367
"embedPaymentMethod.errors.unauthorized": "Session expired.",
367368
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
368-
"embedPaymentMethod.errors.unknown": "Something went wrong."
369+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
370+
"checkout.pricing.orderSummary": "Order summary"
369371
},
370372
"sv": {
371373
"checkout.footer.poweredBy": "Powered by",
@@ -549,7 +551,8 @@
549551
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
550552
"embedPaymentMethod.errors.unauthorized": "Session expired.",
551553
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
552-
"embedPaymentMethod.errors.unknown": "Something went wrong."
554+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
555+
"checkout.pricing.orderSummary": "Order summary"
553556
},
554557
"es": {
555558
"checkout.footer.poweredBy": "Powered by",
@@ -733,7 +736,8 @@
733736
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
734737
"embedPaymentMethod.errors.unauthorized": "Session expired.",
735738
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
736-
"embedPaymentMethod.errors.unknown": "Something went wrong."
739+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
740+
"checkout.pricing.orderSummary": "Order summary"
737741
},
738742
"de": {
739743
"checkout.footer.poweredBy": "Powered by",
@@ -917,7 +921,8 @@
917921
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
918922
"embedPaymentMethod.errors.unauthorized": "Session expired.",
919923
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
920-
"embedPaymentMethod.errors.unknown": "Something went wrong."
924+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
925+
"checkout.pricing.orderSummary": "Order summary"
921926
},
922927
"hu": {
923928
"checkout.footer.poweredBy": "Powered by",
@@ -1093,7 +1098,8 @@
10931098
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
10941099
"embedPaymentMethod.errors.unauthorized": "Session expired.",
10951100
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
1096-
"embedPaymentMethod.errors.unknown": "Something went wrong."
1101+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
1102+
"checkout.pricing.orderSummary": "Order summary"
10971103
},
10981104
"it": {
10991105
"checkout.footer.poweredBy": "Powered by",
@@ -1269,7 +1275,8 @@
12691275
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
12701276
"embedPaymentMethod.errors.unauthorized": "Session expired.",
12711277
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
1272-
"embedPaymentMethod.errors.unknown": "Something went wrong."
1278+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
1279+
"checkout.pricing.orderSummary": "Order summary"
12731280
},
12741281
"ko": {
12751282
"checkout.footer.poweredBy": "Powered by",
@@ -1445,7 +1452,8 @@
14451452
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
14461453
"embedPaymentMethod.errors.unauthorized": "Session expired.",
14471454
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
1448-
"embedPaymentMethod.errors.unknown": "Something went wrong."
1455+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
1456+
"checkout.pricing.orderSummary": "Order summary"
14491457
},
14501458
"pt": {
14511459
"checkout.footer.poweredBy": "Powered by",
@@ -1621,7 +1629,8 @@
16211629
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
16221630
"embedPaymentMethod.errors.unauthorized": "Session expired.",
16231631
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
1624-
"embedPaymentMethod.errors.unknown": "Something went wrong."
1632+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
1633+
"checkout.pricing.orderSummary": "Order summary"
16251634
},
16261635
"pt-PT": {
16271636
"checkout.footer.poweredBy": "Powered by",
@@ -1797,6 +1806,7 @@
17971806
"embedPaymentMethod.errors.invalidRequest": "Missing required parameters.",
17981807
"embedPaymentMethod.errors.unauthorized": "Session expired.",
17991808
"embedPaymentMethod.errors.processingFailed": "Could not process the payment method. Please try again.",
1800-
"embedPaymentMethod.errors.unknown": "Something went wrong."
1809+
"embedPaymentMethod.errors.unknown": "Something went wrong.",
1810+
"checkout.pricing.orderSummary": "Order summary"
18011811
}
18021812
}

clients/packages/i18n/src/locales/de.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: 'Plätze konnten nicht aktualisiert werden',
104104
},
105105
inclTax: 'MwSt. (inklusive)',
106+
orderSummary: 'Bestellübersicht',
106107
},
107108
trial: {
108109
ends: 'Testphase endet am {endDate}',

clients/packages/i18n/src/locales/es.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: 'No se pudieron actualizar los asientos',
104104
},
105105
inclTax: 'Impuestos (incluidos)',
106+
orderSummary: 'Resumen del pedido',
106107
},
107108
trial: {
108109
ends: 'La prueba finaliza el {endDate}',

clients/packages/i18n/src/locales/fr.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: 'Échec de la mise à jour des postes',
104104
},
105105
inclTax: 'TVA (incluse)',
106+
orderSummary: 'Récapitulatif de la commande',
106107
},
107108
trial: {
108109
ends: "L'essai se termine le {endDate}",

clients/packages/i18n/src/locales/hu.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: 'A felhasználói helyek frissítése nem sikerült',
104104
},
105105
inclTax: 'ÁFA (tartalmazza)',
106+
orderSummary: 'Rendelés összegzése',
106107
},
107108
trial: {
108109
ends: 'A próbaidőszak ekkor jár le: {endDate}',

clients/packages/i18n/src/locales/it.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: 'Impossibile aggiornare le postazioni',
104104
},
105105
inclTax: 'IVA (inclusa)',
106+
orderSummary: 'Riepilogo ordine',
106107
},
107108
trial: {
108109
ends: 'La prova termina il {endDate}',

clients/packages/i18n/src/locales/ko.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: '좌석 수를 업데이트하지 못했습니다',
104104
},
105105
inclTax: '부가세 (포함)',
106+
orderSummary: '주문 요약',
106107
},
107108
trial: {
108109
ends: '체험 종료일: {endDate}',

clients/packages/i18n/src/locales/nl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
updateFailed: 'Stoelen bijwerken mislukt',
104104
},
105105
inclTax: 'Btw (inbegrepen)',
106+
orderSummary: 'Besteloverzicht',
106107
},
107108
trial: {
108109
ends: 'Proefperiode eindigt op {endDate}',

0 commit comments

Comments
 (0)