Skip to content

Commit

Permalink
Solve issue where plurals weren't properly defined
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Jan 16, 2025
1 parent 16a3b73 commit 87df248
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/wicked-carpets-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/magento-open-source': patch
'@graphcommerce/misc': patch
---

Solve issue where plurals weren't properly defined
2 changes: 1 addition & 1 deletion examples/magento-graphcms/locales/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ msgstr "Dit zal al uw gegevens verwijderen, inclusief bestelgeschiedenis en opge

#. js-lingui-generated-id
msgid "{0, plural, one {<0>{addedItems}</0> has been added to your shopping cart} two {<1>{addedItems}</1> have been added to your shopping cart!} other {# products have been added to your shopping cart!}}"
msgstr "{0, plural, one {<0>{addedItems}</0> is toegevoegd aan uw winkelwagen} two {<1>{addedItems}</1> is toegevoegd aan uw winkelwagen!} other {# producten zijn toegevoegd aan uw winkelwagen!}}"
msgstr "{0, plural, one {<0>{addedItems}</0> is toegevoegd aan je winkelwagen} two {<1>{addedItems}</1> zijn toegevoegd aan je winkelwagen!} other {# producten zijn toegevoegd aan je winkelwagen!}}"

#. js-lingui-generated-id
msgid "I understand that my account will be deleted and this can not be undone."
Expand Down
2 changes: 1 addition & 1 deletion examples/magento-open-source/locales/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ msgstr "In tal modo verranno rimossi tutti i tuoi dati, inclusa la cronologia de

#. js-lingui-generated-id
msgid "{0, plural, one {<0>{addedItems}</0> has been added to your shopping cart} two {<1>{addedItems}</1> have been added to your shopping cart!} other {# products have been added to your shopping cart!}}"
msgstr "{0, plural, one {<0>{addedItems}</0> è stato aggiunto al tuo carrello} two {<1>{addedItems}</1> sono stati aggiunti al tuo carrello!} altro {# prodotti sono stati aggiunti al tuo carrello!}}"
msgstr "{0, plural, one {<0>{addedItems}</0> è stato aggiunto al tuo carrello} two {<1>{addedItems}</1> sono stati aggiunti al tuo carrello!} other {# prodotti sono stati aggiunti al tuo carrello!}}"

#. js-lingui-generated-id
msgid "I understand that my account will be deleted and this can not be undone."
Expand Down
2 changes: 1 addition & 1 deletion examples/magento-open-source/locales/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ msgstr "Dit zal al uw gegevens verwijderen, inclusief bestelgeschiedenis en opge

#. js-lingui-generated-id
msgid "{0, plural, one {<0>{addedItems}</0> has been added to your shopping cart} two {<1>{addedItems}</1> have been added to your shopping cart!} other {# products have been added to your shopping cart!}}"
msgstr "{0, plural, one {<0>{addedItems}</0> is toegevoegd aan je winkelwagen} two {<1>{addedItems}</1> zijn toegevoegd aan je winkelwagen!} andere {# producten zijn toegevoegd aan je winkelwagen!}}"
msgstr "{0, plural, one {<0>{addedItems}</0> is toegevoegd aan je winkelwagen} two {<1>{addedItems}</1> zijn toegevoegd aan je winkelwagen!} other {# producten zijn toegevoegd aan je winkelwagen!}}"

#. js-lingui-generated-id
msgid "I understand that my account will be deleted and this can not be undone."
Expand Down
4 changes: 3 additions & 1 deletion packages/next-ui/utils/sxx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import type { SxProps, Theme } from '@mui/material'
* sxx({ position: 'absolute', right: 0, top: 0 }, props.sx)
* ```
*/
export const sxx = (...sxPropsArray: (SxProps<Theme> | undefined | false)[]): SxProps<Theme> =>
export const sxx = (
...sxPropsArray: (SxProps<Theme> | undefined | null | false)[]
): SxProps<Theme> =>
sxPropsArray
.filter((v) => !!v)
.map((sx) => (Array.isArray(sx) ? sx : [sx]))
Expand Down

0 comments on commit 87df248

Please sign in to comment.