Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Paginate the products panel and confirm its removals
Damian Legawiec39bd5b9e19e2
diff --git a/CLAUDE.md b/CLAUDE.mdindex f380a7eadd..d5b8785107 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -529,6 +529,12 @@ The starter is the canonical host — the same app `spree add dashboard` scaffol**Translations.** Every user-visible string in `@spree/dashboard` goes through i18next — page titles, headings, table column labels, button labels, empty states, toast messages, confirm dialog copy, select option labels, badges, status text, tooltips, helper text. Never hardcode English (or any language) into JSX, into table column definitions, or into dropdown option arrays. Keys live in `packages/dashboard/src/locales/en.json` (app-specific copy) or `packages/dashboard-core/src/locales/en.json` (cross-cutting: `admin.common.*`, `admin.fields.<attribute>.<facet>`). Reach for `i18n.t(...)` at module load (table definitions) and `useTranslation().t(...)` inside components. **Schemas in `src/schemas/` hold canonical values only — never label strings.** Build `{ value, label }` pairs at render time inside the component by mapping the canonical value list against translation keys. When adding a new translation key, ALWAYS add it to the all languages files in `packages/dashboard/src/locales/` and `packages/dashboard-core/src/locales/`.+**Destructive actions need a confirm — unless a sheet already gates them.** Any action that destroys or detaches data and fires **straight from a click** must go through `useConfirm()` with `variant: 'destructive'` first: row-level delete/remove buttons, and every bulk action that runs immediately. Bulk actions that open a picker sheet or dialog (`BulkAction.form`, `ResourcePickerSheet`) already require an explicit submit — that IS the confirmation, so don't stack a second dialog on top. `BulkAction` takes a `confirm` option (`{n}` interpolates the count) for the immediate case.++State the count for bulk (`{{count}}`, pluralized in every locale) and the record name for a single row. **When the write is immediate but the surrounding page is a dirty-tracked form, say so** — e.g. the products panel on a category/collection persists each add/remove/reorder on click while the rest of the page waits for Save, so its confirm copy reads "This takes effect immediately." Without that, merchants reasonably assume Save-or-Discard applies.++**Nested collection panels must paginate, never cap.** A panel listing records that belong to the parent (a category's or collection's products, and anything comparable) has to page through the nested endpoint and render `<Pagination meta={meta} onPageChange={...}>`. A bare `limit: 100` silently hides the remainder on a parent with thousands of children, and "select all" then quietly means "all 100 I happened to load". Two consequences to get right: show the parent's real total from `meta.count` rather than the loaded page length, and offset drag-reorder positions by `meta.from - 1`, since the reposition endpoints want an index across the whole set rather than within the page.+**Forms.** Raw React Hook Form with `<Field>` / `<Input>` / `<FieldError>` blocks. Drive each input explicitly with `form.register(...)` or a `<Controller>` for custom widgets so the form reads top-to-bottom. Wrap RHF's `handleSubmit` with a try/catch that calls `mapSpreeErrorsToForm` (`@/lib/form-errors`) to route 422 responses onto `form.formState.errors`: flat attribute keys become field errors with `aria-invalid` + `<FieldError>`; `:base` and nested keys land on `errors.root.message` so render a destructive banner at the top of the form.```tsxdiff --git a/packages/dashboard/e2e/categories.spec.ts b/packages/dashboard/e2e/categories.spec.tsindex 8682b8c356..f7631142d4 100644--- a/packages/dashboard/e2e/categories.spec.ts+++ b/packages/dashboard/e2e/categories.spec.ts@@ -103,6 +103,12 @@ test.describe('categories management', () => {// Remove it via the per-row remove button.await productRow.getByRole('button', { name: /remove from category/i }).click()+ // Removing writes through immediately, so it confirms first. Scope to the+ // dialog — the row button matches /remove/ too.+ await page+ .getByRole('dialog')+ .getByRole('button', { name: /^remove$/i })+ .click()await expect(page.getByText(/no products in this category yet/i)).toBeVisible({timeout: 15_000,})diff --git a/packages/dashboard/e2e/collections.spec.ts b/packages/dashboard/e2e/collections.spec.tsindex 93fa2d7188..ca8f4d5c6b 100644--- a/packages/dashboard/e2e/collections.spec.ts+++ b/packages/dashboard/e2e/collections.spec.ts@@ -103,6 +103,58 @@ test.describe('collections management', () => {// Remove it via the per-row remove button.await productRow.getByRole('button', { name: /remove from collection/i }).click()+ // Removing writes through immediately, so it confirms first. Scope to the+ // dialog — the row button matches /remove/ too.+ await page+ .getByRole('dialog')+ .getByRole('button', { name: /^remove$/i })+ .click()+ await expect(page.getByText(/no products in this collection yet/i)).toBeVisible({+ timeout: 15_000,+ })+ })++ test('bulk-removes selected products behind a confirm', async ({ page }) => {+ const creds = await login(page)+ await gotoIndex(page, COLLECTIONS_PATH(creds.store_id), CTA)++ const name = `E2E Bulk Remove ${Date.now()}`+ await createCollection(page, name)++ // Curate one product so there is something to select.+ await page.getByRole('button', { name: /add products/i }).click()+ const picker = page.getByRole('dialog')+ await picker.getByRole('searchbox').fill(FIXTURE_PROMO_PRODUCT)+ const option = picker+ .getByRole('button', { name: new RegExp(FIXTURE_PROMO_PRODUCT, 'i') })+ .first()+ await expect(option).toBeVisible({ timeout: 15_000 })+ await option.click()+ await picker.getByRole('button', { name: /^add 1$/i }).click()++ const productRow = page.getByRole('row', { name: new RegExp(FIXTURE_PROMO_PRODUCT, 'i') })+ await expect(productRow).toBeVisible({ timeout: 15_000 })++ // Selecting a row swaps the "Add products" CTA for the bulk remove button.+ // Scope it to the card — once the dialog opens, its confirm button carries+ // the same accessible name.+ const card = page.locator('#root')+ await productRow.getByRole('checkbox').check()+ await card.getByRole('button', { name: /^remove$/i }).click()++ // Cancelling leaves the product in place — the bulk write is confirmed, and+ // it persists immediately rather than waiting for the page's Save.+ const dialog = page.getByRole('dialog')+ await expect(dialog.getByText(/takes effect immediately/i)).toBeVisible()+ await dialog.getByRole('button', { name: /^cancel$/i }).click()+ await expect(productRow).toBeVisible()++ // Confirming removes it.+ await card.getByRole('button', { name: /^remove$/i }).click()+ await page+ .getByRole('dialog')+ .getByRole('button', { name: /^remove$/i })+ .click()await expect(page.getByText(/no products in this collection yet/i)).toBeVisible({timeout: 15_000,})diff --git a/packages/dashboard/src/components/spree/categories/category-products-card.tsx b/packages/dashboard/src/components/spree/categories/category-products-card.tsxindex 242ad1653d..80699e7299 100644--- a/packages/dashboard/src/components/spree/categories/category-products-card.tsx+++ b/packages/dashboard/src/components/spree/categories/category-products-card.tsx@@ -29,12 +29,14 @@ import {InputGroup,InputGroupAddon,InputGroupInput,+ Pagination,Table,TableBody,TableCell,TableHead,TableHeader,TableRow,+ useConfirm,} from '@spree/dashboard-ui'import { Link, useParams } from '@tanstack/react-router'import { ImageIcon, PlusIcon, SearchIcon, Trash2Icon, XIcon } from 'lucide-react'@@ -57,10 +59,13 @@ import {*/export function CategoryProductsCard({ categoryId }: { categoryId: string }) {const { t } = useTranslation()+ const confirm = useConfirm()const { storeId } = useParams({from: '/_authenticated/$storeId/products/categories/$categoryId',})- const { data, isLoading } = useCategoryProducts(categoryId)+ const [page, setPage] = useState(1)+ const { data, isLoading } = useCategoryProducts(categoryId, page)+ const meta = data?.metaconst addProducts = useAddCategoryProducts(categoryId)const removeProduct = useRemoveCategoryProduct(categoryId)const removeProducts = useRemoveCategoryProducts(categoryId)@@ -114,7 +119,9 @@ export function CategoryProductsCard({ categoryId }: { categoryId: string }) {const previousOrder = ordersetOrder(arrayMove(order, from, to)) // optimisticreposition.mutate(- { productId: String(active.id), new_position: to },+ // `to` is an index within the current page; the endpoint wants a 0-based+ // index across the whole category. `meta.from` is 1-based.+ { productId: String(active.id), new_position: (meta?.from ?? 1) - 1 + to },{ onError: () => setOrder(previousOrder) }, // roll back if the move fails)}@@ -141,9 +148,20 @@ export function CategoryProductsCard({ categoryId }: { categoryId: string }) {})}+ // Both removals fire straight from a click with no sheet to review, so each+ // confirms first.async function handleBulkRemove() {const ids = [...selected]if (ids.length === 0) return++ const ok = await confirm({+ title: t('admin.categories.products.remove_confirm.title'),+ message: t('admin.categories.products.remove_confirm.message', { count: ids.length }),+ confirmLabel: t('admin.actions.remove'),+ variant: 'destructive',+ })+ if (!ok) return+try {await removeProducts.mutateAsync(ids)setSelected(new Set())@@ -153,6 +171,20 @@ export function CategoryProductsCard({ categoryId }: { categoryId: string }) {}}+ async function handleRemoveOne(product: Product) {+ const ok = await confirm({+ title: t('admin.categories.products.remove_confirm.title'),+ message: t('admin.categories.products.remove_confirm.message_named', {+ name: product.name ?? '',+ }),+ confirmLabel: t('admin.actions.remove'),+ variant: 'destructive',+ })+ if (!ok) return++ removeProduct.mutate(product.id)+ }+const allSelected = visibleIds.length > 0 && visibleIds.every((id) => selected.has(id))const hasSelection = selected.size > 0@@ -161,8 +193,8 @@ export function CategoryProductsCard({ categoryId }: { categoryId: string }) {<CardHeader className="flex flex-row items-center justify-between"><CardTitle>{t('admin.categories.products.title')}- {order.length > 0 && (- <span className="ml-2 font-normal text-muted-foreground text-sm">{order.length}</span>+ {(meta?.count ?? 0) > 0 && (+ <span className="ml-2 font-normal text-muted-foreground text-sm">{meta?.count}</span>)}</CardTitle>{hasSelection ? (@@ -244,7 +276,7 @@ export function CategoryProductsCard({ categoryId }: { categoryId: string }) {reorderable={!filtering}selected={selected.has(product.id)}onToggleSelected={() => toggleSelected(product.id)}- onRemove={() => removeProduct.mutate(product.id)}+ onRemove={() => handleRemoveOne(product)}/>))}</TableBody>@@ -252,6 +284,11 @@ export function CategoryProductsCard({ categoryId }: { categoryId: string }) {</Table></DndContext>)}+ {meta && (+ <div className="border-border border-t p-3">+ <Pagination meta={meta} onPageChange={setPage} />+ </div>+ )}</>)}</CardContent>diff --git a/packages/dashboard/src/components/spree/collections/collection-products-card.tsx b/packages/dashboard/src/components/spree/collections/collection-products-card.tsxindex 7f47de89c4..8f8a8b40e8 100644--- a/packages/dashboard/src/components/spree/collections/collection-products-card.tsx+++ b/packages/dashboard/src/components/spree/collections/collection-products-card.tsx@@ -30,12 +30,14 @@ import {InputGroup,InputGroupAddon,InputGroupInput,+ Pagination,Table,TableBody,TableCell,TableHead,TableHeader,TableRow,+ useConfirm,} from '@spree/dashboard-ui'import { Link, useParams } from '@tanstack/react-router'import { ImageIcon, PlusIcon, SearchIcon, Trash2Icon, XIcon } from 'lucide-react'@@ -64,10 +66,13 @@ export function CollectionProductsCard({automatic: boolean}) {const { t } = useTranslation()+ const confirm = useConfirm()const { storeId } = useParams({from: '/_authenticated/$storeId/products/collections/$collectionId',})- const { data, isLoading } = useCollectionProducts(collectionId)+ const [page, setPage] = useState(1)+ const { data, isLoading } = useCollectionProducts(collectionId, page)+ const meta = data?.metaconst addProducts = useAddCollectionProducts(collectionId)const removeProduct = useRemoveCollectionProduct(collectionId)const removeProducts = useRemoveCollectionProducts(collectionId)@@ -121,7 +126,9 @@ export function CollectionProductsCard({const previousOrder = ordersetOrder(arrayMove(order, from, to)) // optimisticreposition.mutate(- { productId: String(active.id), new_position: to },+ // `to` is an index within the current page; the endpoint wants a 0-based+ // index across the whole collection. `meta.from` is 1-based.+ { productId: String(active.id), new_position: (meta?.from ?? 1) - 1 + to },{ onError: () => setOrder(previousOrder) }, // roll back if the move fails)}@@ -148,9 +155,20 @@ export function CollectionProductsCard({})}+ // Both removals fire straight from a click with no sheet to review, so each+ // confirms first.async function handleBulkRemove() {const ids = [...selected]if (ids.length === 0) return++ const ok = await confirm({+ title: t('admin.collections.products.remove_confirm.title'),+ message: t('admin.collections.products.remove_confirm.message', { count: ids.length }),+ confirmLabel: t('admin.actions.remove'),+ variant: 'destructive',+ })+ if (!ok) return+try {await removeProducts.mutateAsync(ids)setSelected(new Set())@@ -160,6 +178,20 @@ export function CollectionProductsCard({}}+ async function handleRemoveOne(product: Product) {+ const ok = await confirm({+ title: t('admin.collections.products.remove_confirm.title'),+ message: t('admin.collections.products.remove_confirm.message_named', {+ name: product.name ?? '',+ }),+ confirmLabel: t('admin.actions.remove'),+ variant: 'destructive',+ })+ if (!ok) return++ removeProduct.mutate(product.id)+ }+const allSelected = visibleIds.length > 0 && visibleIds.every((id) => selected.has(id))const hasSelection = selected.size > 0const curatable = !automatic@@ -170,8 +202,8 @@ export function CollectionProductsCard({<div><CardTitle>{t('admin.collections.products.title')}- {order.length > 0 && (- <span className="ml-2 font-normal text-muted-foreground text-sm">{order.length}</span>+ {(meta?.count ?? 0) > 0 && (+ <span className="ml-2 font-normal text-muted-foreground text-sm">{meta?.count}</span>)}</CardTitle>{automatic && (@@ -263,7 +295,7 @@ export function CollectionProductsCard({reorderable={curatable && !filtering}selected={selected.has(product.id)}onToggleSelected={() => toggleSelected(product.id)}- onRemove={() => removeProduct.mutate(product.id)}+ onRemove={() => handleRemoveOne(product)}/>))}</TableBody>@@ -271,6 +303,11 @@ export function CollectionProductsCard({</Table></DndContext>)}+ {meta && (+ <div className="border-border border-t p-3">+ <Pagination meta={meta} onPageChange={setPage} />+ </div>+ )}</>)}</CardContent>diff --git a/packages/dashboard/src/hooks/use-categories.ts b/packages/dashboard/src/hooks/use-categories.tsindex bde4935be8..f86d8554f7 100644--- a/packages/dashboard/src/hooks/use-categories.ts+++ b/packages/dashboard/src/hooks/use-categories.ts@@ -88,12 +88,21 @@ export function useDeleteCategory() {const categoryProductsKey = (categoryId: string) => ['categories', categoryId, 'products'] as const-/** Products classified under a category, ordered by classification position. */-export function useCategoryProducts(categoryId: string | undefined) {+/**+ * One page of the products classified under a category, ordered by+ * classification position.+ *+ * Paginated rather than capped: a category can hold thousands of products, and+ * a single truncated fetch would hide the rest with no way to reach them.+ */+export function useCategoryProducts(categoryId: string | undefined, page = 1, limit = 25) {return useQuery({- queryKey: useResourceKey('categories', categoryId ?? 'noop', 'products'),- queryFn: () => adminClient.categories.products.list(categoryId as string, { limit: 100 }),+ queryKey: useResourceKey('categories', categoryId ?? 'noop', 'products', `${page}:${limit}`),+ queryFn: () => adminClient.categories.products.list(categoryId as string, { page, limit }),enabled: !!categoryId,+ // Keep the current page visible while the next one loads, so the table+ // doesn't blank out between pages.+ placeholderData: (previous) => previous,})}diff --git a/packages/dashboard/src/hooks/use-collections.ts b/packages/dashboard/src/hooks/use-collections.tsindex 008aea42e3..b9c2f6d93c 100644--- a/packages/dashboard/src/hooks/use-collections.ts+++ b/packages/dashboard/src/hooks/use-collections.ts@@ -90,15 +90,21 @@ const collectionProductsKey = (collectionId: string) =>['collections', collectionId, 'products'] as const/**- * Products in a collection, ordered by membership position. Works for- * automatic collections too — there the list is materialized from the rules- * and is read-only.+ * One page of a collection's products, ordered by membership position. Works+ * for automatic collections too — there the list is materialized from the+ * rules and is read-only.+ *+ * Paginated rather than capped: a collection can hold thousands of products,+ * and a single truncated fetch would hide the rest with no way to reach them.*/-export function useCollectionProducts(collectionId: string | undefined) {+export function useCollectionProducts(collectionId: string | undefined, page = 1, limit = 25) {return useQuery({- queryKey: useResourceKey('collections', collectionId ?? 'noop', 'products'),- queryFn: () => adminClient.collections.products.list(collectionId as string, { limit: 100 }),+ queryKey: useResourceKey('collections', collectionId ?? 'noop', 'products', `${page}:${limit}`),+ queryFn: () => adminClient.collections.products.list(collectionId as string, { page, limit }),enabled: !!collectionId,+ // Keep the current page visible while the next one loads, so the table+ // doesn't blank out between pages.+ placeholderData: (previous) => previous,})}diff --git a/packages/dashboard/src/locales/ar.json b/packages/dashboard/src/locales/ar.jsonindex da90078b3f..6aa5a47182 100644--- a/packages/dashboard/src/locales/ar.json+++ b/packages/dashboard/src/locales/ar.json@@ -154,6 +154,12 @@"picker_description": "ابحث وحدد المنتجات لإضافتها إلى هذه الفئة.","picker_title": "إضافة منتجات إلى الفئة","remove": "إزالة من الفئة",+ "remove_confirm": {+ "message_named": "إزالة «{{name}}» من هذه الفئة؟ يسري التغيير فورًا. سيبقى المنتج في الكتالوج.",+ "message_one": "إزالة {{count}} منتج من هذه الفئة؟ يسري التغيير فورًا. ستبقى المنتجات في الكتالوج.",+ "message_other": "إزالة {{count}} منتجات من هذه الفئة؟ يسري التغيير فورًا. ستبقى المنتجات في الكتالوج.",+ "title": "إزالة من الفئة"+ },"remove_selected": "إزالة","search_placeholder": "البحث عن المنتجات…","select_all": "تحديد الكل",@@ -242,6 +248,12 @@"picker_description": "ابحث واختر منتجات لإضافتها إلى هذه المجموعة.","picker_title": "إضافة منتجات إلى المجموعة","remove": "إزالة من المجموعة",+ "remove_confirm": {+ "message_named": "إزالة «{{name}}» من هذه المجموعة؟ يسري التغيير فورًا. سيبقى المنتج في الكتالوج.",+ "message_one": "إزالة {{count}} منتج من هذه المجموعة؟ يسري التغيير فورًا. ستبقى المنتجات في الكتالوج.",+ "message_other": "إزالة {{count}} منتجات من هذه المجموعة؟ يسري التغيير فورًا. ستبقى المنتجات في الكتالوج.",+ "title": "إزالة من المجموعة"+ },"remove_selected": "إزالة","search_placeholder": "ابحث عن منتجات…","select_all": "تحديد الكل",diff --git a/packages/dashboard/src/locales/de.json b/packages/dashboard/src/locales/de.jsonindex 4f4dc77f4f..6d8484aa50 100644--- a/packages/dashboard/src/locales/de.json+++ b/packages/dashboard/src/locales/de.json@@ -154,6 +154,12 @@"picker_description": "Suchen und wählen Sie Produkte für diese Kategorie aus.","picker_title": "Produkte zur Kategorie hinzufügen","remove": "Aus Kategorie entfernen",+ "remove_confirm": {+ "message_named": "„{{name}}“ aus dieser Kategorie entfernen? Die Änderung wird sofort wirksam. Das Produkt bleibt im Katalog.",+ "message_one": "{{count}} Produkt aus dieser Kategorie entfernen? Die Änderung wird sofort wirksam. Die Produkte bleiben im Katalog.",+ "message_other": "{{count}} Produkte aus dieser Kategorie entfernen? Die Änderung wird sofort wirksam. Die Produkte bleiben im Katalog.",+ "title": "Aus Kategorie entfernen"+ },"remove_selected": "Entfernen","search_placeholder": "Produkte suchen…","select_all": "Alle auswählen",@@ -242,6 +248,12 @@"picker_description": "Produkte suchen und zu dieser Kollektion hinzufügen.","picker_title": "Produkte zur Kollektion hinzufügen","remove": "Aus Kollektion entfernen",+ "remove_confirm": {+ "message_named": "„{{name}}“ aus dieser Kollektion entfernen? Die Änderung wird sofort wirksam. Das Produkt bleibt im Katalog.",+ "message_one": "{{count}} Produkt aus dieser Kollektion entfernen? Die Änderung wird sofort wirksam. Die Produkte bleiben im Katalog.",+ "message_other": "{{count}} Produkte aus dieser Kollektion entfernen? Die Änderung wird sofort wirksam. Die Produkte bleiben im Katalog.",+ "title": "Aus Kollektion entfernen"+ },"remove_selected": "Entfernen","search_placeholder": "Produkte suchen…","select_all": "Alle auswählen",diff --git a/packages/dashboard/src/locales/en.json b/packages/dashboard/src/locales/en.jsonindex 4082ea4589..59e0d04548 100644--- a/packages/dashboard/src/locales/en.json+++ b/packages/dashboard/src/locales/en.json@@ -154,6 +154,12 @@"picker_description": "Search and select products to add to this category.","picker_title": "Add products to category","remove": "Remove from category",+ "remove_confirm": {+ "message_named": "Remove \"{{name}}\" from this category? This takes effect immediately. The product stays in your catalog.",+ "message_one": "Remove {{count}} product from this category? This takes effect immediately. The products stay in your catalog.",+ "message_other": "Remove {{count}} products from this category? This takes effect immediately. The products stay in your catalog.",+ "title": "Remove from category"+ },"remove_selected": "Remove","search_placeholder": "Search products…","select_all": "Select all",@@ -242,6 +248,12 @@"picker_description": "Search and select products to add to this collection.","picker_title": "Add products to collection","remove": "Remove from collection",+ "remove_confirm": {+ "message_named": "Remove \"{{name}}\" from this collection? This takes effect immediately. The product stays in your catalog.",+ "message_one": "Remove {{count}} product from this collection? This takes effect immediately. The products stay in your catalog.",+ "message_other": "Remove {{count}} products from this collection? This takes effect immediately. The products stay in your catalog.",+ "title": "Remove from collection"+ },"remove_selected": "Remove","search_placeholder": "Search products…","select_all": "Select all",diff --git a/packages/dashboard/src/locales/fr.json b/packages/dashboard/src/locales/fr.jsonindex 1baafbba30..60e79b69cf 100644--- a/packages/dashboard/src/locales/fr.json+++ b/packages/dashboard/src/locales/fr.json@@ -154,6 +154,12 @@"picker_description": "Recherchez et sélectionnez des produits à ajouter à cette catégorie.","picker_title": "Ajouter des produits à la catégorie","remove": "Retirer de la catégorie",+ "remove_confirm": {+ "message_named": "Retirer « {{name}} » de cette catégorie ? L'effet est immédiat. Le produit reste dans votre catalogue.",+ "message_one": "Retirer {{count}} produit de cette catégorie ? L'effet est immédiat. Les produits restent dans votre catalogue.",+ "message_other": "Retirer {{count}} produits de cette catégorie ? L'effet est immédiat. Les produits restent dans votre catalogue.",+ "title": "Retirer de la catégorie"+ },"remove_selected": "Retirer","search_placeholder": "Rechercher des produits…","select_all": "Tout sélectionner",@@ -242,6 +248,12 @@"picker_description": "Recherchez et sélectionnez des produits à ajouter à cette collection.","picker_title": "Ajouter des produits à la collection","remove": "Retirer de la collection",+ "remove_confirm": {+ "message_named": "Retirer « {{name}} » de cette collection ? L'effet est immédiat. Le produit reste dans votre catalogue.",+ "message_one": "Retirer {{count}} produit de cette collection ? L'effet est immédiat. Les produits restent dans votre catalogue.",+ "message_other": "Retirer {{count}} produits de cette collection ? L'effet est immédiat. Les produits restent dans votre catalogue.",+ "title": "Retirer de la collection"+ },"remove_selected": "Retirer","search_placeholder": "Rechercher des produits…","select_all": "Tout sélectionner",diff --git a/packages/dashboard/src/locales/pl.json b/packages/dashboard/src/locales/pl.jsonindex 875e6f0b4f..564e0feba4 100644--- a/packages/dashboard/src/locales/pl.json+++ b/packages/dashboard/src/locales/pl.json@@ -156,6 +156,14 @@"picker_description": "Wyszukaj i wybierz produkty do dodania do tej kategorii.","picker_title": "Dodaj produkty do kategorii","remove": "Usuń z kategorii",+ "remove_confirm": {+ "message_few": "Usunąć {{count}} produkty z tej kategorii? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "message_many": "Usunąć {{count}} produktów z tej kategorii? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "message_named": "Usunąć „{{name}}” z tej kategorii? Zmiana zadziała natychmiast. Produkt pozostanie w katalogu.",+ "message_one": "Usunąć {{count}} produkt z tej kategorii? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "message_other": "Usunąć {{count}} produktu z tej kategorii? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "title": "Usuń z kategorii"+ },"remove_selected": "Usuń","search_placeholder": "Szukaj produktów…","select_all": "Zaznacz wszystko",@@ -244,6 +252,14 @@"picker_description": "Wyszukaj i wybierz produkty do dodania do tej kolekcji.","picker_title": "Dodaj produkty do kolekcji","remove": "Usuń z kolekcji",+ "remove_confirm": {+ "message_few": "Usunąć {{count}} produkty z tej kolekcji? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "message_many": "Usunąć {{count}} produktów z tej kolekcji? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "message_named": "Usunąć „{{name}}” z tej kolekcji? Zmiana zadziała natychmiast. Produkt pozostanie w katalogu.",+ "message_one": "Usunąć {{count}} produkt z tej kolekcji? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "message_other": "Usunąć {{count}} produktu z tej kolekcji? Zmiana zadziała natychmiast. Produkty pozostaną w katalogu.",+ "title": "Usuń z kolekcji"+ },"remove_selected": "Usuń","search_placeholder": "Szukaj produktów…","select_all": "Zaznacz wszystko",diff --git a/packages/dashboard/src/locales/zh-CN.json b/packages/dashboard/src/locales/zh-CN.jsonindex 7cb1c18fd2..477eac632c 100644--- a/packages/dashboard/src/locales/zh-CN.json+++ b/packages/dashboard/src/locales/zh-CN.json@@ -154,6 +154,12 @@"picker_description": "搜索并选择要添加到此分类的商品。","picker_title": "向分类添加商品","remove": "从分类中移除",+ "remove_confirm": {+ "message_named": "从该分类中移除“{{name}}”吗?将立即生效。商品仍保留在目录中。",+ "message_one": "从该分类中移除 {{count}} 件商品吗?将立即生效。商品仍保留在目录中。",+ "message_other": "从该分类中移除 {{count}} 件商品吗?将立即生效。商品仍保留在目录中。",+ "title": "从分类中移除"+ },"remove_selected": "移除","search_placeholder": "搜索商品…","select_all": "全选",@@ -242,6 +248,12 @@"picker_description": "搜索并选择要添加到该系列的商品。","picker_title": "向系列添加商品","remove": "从系列中移除",+ "remove_confirm": {+ "message_named": "从该系列中移除“{{name}}”吗?将立即生效。商品仍保留在目录中。",+ "message_one": "从该系列中移除 {{count}} 件商品吗?将立即生效。商品仍保留在目录中。",+ "message_other": "从该系列中移除 {{count}} 件商品吗?将立即生效。商品仍保留在目录中。",+ "title": "从系列中移除"+ },"remove_selected": "移除","search_placeholder": "搜索商品…","select_all": "全选",