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
Give the seller panel the operator's product form
Damian Legawiecd9717c61d02f
diff --git a/packages/dashboard-core/package.json b/packages/dashboard-core/package.jsonindex b58a973fde..1f922491f7 100644--- a/packages/dashboard-core/package.json+++ b/packages/dashboard-core/package.json@@ -60,6 +60,7 @@"@spree/admin-sdk": ">=0.7.0 <2","@spree/dashboard-ui": ">=0.10.0 <2","@tanstack/react-hotkeys": "^0.10.0",+ "@tanstack/react-table": "^8.21.3","@tanstack/react-query": "^5.100.9","@tanstack/react-router": "^1.169.2","i18next": "^26.2.0",diff --git a/packages/dashboard-core/src/api-client.ts b/packages/dashboard-core/src/api-client.tsindex 80d0173c8b..345351e1a0 100644--- a/packages/dashboard-core/src/api-client.ts+++ b/packages/dashboard-core/src/api-client.ts@@ -97,6 +97,111 @@ export interface PanelApiClient {update(id: string, params: PanelStockLocationParams): Promise<PanelStockLocation>delete?(id: string): Promise<void>}+ /**+ * The reference data the shared product form reads: the option types a+ * variant is built from, and the categories, collections and product types+ * a product is filed under.+ *+ * Registered for the same reason as everything above — the form is one set+ * of cards serving both panels, and reaching for `adminClient` inside them+ * would leave a seller with empty pickers. Each is optional: a panel that+ * offers no such picker simply does not register it, and the card hides.+ */+ optionTypes?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelOptionType[] }>+ /**+ * Naming a new option (Size, Colour) while building a variant matrix.+ * Operator-only: a seller names options inline on the variant instead,+ * so their client leaves these out and the builder hides.+ */+ create?(params: Record<string, unknown>): Promise<PanelOptionType>+ update?(id: string, params: Record<string, unknown>): Promise<PanelOptionType>+ }+ categories?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelNamedRecord[] }>+ }+ collections?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelCollection[] }>+ }+ productTypes?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelProductType[] }>+ get(id: string): Promise<PanelProductType>+ }+ /**+ * Marketplace configuration a seller does not write, so a seller's client+ * registers neither and the cards that read them hide.+ */+ taxCategories?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelNamedRecord[] }>+ }+ deliveryProfiles?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelDeliveryProfile[] }>+ }+ /** Removing a file already on a product. */+ deleteProductMedia?(productId: string, mediaId: string): Promise<void>+ /**+ * The store-wide media library, for placing a file already uploaded onto+ * another product. Operator-only: a seller sees their own product's files,+ * never the marketplace's library, so their client registers none and the+ * "add from library" affordance hides.+ */+ mediaLibrary?: {+ list(params?: Record<string, unknown>): Promise<{ data: PanelMediaRecord[] }>+ }+}++export interface PanelDeliveryProfile extends PanelNamedRecord {+ default?: boolean+}++/** A library file, as the picker lists it. */+export interface PanelMediaRecord {+ id: string+ alt?: string | null+ small_url?: string | null+ original_url?: string | null+}++/** Anything the form lists by name in a picker. */+export interface PanelNamedRecord {+ id: string+ name: string+}++/**+ * A rule-based collection fills itself, so the form offers only manual ones+ * to pick from.+ */+export interface PanelCollection extends PanelNamedRecord {+ automatic?: boolean+}++/**+ * An option type as the variants builder reads it. Structural, like+ * PanelStockLocation: both serializers carry the name and its values, and+ * what only one of them adds is not the form's business.+ */+export interface PanelOptionType {+ id: string+ name: string+ label: string+ kind?: string+ position?: number+ option_values?: Array<{+ id: string+ name: string+ label: string+ position?: number+ color_code?: string | null+ }>+}++export interface PanelProductType {+ id: string+ name: string+ option_type_ids?: string[]+ category_ids?: string[]+ custom_field_definitions?: unknown[]}/**diff --git a/packages/dashboard-core/src/components/store-date-picker.tsx b/packages/dashboard-core/src/components/store-date-picker.tsxindex 2b77e4064f..2425ca8bce 100644--- a/packages/dashboard-core/src/components/store-date-picker.tsx+++ b/packages/dashboard-core/src/components/store-date-picker.tsx@@ -1,5 +1,5 @@import { DatePicker, type DatePickerProps } from '@spree/dashboard-ui'-import { useStore } from '../providers/store-provider'+import { useOptionalStore } from '../providers/store-provider'/*** Drop-in `<DatePicker>` that pulls the timezone from `<StoreProvider>` so@@ -11,7 +11,11 @@ import { useStore } from '../providers/store-provider'* timezone explicitly (rare).*/function StoreDatePicker(props: Omit<DatePickerProps, 'timezone'>) {- const { timezone } = useStore()+ // Optional: a panel with no store context (a seller's) falls back to the+ // browser's zone rather than refusing to render a date field.+ const store = useOptionalStore()+ const timezone = store?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? 'UTC'+return <DatePicker {...props} timezone={timezone} />}diff --git a/packages/dashboard-core/src/index.ts b/packages/dashboard-core/src/index.tsindex fff4dfff6a..f739cd25a0 100644--- a/packages/dashboard-core/src/index.ts+++ b/packages/dashboard-core/src/index.ts@@ -99,6 +99,16 @@ export * from './pages/stock-locations'// Plugin facade — re-exported for convenience; same API as `/plugin` subpath// ---------------------------------------------------------------------------export * from './plugin'+export * from './products/currency-parts'+export * from './products/normalize-customs'+export * from './products/normalize-money'+export * from './products/product-form-cards'+export * from './products/product-form-mapping'+export * from './products/product-schema'+export * from './products/product-types'+export * from './products/use-product-form-data'+export * from './products/variants-matrix'+export * from './products/video-url'// ---------------------------------------------------------------------------// Providers — must be mounted by the consuming app shell// ---------------------------------------------------------------------------diff --git a/packages/dashboard-core/src/locales/ar.json b/packages/dashboard-core/src/locales/ar.jsonindex 27b4ca2665..1c2b909972 100644--- a/packages/dashboard-core/src/locales/ar.json+++ b/packages/dashboard-core/src/locales/ar.json@@ -583,6 +583,15 @@"alt": {"label": "النص البديل","placeholder": "صف الصورة لإمكانية الوصول و SEO"+ },+ "external_video_url": {+ "help": "الصق رابط YouTube أو Vimeo.",+ "label": "رابط الفيديو",+ "placeholder": "https://www.youtube.com/watch?v=..."+ },+ "poster": {+ "help": "الصورة الثابتة التي تظهر قبل تشغيل الفيديو. اتركها فارغة لاستخدام صورة المزود إن وُجدت.",+ "label": "صورة الغلاف"}},"meta_description": {@@ -691,6 +700,101 @@},"zipcode": {"label": "الرمز البريدي"+ },+ "product": {+ "available_on": {+ "label": "متاح في"+ },+ "category_ids": {+ "label": "الفئات"+ },+ "channels": {+ "label": "قنوات البيع"+ },+ "collection_ids": {+ "help": "يمكن تحديد المجموعات اليدوية فقط هنا؛ أما التلقائية فتتبع قواعدها.",+ "label": "المجموعات"+ },+ "delivery_profile_id": {+ "help": "يحدد المناطق وطرق التوصيل التي تصل إلى هذا المنتج.",+ "label": "ملف الشحن"+ },+ "description": {+ "label": "الوصف",+ "placeholder": "اكتب وصف المنتج…"+ },+ "discontinue_on": {+ "label": "إيقاف في"+ },+ "make_active_at": {+ "label": "تفعيل في"+ },+ "name": {+ "label": "الاسم",+ "placeholder": "اسم المنتج"+ },+ "product_type_id": {+ "help": "يحدد خيارات التسليم المتاحة عند إتمام الشراء.",+ "label": "نوع المنتج"+ },+ "seller": {+ "label": "البائع"+ },+ "tags": {+ "label": "Tags"+ }+ },+ "variant": {+ "backorder_limit": {+ "help": "الحد الأقصى لعدد الوحدات المباعة بما يتجاوز المخزون المتاح — يحدّ الطلبات المتأخرة والطلبات المسبقة. اتركه فارغًا لعدد غير محدود.",+ "label": "حد الطلبات المتأخرة",+ "placeholder": "غير محدود"+ },+ "barcode": {+ "label": "Barcode"+ },+ "country_of_origin": {+ "label": "بلد المنشأ"+ },+ "customs_description": {+ "label": "الوصف الجمركي",+ "placeholder": "وصف بسيط للبضاعة"+ },+ "depth": {+ "label": "العمق"+ },+ "dimensions_unit": {+ "label": "الوحدة"+ },+ "height": {+ "label": "الارتفاع"+ },+ "hs_code": {+ "label": "رمز النظام المنسق",+ "placeholder": "مثال: 640411"+ },+ "preorder_ships_at": {+ "help": "موعد شحنك المتوقع للطلبات المسبقة. يظهر للعملاء كوعد بالتسليم؛ وينتهي الطلب المسبق بمجرد مرور هذا التاريخ.",+ "label": "الشحن بحلول",+ "placeholder": "اختر تاريخًا"+ },+ "preorderable": {+ "help": "بِع هذا الخيار قبل توفره في المخزون. حدِّد العدد عبر حد الطلبات المتأخرة، أو أدخل المخزون الوارد ككمية، أو اتركه فارغًا لعدد غير محدود.",+ "label": "متاح للطلب المسبق"+ },+ "sku": {+ "label": "SKU",+ "placeholder": "PRODUCT-RED-S"+ },+ "weight": {+ "label": "الوزن"+ },+ "weight_unit": {+ "label": "الوحدة"+ },+ "width": {+ "label": "العرض"+ }}},"image_upload": {@@ -752,6 +856,241 @@"edit_sheet_title": "تحرير موقع المخزون","search_placeholder": "البحث عن مواقع المخزون…"}+ },+ "products": {+ "add_cta": "أضف المنتج",+ "bulk": {+ "add_categories_action": "أضف إلى الفئات…",+ "add_channels_action": "أضف إلى قنوات البيع…",+ "add_collections_action": "إضافة إلى مجموعات",+ "add_tags_action": "إضافة علامات…",+ "categories_add_description": "اختر الفئات التي تريد إضافة هذه المنتجات إليها.",+ "categories_add_failed": "فشلت إضافة المنتجات إلى الفئات",+ "categories_add_title": "أضف إلى الفئات",+ "categories_added": "تمت إضافة منتجات {n} إلى الفئات",+ "categories_remove_description": "اختر الفئات المراد إزالة هذه المنتجات منها.",+ "categories_remove_failed": "فشلت إزالة المنتجات من الفئات",+ "categories_remove_title": "إزالة من الفئات",+ "categories_removed": "تمت إزالة منتجات {n} من الفئات",+ "channels_add_description": "اختر قنوات البيع لإدراج هذه المنتجات عليها.",+ "channels_add_failed": "فشل في إدراج المنتجات على قنوات البيع",+ "channels_add_title": "أضف إلى قنوات البيع",+ "channels_added": "إدراج منتجات {n} على قنوات البيع",+ "channels_remove_description": "اختر قنوات المبيعات لإلغاء إدراج هذه المنتجات منها.",+ "channels_remove_failed": "فشل في إلغاء إدراج المنتجات من قنوات البيع",+ "channels_remove_title": "إزالة من قنوات البيع",+ "channels_removed": "منتجات {n} غير مدرجة من قنوات البيع",+ "collections_add_description": "تُضاف المنتجات المحددة إلى كل مجموعة تختارها.",+ "collections_add_failed": "تعذرت إضافة المنتجات إلى المجموعات",+ "collections_add_title": "إضافة إلى مجموعات",+ "collections_added": "تمت إضافة المنتجات إلى المجموعات",+ "collections_remove_description": "تُزال المنتجات المحددة من كل مجموعة تختارها.",+ "collections_remove_failed": "تعذرت إزالة المنتجات من المجموعات",+ "collections_remove_title": "إزالة من مجموعات",+ "collections_removed": "تمت إزالة المنتجات من المجموعات",+ "delete_confirm": {+ "message": "ستتم إزالة المنتجات المحددة. لا يمكن التراجع عن هذا الإجراء.",+ "title": "هل تريد حذف منتجات {n}؟"+ },+ "delete_failed": "فشل في حذف المنتجات",+ "deleted": "منتجات {n} المحذوفة",+ "remove_categories_action": "إزالة من الفئات…",+ "remove_channels_action": "إزالة من قنوات البيع…",+ "remove_collections_action": "إزالة من مجموعات",+ "remove_tags_action": "إزالة العلامات…",+ "set_status_action": "تعيين الحالة…",+ "status_sheet_description": "اختر الحالة المراد تطبيقها على المنتجات المحددة.",+ "status_sheet_title": "ضبط حالة المنتج",+ "status_update_failed": "فشل في تحديث حالة المنتج",+ "status_updated": "تحديث الحالة على منتجات {n}",+ "tags_add_description": "اختر أو أنشئ علامات لإضافتها إلى هذه المنتجات.",+ "tags_add_failed": "فشلت إضافة العلامات",+ "tags_add_title": "إضافة العلامات",+ "tags_added": "تمت إضافة العلامات إلى منتجات {n}",+ "tags_remove_description": "اختر العلامات لإزالتها من هذه المنتجات.",+ "tags_remove_failed": "فشلت إزالة العلامات",+ "tags_remove_title": "إزالة العلامات",+ "tags_removed": "تمت إزالة العلامات من منتجات {n}"+ },+ "clone_failed": "فشل في تكرار المنتج",+ "clone_succeeded": "المنتج مكرر",+ "delete_failed": "فشل في حذف المنتج",+ "delete_succeeded": "تم حذف المنتج",+ "edit": {+ "bulk_prices": {+ "no_variants": "أضف متغيرًا واحدًا على الأقل لبدء تعديل الأسعار."+ }+ },+ "inventory": {+ "in_stock": "{{count}} في المخزون",+ "in_stock_short": "في المخزون",+ "on_backorder": "على المؤجل",+ "out_of_stock": "إنتهى من المخزن"+ },+ "media_empty": "لا توجد وسائل الإعلام بعد.",+ "media_upload": "تحميل الوسائط",+ "new": {+ "create_failed": "فشل في إنشاء المنتج",+ "create_succeeded": "تم إنشاء المنتج",+ "description": "قم بإعداد منتجك — أضف المتغيرات والأسعار والمخزون والوسائط والحقول المخصصة",+ "preview_slug_placeholder": "your-product-slug",+ "save_label": "إنشاء المنتج",+ "title": "منتج جديد"+ },+ "options": {+ "add_value": "إضافة قيمة الخيار",+ "sheet_title_create": "إنشاء نوع الخيار",+ "sheet_title_edit": "تحرير نوع الخيار",+ "table": {+ "values": "قيم"+ },+ "values_empty": "لا توجد قيم بعد.",+ "values_section": "قيم"+ },+ "price_lists": {+ "activate": "فعل",+ "activate_confirm": {+ "message": "سيتم تطبيق \"{{name}}\" على المؤهلين custom على الفور وسيظل نشطًا حتى يتم إلغاء التنشيط يدويًا.",+ "message_with_end": "سيتم تطبيق \"{{name}}\" على المؤهلين custom على الفور وسيظل نشطًا حتى يتم إلغاء التنشيط يدويًا أو تاريخ انتهائه ({{ends_at}}).",+ "title": "تفعيل قائمة الأسعار؟"+ },+ "add_cta": "قائمة الأسعار الجديدة",+ "add_products_cta": "أضف المنتجات",+ "add_rule": "أضف القاعدة",+ "add_rule_help": "اختر نوع القاعدة لتكوينه.",+ "basics_section": "الأساسيات",+ "deactivate": "إلغاء التنشيط",+ "deactivate_confirm": {+ "message": "سيتوقف تطبيق \"{{name}}\" على custom على الفور. الطلبات الحالية لن تتأثر.",+ "title": "هل تريد إلغاء تفعيل قائمة الأسعار؟"+ },+ "delete_confirm": {+ "message": "تؤدي إزالة \"{{name}}\" إلى حذف أسعارها. لا يمكن التراجع عن هذا.",+ "title": "هل تريد حذف قائمة الأسعار؟"+ },+ "edit_prices": {+ "add_products_link": "أضف المنتجات",+ "columns": {+ "compare_at_price": "Compare-at price",+ "price": "سعر",+ "product": "منتج",+ "sku": "SKU",+ "variant": "البديل"+ },+ "compare_at_aria": "Compare-at price لـ {{label}}",+ "count_summary_one": "{{count}} السعر في {{currency}}",+ "count_summary_other": "{{count}} الأسعار في {{currency}}",+ "currency_label": "Currency",+ "dirty_summary_one": "{{count}} تغيير غير محفوظ",+ "dirty_summary_other": "{{count}} التغييرات غير المحفوظة",+ "discard_confirm": {+ "message_close_one": "لديك {{count}} سعر غير محفوظ. إغلاق سوف تجاهل ذلك.",+ "message_close_other": "لديك {{count}} أسعار غير محفوظة. سيؤدي الإغلاق إلى تجاهلهم.",+ "message_currency": "سيؤدي تبديل العملة إلى تجاهل الأسعار غير المحفوظة.",+ "title": "هل تريد تجاهل الأسعار غير المحفوظة؟"+ },+ "empty": "لا توجد منتجات في هذه القائمة حتى الآن.",+ "empty_no_base_prices": "لا توجد أسعار أساسية بعد.",+ "empty_pick_products": "اختر المنتجات من قائمة الأسعار للبدء في تحديد الأسعار.",+ "grid_aria": "أسعار متغيرة",+ "no_matches_for_filters": "لا توجد أسعار تتطابق مع الفلاتر الحالية.",+ "no_matches_for_search": "لا توجد أسعار تطابق \"{{search}}\".",+ "price_aria": "سعر {{label}}",+ "save_cta": "حفظ الأسعار",+ "save_failed": "فشل في حفظ الأسعار",+ "save_success_one": "تم الحفظ {{count}} السعر",+ "save_success_other": "تم الحفظ {{count}} الأسعار",+ "search_placeholder": "البحث حسب المنتج، SKU، أو الخيار…",+ "title": "تعديل الأسعار — {{name}}",+ "variant_default": "تقصير"+ },+ "edit_prices_cta": "تحرير الأسعار",+ "no_changes": "لا توجد تغييرات للحفظ.",+ "prices_help_one": "{{count}} تم تكوين السعر. افتح المحرر المجمع لتحديثه.",+ "prices_help_other": "{{count}} الأسعار مضبوطة. افتح المحرر المجمع لتحديثها.",+ "prices_help_zero": "اختر المنتجات أعلاه لتحديد أسعار العناصر النائبة، ثم افتح المحرر المجمع.",+ "products_empty": "لا توجد منتجات حتى الآن — أضف منتجًا لبدء تعديل الأسعار.",+ "products_empty_search": "لا توجد منتجات متطابقة",+ "products_help": "اختر المنتجات التي تنطبق عليها هذه القائمة. يتم إنشاء أسعار العناصر النائبة عند الحفظ - املأها أدناه.",+ "products_search_placeholder": "البحث عن المنتجات بالاسم…",+ "products_section": "منتجات",+ "products_selected_one": "{{count}} المنتج المحدد.",+ "products_selected_other": "{{count}} منتجات المختارة.",+ "remove_rule_confirm": {+ "message": "تتم إزالة القاعدة عند حفظ قائمة الأسعار.",+ "title": "هل تريد إزالة القاعدة؟"+ },+ "remove_selected": "إزالة المحدد",+ "rule_click_to_configure": "انقر للتكوين",+ "rule_default_description": "ضبط معلمات القاعدة.",+ "rule_name_overflow": "{{names}} +{{count}} المزيد",+ "rule_no_options": "لا تحتوي هذه القاعدة على خيارات قابلة للتكوين، فوجودها وحده يطبق القيد.",+ "rule_types_all_used": "كل نوع قاعدة متاح موجود بالفعل في هذه القائمة.",+ "rule_types_empty": "لم يتم تسجيل أي أنواع قواعد.",+ "rules_empty": "لا توجد قواعد - تنطبق هذه القائمة على كل متسوق.",+ "rules_help": "الشروط التي تقرر متى تنطبق هذه القائمة. استخدم \"الكل\" للمطالبة بكل قاعدة، و\"أي\" لأخذ المباراة الأولى.",+ "rules_section": "قواعد",+ "schedule": "جدول",+ "schedule_confirm": {+ "message": "سيتم بث \"{{name}}\" على {{starts_at}} وسيظل نشطًا حتى تاريخ انتهائه.",+ "title": "جدولة قائمة الأسعار؟"+ },+ "schedule_section": "جدول",+ "sheet_title_create": "إنشاء قائمة الأسعار",+ "sheet_title_edit": "تعديل قائمة الأسعار",+ "subtitle": "تسعير مستهدف لمجموعات العملاء أو المناطق أو شرائح الحجم.",+ "title": "Price Lists",+ "unschedule": "إلغاء الجدول الزمني",+ "unschedule_confirm": {+ "message": "لن يتم تفعيل \"{{name}}\" في الموعد المحدد له بعد الآن. ويمكنك إعادة جدولته أو تفعيله يدويًا لاحقًا.",+ "title": "قائمة الأسعار غير المجدولة؟"+ }+ },+ "publishing": {+ "caption_hidden_after": "ينزل {{date}}",+ "caption_live": "مرئي للعملاء الآن",+ "caption_not_available": "مخفي — المنتج {{product_status}}",+ "caption_scheduled": "يبدأ البث المباشر {{date}}",+ "caption_unpublished": "كانت مخفية على {{date}}",+ "caption_window": "مباشر {{start}} → {{end}}",+ "empty": "لم يتم إدراجه في أي قناة مبيعات حتى الآن.",+ "inactive_marker": "غير نشط",+ "manage_cta": "يدير",+ "manage_description": "اختر قنوات المبيعات التي تدرج هذا المنتج. قم بإيقاف تشغيل القناة لإلغاء إدراجها في كل مكان.",+ "manage_title": "إدارة قنوات البيع",+ "no_channels": "لا توجد قنوات مبيعات متاحة. قم بإنشاء واحدة في الإعدادات → قنوات المبيعات.",+ "status_hidden": "مختفي",+ "status_live": "يعيش",+ "status_not_available": "غير متوفر",+ "status_scheduled": "المقرر",+ "title": "نشر"+ },+ "section_basics": "الأساسيات",+ "section_categorization": "التصنيف",+ "section_inventory": "جرد",+ "section_media": "وسائط",+ "section_organization": "منظمة",+ "section_pricing": "التسعير",+ "section_seo": "SEO",+ "section_variants": "المتغيرات",+ "status_options": {+ "active": "نشط",+ "archived": "مؤرشف",+ "draft": "مسودة"+ },+ "transfers": {+ "description_external": "الاستلام الخارجي إلى <strong>{{destination}}</strong>.",+ "description_internal": "تم نقل المخزون من <strong>{{source}}</strong> إلى <strong>{{destination}}</strong>.",+ "edit_sheet_title": "نقل {{number}}",+ "items_empty": "لا توجد عناصر بعد.",+ "section_from": "من",+ "section_items": "أغراض",+ "section_to": "ل",+ "sheet_title": "نقل المخزون الجديد"+ },+ "variants_empty": "لا توجد متغيرات حتى الآن.",+ "variants_one": "{{count}} البديل",+ "variants_other": "{{count}} متغيرات"}},"resource_picker": {@@ -851,6 +1190,249 @@"positive_number": "يجب أن يكون {{field}} أكبر من 0","required": "{{field}} مطلوب","store_name_required": "اسم المتجر مطلوب"+ },+ "products": {+ "autocomplete": {+ "empty": "لا توجد منتجات متطابقة",+ "placeholder": "البحث عن المنتجات بالاسم…"+ },+ "category_search_placeholder": "فئات البحث…",+ "collection_search_placeholder": "ابحث عن مجموعات…",+ "columns": {+ "in_stock": "In Stock",+ "price": "سعر",+ "sku": "SKU"+ },+ "delete_confirm": "هل أنت متأكد أنك تريد حذف هذا المنتج؟",+ "delete_label": "حذف المنتج",+ "inventory": {+ "backorder_aria": "السماح بالطلب المؤجل عند {{location}}",+ "columns": {+ "backorder": "طلب متأخر",+ "location": "موقع",+ "on_hand": "في متناول اليد"+ },+ "empty_no_locations": "أضف موقع المخزون في الإعدادات لبدء تتبع المخزون.",+ "empty_no_variants": "تتم إدارة مستويات المخزون لكل موقع المخزون. أضف متغيرًا لبدء تتبع المخزون.",+ "on_hand_aria": "في متناول اليد في {{location}}",+ "unknown_location": "موقع غير معروف"+ },+ "media": {+ "add_from_library": "إضافة من المكتبة",+ "add_video": "إضافة رابط فيديو",+ "add_video_submit": "إضافة الفيديو",+ "add_video_title": "إضافة رابط فيديو",+ "assigned_variants_help": "اختر المتغيرات التي تمثلها هذه الصورة. اتركه فارغًا ليتم تطبيقه على كافة المتغيرات.",+ "assigned_variants_label": "المتغيرات المخصصة",+ "delete_confirm": "هل تريد حذف هذه الوسائط؟ لا يمكن التراجع عن هذا.",+ "drop_hint": "قم بسحب وإفلات الوسائط هنا، أو انقر للتصفح",+ "edit_title": "تحرير الوسائط",+ "file_types_hint": "صور (PNG، JPG، WebP) وفيديو (MP4، WebM، MOV)",+ "focal_point_help": "انقر على الصورة لتحديد الجزء الذي يبقى ظاهراً عند الاقتصاص.",+ "focal_point_reset": "إعادة تعيين",+ "unsupported_file": "لم تتم إضافة {{count}} ملف — الصور والفيديو فقط مدعومة.",+ "upload_failed": "فشل تحميل {{name}}: {{message}}",+ "upload_status_failed": "فشل",+ "video_preview_title": "معاينة الفيديو",+ "video_url_invalid": "أدخل رابط YouTube أو Vimeo."+ },+ "no_categories_found": "لم يتم العثور على فئات",+ "no_collections_found": "لم يتم العثور على مجموعات",+ "options": {+ "add_cta": "إضافة نوع الخيار",+ "count_one": "قيمة {{count}}",+ "count_other": "{{count}} القيم",+ "create_description": "حدد خيارًا يمكن للمتغيرات استخدامه (مثل الحجم واللون).",+ "create_label": "إنشاء نوع الخيار",+ "delete_confirm": {+ "message": "سيؤدي هذا أيضًا إلى حذف جميع قيمه. ستفقدها المتغيرات التي تستخدم هذه القيم.",+ "title": "هل تريد حذف نوع الخيار؟"+ },+ "edit_description": "تحرير نوع الخيار وقيمه.",+ "image_upload_failed": "فشل تحميل الصورة",+ "kinds": {+ "buttons": "Buttons",+ "color_swatch": "Color swatch",+ "dropdown": "Dropdown"+ },+ "value_label_placeholder": "e.g. Small",+ "value_name_placeholder": "e.g. small",+ "values_help": "اسحب القيم لإعادة ترتيبها. القيمة الأولى هي القيمة الافتراضية للمتغيرات الجديدة."+ },+ "price_lists": {+ "errors": {+ "failed_to_activate": "فشل تفعيل قائمة الأسعار",+ "failed_to_deactivate": "فشل في إلغاء تنشيط قائمة الأسعار"+ },+ "messages": {+ "activated": "تم تفعيل قائمة الأسعار",+ "created": "تم إنشاء قائمة الأسعار",+ "deactivated": "تم إلغاء تفعيل قائمة الأسعار",+ "deleted": "تم حذف قائمة الأسعار",+ "updated": "تم تحديث قائمة الأسعار"+ },+ "validation": {+ "ends_after_starts": "يجب أن يكون بعد تاريخ البدء."+ }+ },+ "product_type_adds_options_one": "يضيف هذا النوع {{options}} إلى المنتجات الجديدة.",+ "product_type_adds_options_other": "يضيف هذا النوع {{options}} إلى المنتجات الجديدة.",+ "product_type_placeholder": "بدون نوع منتج",+ "save_label": "حفظ المنتج",+ "seo": {+ "meta_description_placeholder": "SEO description",+ "meta_title_placeholder": "SEO title",+ "slug_placeholder": "product-url-handle"+ },+ "tax_category_placeholder": "Select tax category",+ "transfers": {+ "create_description": "انقل المخزون بين المواقع، أو استلم مخزونًا جديدًا من مورّد خارجي.",+ "delete_confirm": {+ "message": "سيتم عكس حركات المخزون الناتجة عن هذا النقل.",+ "title": "هل تريد حذف هذا النقل؟"+ },+ "destination_placeholder": "حدد موقع الوجهة",+ "details_card": "تفاصيل",+ "different_locations_error": "يجب أن يختلف المصدر والوجهة.",+ "external_label": "خارجي (استلام من مورّد)",+ "fields": {+ "created": "مخلوق",+ "external_receive": "استلام خارجي",+ "immutable_note": "عمليات نقل المخزون غير قابلة للتغيير بمجرد إنشائها.",+ "internal": "داخلي",+ "reference": "مرجع",+ "type": "يكتب"+ },+ "items_table": {+ "qty": "الكمية",+ "sku": "SKU",+ "variant": "البديل"+ },+ "new_cta": "نقل جديد",+ "reference_label": "مرجع",+ "reference_placeholder": "رقم أمر الشراء، فاتورة المورّد، …",+ "review_description": "قم بمراجعة النقل قبل الإنشاء. لا يمكن تغيير العناصر بعد ذلك.",+ "search_items_placeholder": "البحث بالاسم أو SKU (3+ أحرف) …"+ },+ "variants": {+ "add_option": "إضافة خيار",+ "bulk_edit": {+ "grid_aria": "جدول التحرير الجماعي للمتغيرات",+ "title": "تحرير المتغيرات جماعيًا",+ "trigger": "تحرير جماعي",+ "unset": "لا شيء"+ },+ "create_option_type": "إنشاء نوع خيار جديد",+ "create_option_type_title": "نوع خيار جديد",+ "create_value": "قيمة جديدة",+ "create_value_title": "قيمة الخيار الجديدة",+ "default_variant": "البديل الافتراضي",+ "edit_row_aria": "تحرير {{name}}",+ "edit_variant": "تعديل المتغير — {{name}}",+ "errors": {+ "failed_to_create_option_type": "فشل إنشاء نوع الخيار",+ "failed_to_create_value": "فشل إنشاء القيمة"+ },+ "keep": "احتفظ بالكل",+ "option_type_label": "نوع الخيار",+ "option_type_placeholder": "اختر نوع الخيار",+ "orphan_warning": "{{count}} ستتم إزالة المتغيرات الموجودة عند الحفظ:",+ "orphan_warning_one": "{{count}} المتغير الحالي لم يعد يطابق الخيارات المحددة وستتم إزالته عند الحفظ:",+ "orphan_warning_other": "{{count}} متغيرات الحالية لم تعد تتطابق مع الخيارات المحددة وستتم إزالتها عند الحفظ:",+ "remove_row_aria": "إزالة {{name}}",+ "sheet": {+ "availability": "التوفر",+ "customs": "الجمارك",+ "customs_help": "يُستخدم في نماذج الجمارك عند شحن هذا المنتج عبر الحدود.",+ "identity": "هوية",+ "tax_category_placeholder": "ترث من المنتج"+ },+ "title": "المتغيرات",+ "variant_label": "البديل"+ }+ },+ "product_types": {+ "add_cta": "إضافة نوع منتج",+ "add_sheet_title": "نوع منتج جديد",+ "affects_new_only": {+ "description": "تعديل أنواع الخيارات والفئات يؤثر على المنتجات التي تُنشأ من الآن فصاعدًا. المنتجات التي تحمل هذا النوع تحتفظ بما لديها. الحقول المخصصة أدناه تظهر دائمًا في كل منتج من هذا النوع.",+ "title": "التغييرات تنطبق على المنتجات الجديدة"+ },+ "apply_to_products": {+ "confirm_label": "تطبيق",+ "cta_few": "تطبيق على {{count}} منتجات حالية",+ "cta_many": "تطبيق على {{count}} منتجًا حاليًا",+ "cta_one": "تطبيق على منتج واحد حالي",+ "cta_other": "تطبيق على {{count}} منتج حالي",+ "cta_two": "تطبيق على منتجين حاليين",+ "message_few": "سيضيف هذا أنواع الخيارات والفئات الناقصة إلى {{count}} منتجات. لن يُحذف شيء.",+ "message_many": "سيضيف هذا أنواع الخيارات والفئات الناقصة إلى {{count}} منتجًا. لن يُحذف شيء.",+ "message_one": "سيضيف هذا أنواع الخيارات والفئات الناقصة إلى منتج واحد. لن يُحذف شيء.",+ "message_other": "سيضيف هذا أنواع الخيارات والفئات الناقصة إلى {{count}} منتج. لن يُحذف شيء.",+ "message_two": "سيضيف هذا أنواع الخيارات والفئات الناقصة إلى منتجين. لن يُحذف شيء.",+ "title": "تطبيق على المنتجات الحالية"+ },+ "create_description": "جمّع المنتجات وحدد طرق تسليمها.",+ "create_label": "إنشاء نوع منتج",+ "custom_delivery_profile": "مخصص",+ "default_delivery_profile": "الملف الافتراضي للمتجر",+ "delete_confirm": {+ "message": "هل أنت متأكد من حذف “{{name}}”؟ لا يمكن حذف الأنواع التي لا تزال مستخدمة من قبل منتجات.",+ "title": "حذف نوع المنتج"+ },+ "edit_description": "غيّر الاسم أو طرق تسليم منتجات هذا النوع.",+ "edit_sheet_title": "تعديل نوع المنتج",+ "empty": "لا توجد أنواع منتجات بعد",+ "messages": {+ "applied_to_products": "جارٍ التطبيق على المنتجات الحالية",+ "created": "تم إنشاء نوع المنتج",+ "deleted": "تم حذف نوع المنتج",+ "updated": "تم تحديث نوع المنتج"+ },+ "no_categories": "لا توجد فئات بعد",+ "no_option_types": "لا توجد أنواع خيارات بعد",+ "option_type_search_placeholder": "البحث في أنواع الخيارات",+ "search_placeholder": "ابحث في أنواع المنتجات"+ },+ "calculators": {+ "default_refund_amount": "Default Refund Amount",+ "default_tax": "Default Tax",+ "digital_delivery": "Digital Delivery",+ "flat_percent_item_total": "Flat Percent",+ "flat_rate": "Flat Rate",+ "flexi_rate": "Flexi Rate",+ "per_item": "Per Item",+ "percent_on_line_item": "Percent Per Line Item",+ "price_sack": "Price Sack",+ "tiered_flat_rate": "Tiered Flat Rate",+ "tiered_percent": "Tiered Percent"+ },+ "stock_levels": {+ "messages": {+ "stock_level_deleted": "تم حذف مستوى المخزون",+ "stock_updated": "تم تحديث المخزون"+ }+ },+ "option_types": {+ "columns": {+ "values": "القيم"+ },+ "kinds": {+ "buttons": "Buttons",+ "color_swatch": "Color swatch",+ "dropdown": "Dropdown"+ },+ "messages": {+ "created": "تم إنشاء نوع الخيار",+ "deleted": "تم حذف نوع الخيار",+ "updated": "تم تحديث نوع الخيار"+ },+ "table": {+ "empty": "لا توجد أنواع خيارات بعد",+ "search_placeholder": "البحث بالاسم…"+ },+ "value_count_one": "{{count}} قيمة",+ "value_count_other": "{{count}} قيم"}}}diff --git a/packages/dashboard-core/src/locales/de.json b/packages/dashboard-core/src/locales/de.jsonindex 0243bbf3ce..754393de8a 100644--- a/packages/dashboard-core/src/locales/de.json+++ b/packages/dashboard-core/src/locales/de.json@@ -583,6 +583,15 @@"alt": {"label": "Alternativtext","placeholder": "Beschreiben Sie das Bild für Barrierefreiheit und SEO"+ },+ "external_video_url": {+ "help": "Fügen Sie einen YouTube- oder Vimeo-Link ein.",+ "label": "Video-Link",+ "placeholder": "https://www.youtube.com/watch?v=..."+ },+ "poster": {+ "help": "Das Standbild, das vor dem Abspielen angezeigt wird. Leer lassen, um das Bild des Anbieters zu verwenden, sofern vorhanden.",+ "label": "Vorschaubild"}},"meta_description": {@@ -691,6 +700,101 @@},"zipcode": {"label": "Postleitzahl"+ },+ "product": {+ "available_on": {+ "label": "Verfügbar ab"+ },+ "category_ids": {+ "label": "Kategorien"+ },+ "channels": {+ "label": "Verkaufskanäle"+ },+ "collection_ids": {+ "help": "Hier lassen sich nur manuelle Kollektionen setzen; automatische folgen ihren Regeln.",+ "label": "Kollektionen"+ },+ "delivery_profile_id": {+ "help": "Bestimmt, welche Zonen und Versandarten dieses Produkt erreichen.",+ "label": "Versandprofil"+ },+ "description": {+ "label": "Beschreibung",+ "placeholder": "Schreiben Sie eine Produktbeschreibung…"+ },+ "discontinue_on": {+ "label": "Einstellen am"+ },+ "make_active_at": {+ "label": "Aktiv schalten am"+ },+ "name": {+ "label": "Name",+ "placeholder": "Produktname"+ },+ "product_type_id": {+ "help": "Bestimmt, welche Lieferoptionen im Checkout angeboten werden.",+ "label": "Produkttyp"+ },+ "seller": {+ "label": "Verkäufer"+ },+ "tags": {+ "label": "Tags"+ }+ },+ "variant": {+ "backorder_limit": {+ "help": "Maximale Anzahl an Einheiten, die über den verfügbaren Bestand hinaus verkauft werden — begrenzt Nachbestellungen und Vorbestellungen. Leer lassen für unbegrenzt.",+ "label": "Nachbestellungslimit",+ "placeholder": "Unbegrenzt"+ },+ "barcode": {+ "label": "Barcode"+ },+ "country_of_origin": {+ "label": "Ursprungsland"+ },+ "customs_description": {+ "label": "Zollbeschreibung",+ "placeholder": "Einfache Beschreibung der Ware"+ },+ "depth": {+ "label": "Tiefe"+ },+ "dimensions_unit": {+ "label": "Einheit"+ },+ "height": {+ "label": "Höhe"+ },+ "hs_code": {+ "label": "HS-Code",+ "placeholder": "z. B. 640411"+ },+ "preorder_ships_at": {+ "help": "Wann du Vorbestellungen voraussichtlich versendest. Wird Kunden als Lieferversprechen angezeigt; die Vorbestellung endet, sobald dieses Datum verstreicht.",+ "label": "Versand bis",+ "placeholder": "Datum wählen"+ },+ "preorderable": {+ "help": "Verkaufe diese Variante, bevor sie auf Lager ist. Begrenze die Menge mit dem Nachbestellungslimit, gib eingehenden Bestand als Lagerbestand ein oder lass es für unbegrenzt leer.",+ "label": "Für Vorbestellung verfügbar"+ },+ "sku": {+ "label": "SKU",+ "placeholder": "PRODUCT-RED-S"+ },+ "weight": {+ "label": "Gewicht"+ },+ "weight_unit": {+ "label": "Einheit"+ },+ "width": {+ "label": "Breite"+ }}},"image_upload": {@@ -752,6 +856,241 @@"edit_sheet_title": "Lagerstandort bearbeiten","search_placeholder": "Lagerstandorte suchen…"}+ },+ "products": {+ "add_cta": "Produkt hinzufügen",+ "bulk": {+ "add_categories_action": "Zu Kategorien hinzufügen…",+ "add_channels_action": "Zu Verkaufskanälen hinzufügen…",+ "add_collections_action": "Zu Kollektionen hinzufügen",+ "add_tags_action": "Tags hinzufügen…",+ "categories_add_description": "Wählen Sie die Kategorien, zu denen diese Produkte hinzugefügt werden sollen.",+ "categories_add_failed": "Produkte konnten nicht zu Kategorien hinzugefügt werden",+ "categories_add_title": "Zu Kategorien hinzufügen",+ "categories_added": "{n} Produkte zu Kategorien hinzugefügt",+ "categories_remove_description": "Wählen Sie die Kategorien, aus denen diese Produkte entfernt werden sollen.",+ "categories_remove_failed": "Produkte konnten nicht aus Kategorien entfernt werden",+ "categories_remove_title": "Aus Kategorien entfernen",+ "categories_removed": "{n} Produkte aus Kategorien entfernt",+ "channels_add_description": "Wählen Sie die Verkaufskanäle, auf denen diese Produkte gelistet werden sollen.",+ "channels_add_failed": "Produkte konnten nicht auf Verkaufskanälen gelistet werden",+ "channels_add_title": "Zu Verkaufskanälen hinzufügen",+ "channels_added": "{n} Produkte auf Verkaufskanälen gelistet",+ "channels_remove_description": "Wählen Sie die Verkaufskanäle, von denen diese Produkte ausgelistet werden sollen.",+ "channels_remove_failed": "Produkte konnten nicht von Verkaufskanälen ausgelistet werden",+ "channels_remove_title": "Aus Verkaufskanälen entfernen",+ "channels_removed": "{n} Produkte von Verkaufskanälen ausgelistet",+ "collections_add_description": "Die ausgewählten Produkte werden jeder gewählten Kollektion hinzugefügt.",+ "collections_add_failed": "Produkte konnten nicht hinzugefügt werden",+ "collections_add_title": "Zu Kollektionen hinzufügen",+ "collections_added": "Produkte zu den Kollektionen hinzugefügt",+ "collections_remove_description": "Die ausgewählten Produkte werden aus jeder gewählten Kollektion entfernt.",+ "collections_remove_failed": "Produkte konnten nicht entfernt werden",+ "collections_remove_title": "Aus Kollektionen entfernen",+ "collections_removed": "Produkte aus den Kollektionen entfernt",+ "delete_confirm": {+ "message": "Ausgewählte Produkte werden entfernt. Diese Aktion kann nicht rückgängig gemacht werden.",+ "title": "{n} Produkte löschen?"+ },+ "delete_failed": "Produkte konnten nicht gelöscht werden",+ "deleted": "{n} Produkte gelöscht",+ "remove_categories_action": "Aus Kategorien entfernen…",+ "remove_channels_action": "Aus Verkaufskanälen entfernen…",+ "remove_collections_action": "Aus Kollektionen entfernen",+ "remove_tags_action": "Tags entfernen…",+ "set_status_action": "Status festlegen…",+ "status_sheet_description": "Wählen Sie den Status, der auf die ausgewählten Produkte angewendet werden soll.",+ "status_sheet_title": "Produktstatus festlegen",+ "status_update_failed": "Produktstatus konnte nicht aktualisiert werden",+ "status_updated": "Status für {n} Produkte aktualisiert",+ "tags_add_description": "Wählen oder erstellen Sie Tags, die zu diesen Produkten hinzugefügt werden sollen.",+ "tags_add_failed": "Tags konnten nicht hinzugefügt werden",+ "tags_add_title": "Tags hinzufügen",+ "tags_added": "Tags zu {n} Produkten hinzugefügt",+ "tags_remove_description": "Wählen Sie Tags, die von diesen Produkten entfernt werden sollen.",+ "tags_remove_failed": "Tags konnten nicht entfernt werden",+ "tags_remove_title": "Tags entfernen",+ "tags_removed": "Tags von {n} Produkten entfernt"+ },+ "clone_failed": "Produkt konnte nicht dupliziert werden",+ "clone_succeeded": "Produkt dupliziert",+ "delete_failed": "Produkt konnte nicht gelöscht werden",+ "delete_succeeded": "Produkt gelöscht",+ "edit": {+ "bulk_prices": {+ "no_variants": "Fügen Sie mindestens eine Variante hinzu, um die Preisbearbeitung zu starten."+ }+ },+ "inventory": {+ "in_stock": "{{count}} auf Lager",+ "in_stock_short": "Auf Lager",+ "on_backorder": "Im Rückstand",+ "out_of_stock": "Nicht auf Lager"+ },+ "media_empty": "Noch keine Medien.",+ "media_upload": "Medien hochladen",+ "new": {+ "create_failed": "Produkt konnte nicht erstellt werden",+ "create_succeeded": "Produkt erstellt",+ "description": "Richten Sie Ihr Produkt ein — fügen Sie Varianten, Preise, Bestand, Medien und benutzerdefinierte Felder hinzu",+ "preview_slug_placeholder": "ihr-produkt-slug",+ "save_label": "Produkt erstellen",+ "title": "Neues Produkt"+ },+ "options": {+ "add_value": "Optionswert hinzufügen",+ "sheet_title_create": "Optionstyp erstellen",+ "sheet_title_edit": "Optionstyp bearbeiten",+ "table": {+ "values": "Werte"+ },+ "values_empty": "Noch keine Werte.",+ "values_section": "Werte"+ },+ "price_lists": {+ "activate": "Aktivieren",+ "activate_confirm": {+ "message": "\"{{name}}\" gilt ab sofort für berechtigte Kunden und bleibt aktiv, bis sie manuell deaktiviert wird.",+ "message_with_end": "\"{{name}}\" gilt ab sofort für berechtigte Kunden und bleibt aktiv, bis sie manuell deaktiviert wird oder ihr Enddatum ({{ends_at}}) erreicht ist.",+ "title": "Preisliste aktivieren?"+ },+ "add_cta": "Neue Preisliste",+ "add_products_cta": "Produkte hinzufügen",+ "add_rule": "Regel hinzufügen",+ "add_rule_help": "Wählen Sie einen Regeltyp zum Konfigurieren.",+ "basics_section": "Grunddaten",+ "deactivate": "Deaktivieren",+ "deactivate_confirm": {+ "message": "\"{{name}}\" gilt ab sofort nicht mehr für Kunden. Bestehende Bestellungen sind nicht betroffen.",+ "title": "Preisliste deaktivieren?"+ },+ "delete_confirm": {+ "message": "Beim Entfernen von \"{{name}}\" werden ihre Preise gelöscht. Dies kann nicht rückgängig gemacht werden.",+ "title": "Preisliste löschen?"+ },+ "edit_prices": {+ "add_products_link": "Produkte hinzufügen",+ "columns": {+ "compare_at_price": "Vergleichspreis",+ "price": "Preis",+ "product": "Produkt",+ "sku": "SKU",+ "variant": "Variante"+ },+ "compare_at_aria": "Vergleichspreis für {{label}}",+ "count_summary_one": "{{count}} Preis in {{currency}}",+ "count_summary_other": "{{count}} Preise in {{currency}}",+ "currency_label": "Währung",+ "dirty_summary_one": "{{count}} ungespeicherte Änderung",+ "dirty_summary_other": "{{count}} ungespeicherte Änderungen",+ "discard_confirm": {+ "message_close_one": "Sie haben {{count}} ungespeicherten Preis. Beim Schließen wird er verworfen.",+ "message_close_other": "Sie haben {{count}} ungespeicherte Preise. Beim Schließen werden sie verworfen.",+ "message_currency": "Beim Wechsel der Währung werden Ihre ungespeicherten Preise verworfen.",+ "title": "Ungespeicherte Preise verwerfen?"+ },+ "empty": "Noch keine Produkte in dieser Liste.",+ "empty_no_base_prices": "Noch keine Basispreise.",+ "empty_pick_products": "Wählen Sie Produkte auf der Preisliste aus, um mit der Preisfestlegung zu beginnen.",+ "grid_aria": "Variantenpreise",+ "no_matches_for_filters": "Keine Preise entsprechen den aktuellen Filtern.",+ "no_matches_for_search": "Keine Preise entsprechen \"{{search}}\".",+ "price_aria": "Preis für {{label}}",+ "save_cta": "Preise speichern",+ "save_failed": "Preise konnten nicht gespeichert werden",+ "save_success_one": "{{count}} Preis gespeichert",+ "save_success_other": "{{count}} Preise gespeichert",+ "search_placeholder": "Nach Produkt, SKU oder Option suchen…",+ "title": "Preise bearbeiten — {{name}}",+ "variant_default": "Standard"+ },+ "edit_prices_cta": "Preise bearbeiten",+ "no_changes": "Keine Änderungen zum Speichern.",+ "prices_help_one": "{{count}} Preis konfiguriert. Öffnen Sie den Mehrfacheditor, um ihn zu aktualisieren.",+ "prices_help_other": "{{count}} Preise konfiguriert. Öffnen Sie den Mehrfacheditor, um sie zu aktualisieren.",+ "prices_help_zero": "Wählen Sie oben Produkte aus, um Platzhalterpreise anzulegen, und öffnen Sie dann den Mehrfacheditor.",+ "products_empty": "Noch keine Produkte — fügen Sie eins hinzu, um die Preisbearbeitung zu starten.",+ "products_empty_search": "Keine passenden Produkte",+ "products_help": "Wählen Sie die Produkte, für die diese Liste gilt. Platzhalterpreise werden beim Speichern erstellt — füllen Sie sie unten aus.",+ "products_search_placeholder": "Produkte nach Namen suchen…",+ "products_section": "Produkte",+ "products_selected_one": "{{count}} Produkt ausgewählt.",+ "products_selected_other": "{{count}} Produkte ausgewählt.",+ "remove_rule_confirm": {+ "message": "Die Regel wird entfernt, wenn Sie die Preisliste speichern.",+ "title": "Regel entfernen?"+ },+ "remove_selected": "Auswahl entfernen",+ "rule_click_to_configure": "Zum Konfigurieren klicken",+ "rule_default_description": "Passen Sie die Parameter der Regel an.",+ "rule_name_overflow": "{{names}} +{{count}} weitere",+ "rule_no_options": "Diese Regel hat keine konfigurierbaren Optionen — ihre bloße Existenz wendet die Einschränkung an.",+ "rule_types_all_used": "Jeder verfügbare Regeltyp befindet sich bereits auf dieser Liste.",+ "rule_types_empty": "Keine Regeltypen registriert.",+ "rules_empty": "Keine Regeln — diese Liste gilt für jeden Käufer.",+ "rules_help": "Bedingungen, die festlegen, wann diese Liste angewendet wird. Verwenden Sie \"alle\", um jede Regel zu erfordern, \"beliebige\", um die erste Übereinstimmung zu nehmen.",+ "rules_section": "Regeln",+ "schedule": "Planen",+ "schedule_confirm": {+ "message": "\"{{name}}\" geht am {{starts_at}} live und bleibt bis zum Enddatum aktiv.",+ "title": "Preisliste planen?"+ },+ "schedule_section": "Zeitplan",+ "sheet_title_create": "Preisliste erstellen",+ "sheet_title_edit": "Preisliste bearbeiten",+ "subtitle": "Gezielte Preisgestaltung für Kundengruppen, Regionen oder Mengenstaffeln.",+ "title": "Preislisten",+ "unschedule": "Planung aufheben",+ "unschedule_confirm": {+ "message": "\"{{name}}\" wird am geplanten Datum nicht mehr aktiviert. Sie können sie später erneut planen oder manuell aktivieren.",+ "title": "Planung der Preisliste aufheben?"+ }+ },+ "publishing": {+ "caption_hidden_after": "Wird am {{date}} ausgeblendet",+ "caption_live": "Jetzt für Kunden sichtbar",+ "caption_not_available": "Ausgeblendet — Produkt ist {{product_status}}",+ "caption_scheduled": "Geht am {{date}} live",+ "caption_unpublished": "Wurde am {{date}} ausgeblendet",+ "caption_window": "Live {{start}} → {{end}}",+ "empty": "Noch auf keinem Verkaufskanal gelistet.",+ "inactive_marker": "Inaktiv",+ "manage_cta": "Verwalten",+ "manage_description": "Wählen Sie aus, welche Verkaufskanäle dieses Produkt listen. Deaktivieren Sie einen Kanal, um es überall auszulisten.",+ "manage_title": "Verkaufskanäle verwalten",+ "no_channels": "Keine Verkaufskanäle verfügbar. Erstellen Sie einen unter Einstellungen → Verkaufskanäle.",+ "status_hidden": "Ausgeblendet",+ "status_live": "Live",+ "status_not_available": "Nicht verfügbar",+ "status_scheduled": "Geplant",+ "title": "Veröffentlichung"+ },+ "section_basics": "Grunddaten",+ "section_categorization": "Kategorisierung",+ "section_inventory": "Bestand",+ "section_media": "Medien",+ "section_organization": "Organisation",+ "section_pricing": "Preisgestaltung",+ "section_seo": "SEO",+ "section_variants": "Varianten",+ "status_options": {+ "active": "Aktiv",+ "archived": "Archiviert",+ "draft": "Entwurf"+ },+ "transfers": {+ "description_external": "Externer Wareneingang in <strong>{{destination}}</strong>.",+ "description_internal": "Bestand verschoben von <strong>{{source}}</strong> nach <strong>{{destination}}</strong>.",+ "edit_sheet_title": "Übertragung {{number}}",+ "items_empty": "Noch keine Artikel.",+ "section_from": "Von",+ "section_items": "Artikel",+ "section_to": "Nach",+ "sheet_title": "Neue Bestandsübertragung"+ },+ "variants_empty": "Noch keine Varianten.",+ "variants_one": "{{count}} Variante",+ "variants_other": "{{count}} Varianten"}},"resource_picker": {@@ -851,6 +1190,244 @@"positive_number": "{{field}} muss größer als 0 sein","required": "{{field}} ist erforderlich","store_name_required": "Shopname ist erforderlich"+ },+ "products": {+ "autocomplete": {+ "empty": "Keine passenden Produkte",+ "placeholder": "Produkte nach Namen suchen…"+ },+ "category_search_placeholder": "Kategorien suchen…",+ "collection_search_placeholder": "Kollektionen suchen…",+ "columns": {+ "in_stock": "Auf Lager",+ "price": "Preis",+ "sku": "SKU"+ },+ "delete_confirm": "Möchten Sie dieses Produkt wirklich löschen?",+ "delete_label": "Produkt löschen",+ "inventory": {+ "backorder_aria": "Nachbestellung bei {{location}} zulassen",+ "columns": {+ "backorder": "Nachbestellung",+ "location": "Standort",+ "on_hand": "Verfügbar"+ },+ "empty_no_locations": "Fügen Sie in den Einstellungen einen Lagerstandort hinzu, um mit der Bestandsverfolgung zu beginnen.",+ "empty_no_variants": "Lagerbestände werden pro Lagerstandort verwaltet. Fügen Sie eine Variante hinzu, um mit der Bestandsverfolgung zu beginnen.",+ "on_hand_aria": "Verfügbar bei {{location}}",+ "unknown_location": "Unbekannter Standort"+ },+ "media": {+ "add_from_library": "Aus Bibliothek hinzufügen",+ "add_video": "Videolink hinzufügen",+ "add_video_submit": "Video hinzufügen",+ "add_video_title": "Videolink hinzufügen",+ "assigned_variants_help": "Wählen Sie die Varianten aus, die dieses Bild repräsentiert. Leer lassen, um es auf alle Varianten anzuwenden.",+ "assigned_variants_label": "Zugeordnete Varianten",+ "delete_confirm": "Dieses Medium löschen? Dies kann nicht rückgängig gemacht werden.",+ "drop_hint": "Medien hierher ziehen und ablegen oder zum Durchsuchen klicken",+ "edit_title": "Medium bearbeiten",+ "file_types_hint": "Bilder (PNG, JPG, WebP) und Videos (MP4, WebM, MOV)",+ "focal_point_help": "Klicken Sie auf das Bild, um festzulegen, was beim Zuschneiden sichtbar bleibt.",+ "focal_point_reset": "Zurücksetzen",+ "unsupported_file_one": "{{count}} Datei wurde nicht hinzugefügt — nur Bilder und Videos werden unterstützt.",+ "unsupported_file_other": "{{count}} Dateien wurden nicht hinzugefügt — nur Bilder und Videos werden unterstützt.",+ "upload_failed": "Hochladen von {{name}} fehlgeschlagen: {{message}}",+ "upload_status_failed": "Fehlgeschlagen",+ "video_preview_title": "Videovorschau",+ "video_url_invalid": "Geben Sie einen YouTube- oder Vimeo-Link ein."+ },+ "no_categories_found": "Keine Kategorien gefunden",+ "no_collections_found": "Keine Kollektionen gefunden",+ "options": {+ "add_cta": "Optionstyp hinzufügen",+ "count_one": "{{count}} Wert",+ "count_other": "{{count}} Werte",+ "create_description": "Definieren Sie eine Option, die Varianten verwenden können (z. B. Größe, Farbe).",+ "create_label": "Optionstyp erstellen",+ "delete_confirm": {+ "message": "Dadurch werden auch alle zugehörigen Werte gelöscht. Varianten, die diese Werte verwenden, verlieren sie.",+ "title": "Optionstyp löschen?"+ },+ "edit_description": "Bearbeiten Sie den Optionstyp und seine Werte.",+ "image_upload_failed": "Bild konnte nicht hochgeladen werden",+ "kinds": {+ "buttons": "Schaltflächen",+ "color_swatch": "Farbmuster",+ "dropdown": "Dropdown"+ },+ "value_label_placeholder": "z. B. Small",+ "value_name_placeholder": "z. B. small",+ "values_help": "Werte zum Neuordnen ziehen. Der erste Wert ist der Standard für neue Varianten."+ },+ "price_lists": {+ "errors": {+ "failed_to_activate": "Preisliste konnte nicht aktiviert werden",+ "failed_to_deactivate": "Preisliste konnte nicht deaktiviert werden"+ },+ "messages": {+ "activated": "Preisliste aktiviert",+ "created": "Preisliste erstellt",+ "deactivated": "Preisliste deaktiviert",+ "deleted": "Preisliste gelöscht",+ "updated": "Preisliste aktualisiert"+ },+ "validation": {+ "ends_after_starts": "Muss nach dem Startdatum liegen."+ }+ },+ "product_type_adds_options_one": "Dieser Typ fügt neuen Produkten {{options}} hinzu.",+ "product_type_adds_options_other": "Dieser Typ fügt neuen Produkten {{options}} hinzu.",+ "product_type_placeholder": "Kein Produkttyp",+ "save_label": "Produkt speichern",+ "seo": {+ "meta_description_placeholder": "SEO-Beschreibung",+ "meta_title_placeholder": "SEO-Titel",+ "slug_placeholder": "produkt-url-handle"+ },+ "tax_category_placeholder": "Steuerkategorie auswählen",+ "transfers": {+ "create_description": "Bestand zwischen Lagern bewegen oder neuen Bestand von einem externen Lieferanten annehmen.",+ "delete_confirm": {+ "message": "Durch diesen Transfer erstellte Bestandsbewegungen werden rückgängig gemacht.",+ "title": "Diesen Transfer löschen?"+ },+ "destination_placeholder": "Zielstandort auswählen",+ "details_card": "Details",+ "different_locations_error": "Quelle und Ziel müssen sich unterscheiden.",+ "external_label": "Extern (Wareneingang vom Lieferanten)",+ "fields": {+ "created": "Erstellt",+ "external_receive": "Externer Wareneingang",+ "immutable_note": "Bestandstransfers sind nach dem Erstellen unveränderlich.",+ "internal": "Intern",+ "reference": "Referenz",+ "type": "Typ"+ },+ "items_table": {+ "qty": "Anz.",+ "sku": "SKU",+ "variant": "Variante"+ },+ "new_cta": "Neuer Transfer",+ "reference_label": "Referenz",+ "reference_placeholder": "Bestellnummer, Lieferantenrechnung, …",+ "review_description": "Überprüfen Sie den Transfer vor dem Erstellen. Artikel können danach nicht mehr geändert werden.",+ "search_items_placeholder": "Nach Name oder SKU suchen (3+ Zeichen)…"+ },+ "variants": {+ "add_option": "Option hinzufügen",+ "bulk_edit": {+ "grid_aria": "Tabelle zur Massenbearbeitung der Varianten",+ "title": "Varianten massenbearbeiten",+ "trigger": "Massenbearbeitung",+ "unset": "Keine"+ },+ "create_option_type": "Neuen Optionstyp erstellen",+ "create_option_type_title": "Neuer Optionstyp",+ "create_value": "Neuer Wert",+ "create_value_title": "Neuer Optionswert",+ "default_variant": "Standardvariante",+ "edit_row_aria": "{{name}} bearbeiten",+ "edit_variant": "Variante bearbeiten — {{name}}",+ "errors": {+ "failed_to_create_option_type": "Optionstyp konnte nicht erstellt werden",+ "failed_to_create_value": "Wert konnte nicht erstellt werden"+ },+ "keep": "Alle behalten",+ "option_type_label": "Optionstyp",+ "option_type_placeholder": "Optionstyp auswählen",+ "orphan_warning": "{{count}} vorhandene Variante(n) werden beim Speichern entfernt:",+ "orphan_warning_one": "{{count}} vorhandene Variante entspricht nicht mehr den ausgewählten Optionen und wird beim Speichern entfernt:",+ "orphan_warning_other": "{{count}} vorhandene Varianten entsprechen nicht mehr den ausgewählten Optionen und werden beim Speichern entfernt:",+ "remove_row_aria": "{{name}} entfernen",+ "sheet": {+ "availability": "Verfügbarkeit",+ "customs": "Zoll",+ "customs_help": "Wird auf Zollformularen verwendet, wenn dieser Artikel eine Grenze überquert.",+ "identity": "Identität",+ "tax_category_placeholder": "Vom Produkt übernehmen"+ },+ "title": "Varianten",+ "variant_label": "Variante"+ }+ },+ "product_types": {+ "add_cta": "Produkttyp hinzufügen",+ "add_sheet_title": "Neuer Produkttyp",+ "affects_new_only": {+ "description": "Das Bearbeiten von Optionstypen und Kategorien wirkt sich auf ab jetzt erstellte Produkte aus. Produkte mit diesem Typ behalten, was sie haben. Die benutzerdefinierten Felder unten erscheinen immer bei allen Produkten dieses Typs.",+ "title": "Änderungen gelten für neue Produkte"+ },+ "apply_to_products": {+ "confirm_label": "Anwenden",+ "cta_one": "Auf {{count}} bestehendes Produkt anwenden",+ "cta_other": "Auf {{count}} bestehende Produkte anwenden",+ "message_one": "Dies fügt {{count}} Produkt die fehlenden Optionstypen und Kategorien dieses Typs hinzu. Es wird nichts entfernt.",+ "message_other": "Dies fügt {{count}} Produkten die fehlenden Optionstypen und Kategorien dieses Typs hinzu. Es wird nichts entfernt.",+ "title": "Auf bestehende Produkte anwenden"+ },+ "create_description": "Produkte gruppieren und festlegen, wie sie geliefert werden können.",+ "create_label": "Produkttyp erstellen",+ "custom_delivery_profile": "Benutzerdefiniert",+ "default_delivery_profile": "Standardprofil des Shops",+ "delete_confirm": {+ "message": "Möchten Sie „{{name}}“ wirklich löschen? Typen, die noch von Produkten verwendet werden, können nicht gelöscht werden.",+ "title": "Produkttyp löschen"+ },+ "edit_description": "Namen oder Lieferarten der Produkte dieses Typs ändern.",+ "edit_sheet_title": "Produkttyp bearbeiten",+ "empty": "Noch keine Produkttypen",+ "messages": {+ "applied_to_products": "Wird auf bestehende Produkte angewendet",+ "created": "Produkttyp erstellt",+ "deleted": "Produkttyp gelöscht",+ "updated": "Produkttyp aktualisiert"+ },+ "no_categories": "Noch keine Kategorien",+ "no_option_types": "Noch keine Optionstypen",+ "option_type_search_placeholder": "Optionstypen suchen",+ "search_placeholder": "Produkttypen durchsuchen"+ },+ "calculators": {+ "default_refund_amount": "Standard-Erstattungsbetrag",+ "default_tax": "Standardsteuer",+ "digital_delivery": "Digitale Lieferung",+ "flat_percent_item_total": "Pauschaler Prozentsatz",+ "flat_rate": "Pauschalbetrag",+ "flexi_rate": "Flexibler Tarif",+ "per_item": "Pro Artikel",+ "percent_on_line_item": "Prozentsatz pro Position",+ "price_sack": "Preisstaffel",+ "tiered_flat_rate": "Gestaffelter Pauschalbetrag",+ "tiered_percent": "Gestaffelter Prozentsatz"+ },+ "stock_levels": {+ "messages": {+ "stock_level_deleted": "Lagerbestand gelöscht",+ "stock_updated": "Bestand aktualisiert"+ }+ },+ "option_types": {+ "columns": {+ "values": "Werte"+ },+ "kinds": {+ "buttons": "Schaltflächen",+ "color_swatch": "Farbfeld",+ "dropdown": "Dropdown"+ },+ "messages": {+ "created": "Optionstyp erstellt",+ "deleted": "Optionstyp gelöscht",+ "updated": "Optionstyp aktualisiert"+ },+ "table": {+ "empty": "Noch keine Optionstypen",+ "search_placeholder": "Nach Name suchen…"+ },+ "value_count_one": "{{count}} Wert",+ "value_count_other": "{{count}} Werte"}}}diff --git a/packages/dashboard-core/src/locales/en.json b/packages/dashboard-core/src/locales/en.jsonindex 2894d7e259..ceef433e9b 100644--- a/packages/dashboard-core/src/locales/en.json+++ b/packages/dashboard-core/src/locales/en.json@@ -585,6 +585,15 @@"alt": {"label": "Alt text","placeholder": "Describe the image for accessibility and SEO"+ },+ "external_video_url": {+ "help": "Paste a YouTube or Vimeo link.",+ "label": "Video link",+ "placeholder": "https://www.youtube.com/watch?v=..."+ },+ "poster": {+ "help": "The still shown before the video plays. Leave blank to use the provider’s own image where there is one.",+ "label": "Poster image"}},"meta_description": {@@ -693,6 +702,101 @@},"zipcode": {"label": "Postal code"+ },+ "product": {+ "available_on": {+ "label": "Available on"+ },+ "category_ids": {+ "label": "Categories"+ },+ "channels": {+ "label": "Sales channels"+ },+ "collection_ids": {+ "help": "Only manual collections can be set here; automatic ones follow their rules.",+ "label": "Collections"+ },+ "delivery_profile_id": {+ "help": "Decides which zones and delivery methods reach this product.",+ "label": "Shipping profile"+ },+ "description": {+ "label": "Description",+ "placeholder": "Write a product description…"+ },+ "discontinue_on": {+ "label": "Discontinue on"+ },+ "make_active_at": {+ "label": "Make active at"+ },+ "name": {+ "label": "Name",+ "placeholder": "Product name"+ },+ "product_type_id": {+ "help": "Controls which delivery options are offered at checkout.",+ "label": "Product type"+ },+ "seller": {+ "label": "Seller"+ },+ "tags": {+ "label": "Tags"+ }+ },+ "variant": {+ "backorder_limit": {+ "help": "Maximum number of units sold beyond available stock — caps backorders and pre-orders. Leave blank for unlimited.",+ "label": "Backorder limit",+ "placeholder": "Unlimited"+ },+ "barcode": {+ "label": "Barcode"+ },+ "country_of_origin": {+ "label": "Country of origin"+ },+ "customs_description": {+ "label": "Customs description",+ "placeholder": "Plain description of the goods"+ },+ "depth": {+ "label": "Depth"+ },+ "dimensions_unit": {+ "label": "Unit"+ },+ "height": {+ "label": "Height"+ },+ "hs_code": {+ "label": "HS code",+ "placeholder": "e.g. 640411"+ },+ "preorder_ships_at": {+ "help": "When you expect to ship pre-orders. Shown to customers as the delivery promise; the pre-order ends once this date passes.",+ "label": "Ships by",+ "placeholder": "Select a date"+ },+ "preorderable": {+ "help": "Sell this variant before it's in stock. Cap how many you'll take with the backorder limit, enter incoming stock as the count, or leave it blank for unlimited.",+ "label": "Available for pre-order"+ },+ "sku": {+ "label": "SKU",+ "placeholder": "PRODUCT-RED-S"+ },+ "weight": {+ "label": "Weight"+ },+ "weight_unit": {+ "label": "Unit"+ },+ "width": {+ "label": "Width"+ }}},"image_upload": {@@ -754,6 +858,241 @@"edit_sheet_title": "Edit stock location","search_placeholder": "Search stock locations…"}+ },+ "products": {+ "add_cta": "Add product",+ "bulk": {+ "add_categories_action": "Add to categories…",+ "add_channels_action": "Add to sales channels…",+ "add_collections_action": "Add to collections",+ "add_tags_action": "Add tags…",+ "categories_add_description": "Pick the categories to add these products to.",+ "categories_add_failed": "Failed to add products to categories",+ "categories_add_title": "Add to categories",+ "categories_added": "Added {n} products to categories",+ "categories_remove_description": "Pick the categories to remove these products from.",+ "categories_remove_failed": "Failed to remove products from categories",+ "categories_remove_title": "Remove from categories",+ "categories_removed": "Removed {n} products from categories",+ "channels_add_description": "Pick the sales channels to list these products on.",+ "channels_add_failed": "Failed to list products on sales channels",+ "channels_add_title": "Add to sales channels",+ "channels_added": "Listed {n} products on sales channels",+ "channels_remove_description": "Pick the sales channels to unlist these products from.",+ "channels_remove_failed": "Failed to unlist products from sales channels",+ "channels_remove_title": "Remove from sales channels",+ "channels_removed": "Unlisted {n} products from sales channels",+ "collections_add_description": "The selected products are added to every collection you choose.",+ "collections_add_failed": "Could not add the products to the collections",+ "collections_add_title": "Add to collections",+ "collections_added": "Products added to the collections",+ "collections_remove_description": "The selected products are removed from every collection you choose.",+ "collections_remove_failed": "Could not remove the products from the collections",+ "collections_remove_title": "Remove from collections",+ "collections_removed": "Products removed from the collections",+ "delete_confirm": {+ "message": "Selected products will be removed. This action cannot be undone.",+ "title": "Delete {n} products?"+ },+ "delete_failed": "Failed to delete products",+ "deleted": "Deleted {n} products",+ "remove_categories_action": "Remove from categories…",+ "remove_channels_action": "Remove from sales channels…",+ "remove_collections_action": "Remove from collections",+ "remove_tags_action": "Remove tags…",+ "set_status_action": "Set status…",+ "status_sheet_description": "Pick the status to apply to the selected products.",+ "status_sheet_title": "Set product status",+ "status_update_failed": "Failed to update product status",+ "status_updated": "Updated status on {n} products",+ "tags_add_description": "Pick or create tags to add to these products.",+ "tags_add_failed": "Failed to add tags",+ "tags_add_title": "Add tags",+ "tags_added": "Added tags to {n} products",+ "tags_remove_description": "Pick tags to remove from these products.",+ "tags_remove_failed": "Failed to remove tags",+ "tags_remove_title": "Remove tags",+ "tags_removed": "Removed tags from {n} products"+ },+ "clone_failed": "Failed to duplicate product",+ "clone_succeeded": "Product duplicated",+ "delete_failed": "Failed to delete product",+ "delete_succeeded": "Product deleted",+ "edit": {+ "bulk_prices": {+ "no_variants": "Add at least one variant to start editing prices."+ }+ },+ "inventory": {+ "in_stock": "{{count}} in stock",+ "in_stock_short": "In stock",+ "on_backorder": "On backorder",+ "out_of_stock": "Out of stock"+ },+ "media_empty": "No media yet.",+ "media_upload": "Upload media",+ "new": {+ "create_failed": "Failed to create product",+ "create_succeeded": "Product created",+ "description": "Set up your product — add variants, prices, inventory, media, and custom fields",+ "preview_slug_placeholder": "your-product-slug",+ "save_label": "Create product",+ "title": "New product"+ },+ "options": {+ "add_value": "Add option value",+ "sheet_title_create": "Create option type",+ "sheet_title_edit": "Edit option type",+ "table": {+ "values": "Values"+ },+ "values_empty": "No values yet.",+ "values_section": "Values"+ },+ "price_lists": {+ "activate": "Activate",+ "activate_confirm": {+ "message": "\"{{name}}\" will apply to qualifying customers immediately and stay active until manually deactivated.",+ "message_with_end": "\"{{name}}\" will apply to qualifying customers immediately and stay active until manually deactivated or its end date ({{ends_at}}).",+ "title": "Activate price list?"+ },+ "add_cta": "New price list",+ "add_products_cta": "Add products",+ "add_rule": "Add rule",+ "add_rule_help": "Pick a rule type to configure.",+ "basics_section": "Basics",+ "deactivate": "Deactivate",+ "deactivate_confirm": {+ "message": "\"{{name}}\" will stop applying to customers immediately. Existing orders are unaffected.",+ "title": "Deactivate price list?"+ },+ "delete_confirm": {+ "message": "Removing \"{{name}}\" deletes its prices. This cannot be undone.",+ "title": "Delete price list?"+ },+ "edit_prices": {+ "add_products_link": "Add products",+ "columns": {+ "compare_at_price": "Compare-at price",+ "price": "Price",+ "product": "Product",+ "sku": "SKU",+ "variant": "Variant"+ },+ "compare_at_aria": "Compare-at price for {{label}}",+ "count_summary_one": "{{count}} price in {{currency}}",+ "count_summary_other": "{{count}} prices in {{currency}}",+ "currency_label": "Currency",+ "dirty_summary_one": "{{count}} unsaved change",+ "dirty_summary_other": "{{count}} unsaved changes",+ "discard_confirm": {+ "message_close_one": "You have {{count}} unsaved price. Closing will discard it.",+ "message_close_other": "You have {{count}} unsaved prices. Closing will discard them.",+ "message_currency": "Switching currency will discard your unsaved prices.",+ "title": "Discard unsaved prices?"+ },+ "empty": "No products in this list yet.",+ "empty_no_base_prices": "No base prices yet.",+ "empty_pick_products": "Pick products on the price list to start setting prices.",+ "grid_aria": "Variant prices",+ "no_matches_for_filters": "No prices match the current filters.",+ "no_matches_for_search": "No prices match \"{{search}}\".",+ "price_aria": "Price for {{label}}",+ "save_cta": "Save prices",+ "save_failed": "Failed to save prices",+ "save_success_one": "Saved {{count}} price",+ "save_success_other": "Saved {{count}} prices",+ "search_placeholder": "Search by product, SKU, or option…",+ "title": "Edit prices — {{name}}",+ "variant_default": "Default"+ },+ "edit_prices_cta": "Edit prices",+ "no_changes": "No changes to save.",+ "prices_help_one": "{{count}} price configured. Open the bulk editor to update it.",+ "prices_help_other": "{{count}} prices configured. Open the bulk editor to update them.",+ "prices_help_zero": "Pick products above to seed placeholder prices, then open the bulk editor.",+ "products_empty": "No products yet — add one to start editing prices.",+ "products_empty_search": "No products match",+ "products_help": "Pick the products this list applies to. Placeholder prices are created on save — fill them in below.",+ "products_search_placeholder": "Search products by name…",+ "products_section": "Products",+ "products_selected_one": "{{count}} product selected.",+ "products_selected_other": "{{count}} products selected.",+ "remove_rule_confirm": {+ "message": "The rule is removed when you save the price list.",+ "title": "Remove rule?"+ },+ "remove_selected": "Remove selected",+ "rule_click_to_configure": "Click to configure",+ "rule_default_description": "Tune the rule's parameters.",+ "rule_name_overflow": "{{names}} +{{count}} more",+ "rule_no_options": "This rule has no configurable options — its presence alone applies the constraint.",+ "rule_types_all_used": "Every available rule type is already on this list.",+ "rule_types_empty": "No rule types registered.",+ "rules_empty": "No rules — this list applies to every shopper.",+ "rules_help": "Conditions that decide when this list applies. Use \"all\" to require every rule, \"any\" to take the first match.",+ "rules_section": "Rules",+ "schedule": "Schedule",+ "schedule_confirm": {+ "message": "\"{{name}}\" will go live on {{starts_at}} and stay active until its end date.",+ "title": "Schedule price list?"+ },+ "schedule_section": "Schedule",+ "sheet_title_create": "Create price list",+ "sheet_title_edit": "Edit price list",+ "subtitle": "Targeted pricing for customer groups, regions, or volume tiers.",+ "title": "Price Lists",+ "unschedule": "Unschedule",+ "unschedule_confirm": {+ "message": "\"{{name}}\" will no longer activate on its scheduled date. You can re-schedule or activate it manually later.",+ "title": "Unschedule price list?"+ }+ },+ "publishing": {+ "caption_hidden_after": "Comes down {{date}}",+ "caption_live": "Visible to customers now",+ "caption_not_available": "Hidden — product is {{product_status}}",+ "caption_scheduled": "Goes live {{date}}",+ "caption_unpublished": "Was hidden on {{date}}",+ "caption_window": "Live {{start}} → {{end}}",+ "empty": "Not listed on any sales channel yet.",+ "inactive_marker": "Inactive",+ "manage_cta": "Manage",+ "manage_description": "Pick which sales channels list this product. Toggle a channel off to unlist it everywhere.",+ "manage_title": "Manage sales channels",+ "no_channels": "No sales channels available. Create one in Settings → Sales channels.",+ "status_hidden": "Hidden",+ "status_live": "Live",+ "status_not_available": "Not available",+ "status_scheduled": "Scheduled",+ "title": "Publishing"+ },+ "section_basics": "Basics",+ "section_categorization": "Categorization",+ "section_inventory": "Inventory",+ "section_media": "Media",+ "section_organization": "Organization",+ "section_pricing": "Pricing",+ "section_seo": "SEO",+ "section_variants": "Variants",+ "status_options": {+ "active": "Active",+ "archived": "Archived",+ "draft": "Draft"+ },+ "transfers": {+ "description_external": "External receive into <strong>{{destination}}</strong>.",+ "description_internal": "Inventory moved from <strong>{{source}}</strong> to <strong>{{destination}}</strong>.",+ "edit_sheet_title": "Transfer {{number}}",+ "items_empty": "No items yet.",+ "section_from": "From",+ "section_items": "Items",+ "section_to": "To",+ "sheet_title": "New stock transfer"+ },+ "variants_empty": "No variants yet.",+ "variants_one": "{{count}} variant",+ "variants_other": "{{count}} variants"}},"resource_picker": {@@ -853,6 +1192,244 @@"positive_number": "{{field}} must be greater than 0","required": "{{field}} is required","store_name_required": "Store name is required"+ },+ "products": {+ "autocomplete": {+ "empty": "No products match",+ "placeholder": "Search products by name…"+ },+ "category_search_placeholder": "Search categories…",+ "collection_search_placeholder": "Search collections…",+ "columns": {+ "in_stock": "In Stock",+ "price": "Price",+ "sku": "SKU"+ },+ "delete_confirm": "Are you sure you want to delete this product?",+ "delete_label": "Delete product",+ "inventory": {+ "backorder_aria": "Allow backorder at {{location}}",+ "columns": {+ "backorder": "Backorder",+ "location": "Location",+ "on_hand": "On hand"+ },+ "empty_no_locations": "Add a stock location in Settings to start tracking inventory.",+ "empty_no_variants": "Stock levels are managed per stock location. Add a variant to start tracking inventory.",+ "on_hand_aria": "On hand at {{location}}",+ "unknown_location": "Unknown location"+ },+ "media": {+ "add_from_library": "Add from library",+ "add_video": "Add video link",+ "add_video_submit": "Add video",+ "add_video_title": "Add a video link",+ "assigned_variants_help": "Pick the variants this image represents. Leave blank to apply to all variants.",+ "assigned_variants_label": "Assigned variants",+ "delete_confirm": "Delete this media? This cannot be undone.",+ "drop_hint": "Drag & drop media here, or click to browse",+ "edit_title": "Edit media",+ "file_types_hint": "Images (PNG, JPG, WebP) and video (MP4, WebM, MOV)",+ "focal_point_help": "Click the image to set what stays in frame when it is cropped.",+ "focal_point_reset": "Reset",+ "unsupported_file_one": "{{count}} file was not added — only images and video are supported.",+ "unsupported_file_other": "{{count}} files were not added — only images and video are supported.",+ "upload_failed": "Failed to upload {{name}}: {{message}}",+ "upload_status_failed": "Failed",+ "video_preview_title": "Video preview",+ "video_url_invalid": "Enter a YouTube or Vimeo link."+ },+ "no_categories_found": "No categories found",+ "no_collections_found": "No collections found",+ "options": {+ "add_cta": "Add option type",+ "count_one": "{{count}} value",+ "count_other": "{{count}} values",+ "create_description": "Define an option that variants can use (e.g. size, color).",+ "create_label": "Create option type",+ "delete_confirm": {+ "message": "This will also delete all of its values. Variants using these values will lose them.",+ "title": "Delete option type?"+ },+ "edit_description": "Edit the option type and its values.",+ "image_upload_failed": "Failed to upload image",+ "kinds": {+ "buttons": "Buttons",+ "color_swatch": "Color swatch",+ "dropdown": "Dropdown"+ },+ "value_label_placeholder": "e.g. Small",+ "value_name_placeholder": "e.g. small",+ "values_help": "Drag values to reorder. The first value is the default for new variants."+ },+ "price_lists": {+ "errors": {+ "failed_to_activate": "Failed to activate price list",+ "failed_to_deactivate": "Failed to deactivate price list"+ },+ "messages": {+ "activated": "Price list activated",+ "created": "Price list created",+ "deactivated": "Price list deactivated",+ "deleted": "Price list deleted",+ "updated": "Price list updated"+ },+ "validation": {+ "ends_after_starts": "Must be after start date."+ }+ },+ "product_type_adds_options_one": "This type adds {{options}} to new products.",+ "product_type_adds_options_other": "This type adds {{options}} to new products.",+ "product_type_placeholder": "No product type",+ "save_label": "Save product",+ "seo": {+ "meta_description_placeholder": "SEO description",+ "meta_title_placeholder": "SEO title",+ "slug_placeholder": "product-url-handle"+ },+ "tax_category_placeholder": "Select tax category",+ "transfers": {+ "create_description": "Move stock between locations, or receive new stock from an external supplier.",+ "delete_confirm": {+ "message": "Stock movements created by this transfer will be reversed.",+ "title": "Delete this transfer?"+ },+ "destination_placeholder": "Select destination location",+ "details_card": "Details",+ "different_locations_error": "Source and destination must differ.",+ "external_label": "External (supplier receive)",+ "fields": {+ "created": "Created",+ "external_receive": "External receive",+ "immutable_note": "Stock transfers are immutable once created.",+ "internal": "Internal",+ "reference": "Reference",+ "type": "Type"+ },+ "items_table": {+ "qty": "Qty",+ "sku": "SKU",+ "variant": "Variant"+ },+ "new_cta": "New transfer",+ "reference_label": "Reference",+ "reference_placeholder": "PO number, supplier invoice, …",+ "review_description": "Review the transfer before creating. Items can't be changed afterwards.",+ "search_items_placeholder": "Search by name or SKU (3+ chars)…"+ },+ "variants": {+ "add_option": "Add option",+ "bulk_edit": {+ "grid_aria": "Variant bulk edit spreadsheet",+ "title": "Bulk edit variants",+ "trigger": "Bulk edit",+ "unset": "None"+ },+ "create_option_type": "Create new option type",+ "create_option_type_title": "New option type",+ "create_value": "New value",+ "create_value_title": "New option value",+ "default_variant": "Default variant",+ "edit_row_aria": "Edit {{name}}",+ "edit_variant": "Edit variant — {{name}}",+ "errors": {+ "failed_to_create_option_type": "Failed to create option type",+ "failed_to_create_value": "Failed to create value"+ },+ "keep": "Keep all",+ "option_type_label": "Option type",+ "option_type_placeholder": "Pick an option type",+ "orphan_warning": "{{count}} existing variant(s) will be removed on save:",+ "orphan_warning_one": "{{count}} existing variant no longer matches the selected options and will be removed on save:",+ "orphan_warning_other": "{{count}} existing variants no longer match the selected options and will be removed on save:",+ "remove_row_aria": "Remove {{name}}",+ "sheet": {+ "availability": "Availability",+ "customs": "Customs",+ "customs_help": "Used on customs forms when this item ships across a border.",+ "identity": "Identity",+ "tax_category_placeholder": "Inherit from product"+ },+ "title": "Variants",+ "variant_label": "Variant"+ }+ },+ "product_types": {+ "add_cta": "Add product type",+ "add_sheet_title": "New product type",+ "affects_new_only": {+ "description": "Editing option types and categories shapes products created from now on. Products that already have this type keep what they have. The custom fields below always show on every product of this type.",+ "title": "Changes apply to new products"+ },+ "apply_to_products": {+ "confirm_label": "Apply",+ "cta_one": "Apply to {{count}} existing product",+ "cta_other": "Apply to {{count}} existing products",+ "message_one": "This adds this type’s missing option types and categories to {{count}} product. Nothing is removed.",+ "message_other": "This adds this type’s missing option types and categories to {{count}} products. Nothing is removed.",+ "title": "Apply to existing products"+ },+ "create_description": "Group products and define how they can be delivered.",+ "create_label": "Create product type",+ "custom_delivery_profile": "Custom",+ "default_delivery_profile": "Store default profile",+ "delete_confirm": {+ "message": "Are you sure you want to delete “{{name}}”? Types still used by products cannot be deleted.",+ "title": "Delete product type"+ },+ "edit_description": "Change the name or the ways products of this type are delivered.",+ "edit_sheet_title": "Edit product type",+ "empty": "No product types yet",+ "messages": {+ "applied_to_products": "Applying to existing products",+ "created": "Product type created",+ "deleted": "Product type deleted",+ "updated": "Product type updated"+ },+ "no_categories": "No categories yet",+ "no_option_types": "No option types yet",+ "option_type_search_placeholder": "Search option types",+ "search_placeholder": "Search product types"+ },+ "calculators": {+ "default_refund_amount": "Default Refund Amount",+ "default_tax": "Default Tax",+ "digital_delivery": "Digital Delivery",+ "flat_percent_item_total": "Flat Percent",+ "flat_rate": "Flat Rate",+ "flexi_rate": "Flexi Rate",+ "per_item": "Per Item",+ "percent_on_line_item": "Percent Per Line Item",+ "price_sack": "Price Sack",+ "tiered_flat_rate": "Tiered Flat Rate",+ "tiered_percent": "Tiered Percent"+ },+ "stock_levels": {+ "messages": {+ "stock_level_deleted": "Stock level deleted",+ "stock_updated": "Stock updated"+ }+ },+ "option_types": {+ "columns": {+ "values": "Values"+ },+ "kinds": {+ "buttons": "Buttons",+ "color_swatch": "Color swatch",+ "dropdown": "Dropdown"+ },+ "messages": {+ "created": "Option type created",+ "deleted": "Option type deleted",+ "updated": "Option type updated"+ },+ "table": {+ "empty": "No option types yet",+ "search_placeholder": "Search by name…"+ },+ "value_count_one": "{{count}} value",+ "value_count_other": "{{count}} values"}}}diff --git a/packages/dashboard-core/src/locales/fr.json b/packages/dashboard-core/src/locales/fr.jsonindex 17a642e76b..f4fcff0e50 100644--- a/packages/dashboard-core/src/locales/fr.json+++ b/packages/dashboard-core/src/locales/fr.json@@ -583,6 +583,15 @@"alt": {"label": "Texte alternatif","placeholder": "Décrivez l'image pour l'accessibilité et le SEO"+ },+ "external_video_url": {+ "help": "Collez un lien YouTube ou Vimeo.",+ "label": "Lien vidéo",+ "placeholder": "https://www.youtube.com/watch?v=..."+ },+ "poster": {+ "help": "L'image fixe affichée avant la lecture. Laissez vide pour utiliser celle du fournisseur, si elle existe.",+ "label": "Image de couverture"}},"meta_description": {@@ -691,6 +700,101 @@},"zipcode": {"label": "Code postal"+ },+ "product": {+ "available_on": {+ "label": "Disponible le"+ },+ "category_ids": {+ "label": "Catégories"+ },+ "channels": {+ "label": "Canaux de vente"+ },+ "collection_ids": {+ "help": "Seules les collections manuelles se définissent ici ; les automatiques suivent leurs règles.",+ "label": "Collections"+ },+ "delivery_profile_id": {+ "help": "Détermine les zones et méthodes de livraison qui atteignent ce produit.",+ "label": "Profil d’expédition"+ },+ "description": {+ "label": "Description",+ "placeholder": "Rédigez une description du produit…"+ },+ "discontinue_on": {+ "label": "Arrêter le"+ },+ "make_active_at": {+ "label": "Activer le"+ },+ "name": {+ "label": "Nom",+ "placeholder": "Nom du produit"+ },+ "product_type_id": {+ "help": "Détermine les options de livraison proposées au paiement.",+ "label": "Type de produit"+ },+ "seller": {+ "label": "Vendeur"+ },+ "tags": {+ "label": "Étiquettes"+ }+ },+ "variant": {+ "backorder_limit": {+ "help": "Nombre maximum d'unités vendues au-delà du stock disponible — plafonne les réassorts et les précommandes. Laissez vide pour illimité.",+ "label": "Limite de réassort",+ "placeholder": "Illimité"+ },+ "barcode": {+ "label": "Code-barres"+ },+ "country_of_origin": {+ "label": "Pays d'origine"+ },+ "customs_description": {+ "label": "Description douanière",+ "placeholder": "Description simple de la marchandise"+ },+ "depth": {+ "label": "Profondeur"+ },+ "dimensions_unit": {+ "label": "Unité"+ },+ "height": {+ "label": "Hauteur"+ },+ "hs_code": {+ "label": "Code SH",+ "placeholder": "ex. 640411"+ },+ "preorder_ships_at": {+ "help": "Date à laquelle vous prévoyez d'expédier les précommandes. Affichée aux clients comme promesse de livraison ; la précommande se termine une fois cette date passée.",+ "label": "Expédié avant le",+ "placeholder": "Choisir une date"+ },+ "preorderable": {+ "help": "Vendez cette variante avant qu'elle soit en stock. Plafonnez les quantités avec la limite de réassort, saisissez le stock à recevoir comme quantité, ou laissez vide pour un nombre illimité.",+ "label": "Disponible en précommande"+ },+ "sku": {+ "label": "SKU",+ "placeholder": "PRODUIT-ROUGE-S"+ },+ "weight": {+ "label": "Poids"+ },+ "weight_unit": {+ "label": "Unité"+ },+ "width": {+ "label": "Largeur"+ }}},"image_upload": {@@ -752,6 +856,241 @@"edit_sheet_title": "Modifier l'emplacement de stock","search_placeholder": "Rechercher des emplacements de stock…"}+ },+ "products": {+ "add_cta": "Ajouter un produit",+ "bulk": {+ "add_categories_action": "Ajouter aux catégories…",+ "add_channels_action": "Ajouter aux canaux de vente…",+ "add_collections_action": "Ajouter à des collections",+ "add_tags_action": "Ajouter des étiquettes…",+ "categories_add_description": "Choisissez les catégories auxquelles ajouter ces produits.",+ "categories_add_failed": "Échec de l'ajout des produits aux catégories",+ "categories_add_title": "Ajouter aux catégories",+ "categories_added": "{n} produits ajoutés aux catégories",+ "categories_remove_description": "Choisissez les catégories desquelles retirer ces produits.",+ "categories_remove_failed": "Échec du retrait des produits des catégories",+ "categories_remove_title": "Retirer des catégories",+ "categories_removed": "{n} produits retirés des catégories",+ "channels_add_description": "Choisissez les canaux de vente sur lesquels répertorier ces produits.",+ "channels_add_failed": "Échec du référencement des produits sur les canaux de vente",+ "channels_add_title": "Ajouter aux canaux de vente",+ "channels_added": "{n} produits répertoriés sur les canaux de vente",+ "channels_remove_description": "Choisissez les canaux de vente desquels retirer ces produits.",+ "channels_remove_failed": "Échec du retrait des produits des canaux de vente",+ "channels_remove_title": "Retirer des canaux de vente",+ "channels_removed": "{n} produits retirés des canaux de vente",+ "collections_add_description": "Les produits sélectionnés sont ajoutés à chaque collection choisie.",+ "collections_add_failed": "Impossible d'ajouter les produits aux collections",+ "collections_add_title": "Ajouter à des collections",+ "collections_added": "Produits ajoutés aux collections",+ "collections_remove_description": "Les produits sélectionnés sont retirés de chaque collection choisie.",+ "collections_remove_failed": "Impossible de retirer les produits des collections",+ "collections_remove_title": "Retirer de collections",+ "collections_removed": "Produits retirés des collections",+ "delete_confirm": {+ "message": "Les produits sélectionnés seront supprimés. Cette action est irréversible.",+ "title": "Supprimer {n} produits ?"+ },+ "delete_failed": "Échec de la suppression des produits",+ "deleted": "{n} produits supprimés",+ "remove_categories_action": "Retirer des catégories…",+ "remove_channels_action": "Retirer des canaux de vente…",+ "remove_collections_action": "Retirer de collections",+ "remove_tags_action": "Retirer des étiquettes…",+ "set_status_action": "Définir le statut…",+ "status_sheet_description": "Choisissez le statut à appliquer aux produits sélectionnés.",+ "status_sheet_title": "Définir le statut du produit",+ "status_update_failed": "Échec de la mise à jour du statut du produit",+ "status_updated": "Statut mis à jour sur {n} produits",+ "tags_add_description": "Choisissez ou créez des étiquettes à ajouter à ces produits.",+ "tags_add_failed": "Échec de l'ajout des étiquettes",+ "tags_add_title": "Ajouter des étiquettes",+ "tags_added": "Étiquettes ajoutées à {n} produits",+ "tags_remove_description": "Choisissez les étiquettes à retirer de ces produits.",+ "tags_remove_failed": "Échec du retrait des étiquettes",+ "tags_remove_title": "Retirer des étiquettes",+ "tags_removed": "Étiquettes retirées de {n} produits"+ },+ "clone_failed": "Échec de la duplication du produit",+ "clone_succeeded": "Produit dupliqué",+ "delete_failed": "Échec de la suppression du produit",+ "delete_succeeded": "Produit supprimé",+ "edit": {+ "bulk_prices": {+ "no_variants": "Ajoutez au moins une variante pour commencer à modifier les prix."+ }+ },+ "inventory": {+ "in_stock": "{{count}} en stock",+ "in_stock_short": "En stock",+ "on_backorder": "En réapprovisionnement",+ "out_of_stock": "En rupture de stock"+ },+ "media_empty": "Aucun média pour le moment.",+ "media_upload": "Téléverser un média",+ "new": {+ "create_failed": "Échec de la création du produit",+ "create_succeeded": "Produit créé",+ "description": "Configurez votre produit — ajoutez des variantes, des prix, des stocks, des médias et des champs personnalisés",+ "preview_slug_placeholder": "slug-de-votre-produit",+ "save_label": "Créer le produit",+ "title": "Nouveau produit"+ },+ "options": {+ "add_value": "Ajouter une valeur d'option",+ "sheet_title_create": "Créer un type d'option",+ "sheet_title_edit": "Modifier le type d'option",+ "table": {+ "values": "Valeurs"+ },+ "values_empty": "Aucune valeur pour le moment.",+ "values_section": "Valeurs"+ },+ "price_lists": {+ "activate": "Activer",+ "activate_confirm": {+ "message": "« {{name}} » s'appliquera immédiatement aux clients éligibles et restera active jusqu'à sa désactivation manuelle.",+ "message_with_end": "« {{name}} » s'appliquera immédiatement aux clients éligibles et restera active jusqu'à sa désactivation manuelle ou sa date de fin ({{ends_at}}).",+ "title": "Activer la liste de prix ?"+ },+ "add_cta": "Nouvelle liste de prix",+ "add_products_cta": "Ajouter des produits",+ "add_rule": "Ajouter une règle",+ "add_rule_help": "Choisissez un type de règle à configurer.",+ "basics_section": "Informations de base",+ "deactivate": "Désactiver",+ "deactivate_confirm": {+ "message": "« {{name}} » cessera immédiatement de s'appliquer aux clients. Les commandes existantes ne sont pas affectées.",+ "title": "Désactiver la liste de prix ?"+ },+ "delete_confirm": {+ "message": "Supprimer « {{name}} » supprime ses prix. Cette action est irréversible.",+ "title": "Supprimer la liste de prix ?"+ },+ "edit_prices": {+ "add_products_link": "Ajouter des produits",+ "columns": {+ "compare_at_price": "Prix de comparaison",+ "price": "Prix",+ "product": "Produit",+ "sku": "SKU",+ "variant": "Variante"+ },+ "compare_at_aria": "Prix de comparaison pour {{label}}",+ "count_summary_one": "{{count}} prix en {{currency}}",+ "count_summary_other": "{{count}} prix en {{currency}}",+ "currency_label": "Devise",+ "dirty_summary_one": "{{count}} modification non enregistrée",+ "dirty_summary_other": "{{count}} modifications non enregistrées",+ "discard_confirm": {+ "message_close_one": "Vous avez {{count}} prix non enregistré. La fermeture l'abandonnera.",+ "message_close_other": "Vous avez {{count}} prix non enregistrés. La fermeture les abandonnera.",+ "message_currency": "Changer de devise abandonnera vos prix non enregistrés.",+ "title": "Abandonner les prix non enregistrés ?"+ },+ "empty": "Aucun produit dans cette liste pour le moment.",+ "empty_no_base_prices": "Aucun prix de base pour le moment.",+ "empty_pick_products": "Choisissez des produits dans la liste de prix pour commencer à définir les prix.",+ "grid_aria": "Prix des variantes",+ "no_matches_for_filters": "Aucun prix ne correspond aux filtres actuels.",+ "no_matches_for_search": "Aucun prix ne correspond à « {{search}} ».",+ "price_aria": "Prix pour {{label}}",+ "save_cta": "Enregistrer les prix",+ "save_failed": "Échec de l'enregistrement des prix",+ "save_success_one": "{{count}} prix enregistré",+ "save_success_other": "{{count}} prix enregistrés",+ "search_placeholder": "Rechercher par produit, SKU ou option…",+ "title": "Modifier les prix — {{name}}",+ "variant_default": "Par défaut"+ },+ "edit_prices_cta": "Modifier les prix",+ "no_changes": "Aucune modification à enregistrer.",+ "prices_help_one": "{{count}} prix configuré. Ouvrez l'éditeur groupé pour le mettre à jour.",+ "prices_help_other": "{{count}} prix configurés. Ouvrez l'éditeur groupé pour les mettre à jour.",+ "prices_help_zero": "Choisissez les produits ci-dessus pour générer des prix indicatifs, puis ouvrez l'éditeur groupé.",+ "products_empty": "Aucun produit pour le moment — ajoutez-en un pour commencer à modifier les prix.",+ "products_empty_search": "Aucun produit ne correspond",+ "products_help": "Choisissez les produits auxquels cette liste s'applique. Des prix indicatifs sont créés à l'enregistrement — renseignez-les ci-dessous.",+ "products_search_placeholder": "Rechercher des produits par nom…",+ "products_section": "Produits",+ "products_selected_one": "{{count}} produit sélectionné.",+ "products_selected_other": "{{count}} produits sélectionnés.",+ "remove_rule_confirm": {+ "message": "La règle est supprimée lorsque vous enregistrez la liste de prix.",+ "title": "Retirer la règle ?"+ },+ "remove_selected": "Retirer la sélection",+ "rule_click_to_configure": "Cliquez pour configurer",+ "rule_default_description": "Ajustez les paramètres de la règle.",+ "rule_name_overflow": "{{names}} +{{count}} de plus",+ "rule_no_options": "Cette règle n'a aucune option configurable — sa seule présence applique la contrainte.",+ "rule_types_all_used": "Tous les types de règles disponibles sont déjà sur cette liste.",+ "rule_types_empty": "Aucun type de règle enregistré.",+ "rules_empty": "Aucune règle — cette liste s'applique à tous les acheteurs.",+ "rules_help": "Conditions qui déterminent quand cette liste s'applique. Utilisez « toutes » pour exiger chaque règle, « n'importe laquelle » pour prendre la première correspondance.",+ "rules_section": "Règles",+ "schedule": "Planifier",+ "schedule_confirm": {+ "message": "« {{name}} » sera mise en ligne le {{starts_at}} et restera active jusqu'à sa date de fin.",+ "title": "Planifier la liste de prix ?"+ },+ "schedule_section": "Planification",+ "sheet_title_create": "Créer une liste de prix",+ "sheet_title_edit": "Modifier la liste de prix",+ "subtitle": "Tarification ciblée pour des groupes de clients, des régions ou des paliers de volume.",+ "title": "Listes de prix",+ "unschedule": "Déplanifier",+ "unschedule_confirm": {+ "message": "« {{name}} » ne s'activera plus à sa date planifiée. Vous pourrez la replanifier ou l'activer manuellement plus tard.",+ "title": "Déplanifier la liste de prix ?"+ }+ },+ "publishing": {+ "caption_hidden_after": "Retiré le {{date}}",+ "caption_live": "Visible par les clients dès maintenant",+ "caption_not_available": "Masqué — le produit est {{product_status}}",+ "caption_scheduled": "Mise en ligne le {{date}}",+ "caption_unpublished": "A été masqué le {{date}}",+ "caption_window": "En ligne du {{start}} au {{end}}",+ "empty": "Pas encore répertorié sur un canal de vente.",+ "inactive_marker": "Inactif",+ "manage_cta": "Gérer",+ "manage_description": "Choisissez les canaux de vente sur lesquels ce produit est répertorié. Désactivez un canal pour le retirer partout.",+ "manage_title": "Gérer les canaux de vente",+ "no_channels": "Aucun canal de vente disponible. Créez-en un dans Paramètres → Canaux de vente.",+ "status_hidden": "Masqué",+ "status_live": "En ligne",+ "status_not_available": "Indisponible",+ "status_scheduled": "Planifié",+ "title": "Publication"+ },+ "section_basics": "Informations de base",+ "section_categorization": "Catégorisation",+ "section_inventory": "Stock",+ "section_media": "Médias",+ "section_organization": "Organisation",+ "section_pricing": "Tarification",+ "section_seo": "SEO",+ "section_variants": "Variantes",+ "status_options": {+ "active": "Actif",+ "archived": "Archivé",+ "draft": "Brouillon"+ },+ "transfers": {+ "description_external": "Réception externe dans <strong>{{destination}}</strong>.",+ "description_internal": "Stock déplacé de <strong>{{source}}</strong> vers <strong>{{destination}}</strong>.",+ "edit_sheet_title": "Transfert {{number}}",+ "items_empty": "Aucun article pour le moment.",+ "section_from": "De",+ "section_items": "Articles",+ "section_to": "Vers",+ "sheet_title": "Nouveau transfert de stock"+ },+ "variants_empty": "Aucune variante pour le moment.",+ "variants_one": "{{count}} variante",+ "variants_other": "{{count}} variantes"}},"resource_picker": {@@ -851,6 +1190,244 @@"positive_number": "{{field}} doit être supérieur à 0","required": "{{field}} est obligatoire","store_name_required": "Le nom de la boutique est requis"+ },+ "products": {+ "autocomplete": {+ "empty": "Aucun produit ne correspond",+ "placeholder": "Rechercher des produits par nom…"+ },+ "category_search_placeholder": "Rechercher des catégories…",+ "collection_search_placeholder": "Rechercher des collections…",+ "columns": {+ "in_stock": "En stock",+ "price": "Prix",+ "sku": "SKU"+ },+ "delete_confirm": "Voulez-vous vraiment supprimer ce produit ?",+ "delete_label": "Supprimer le produit",+ "inventory": {+ "backorder_aria": "Autoriser le réassort à {{location}}",+ "columns": {+ "backorder": "Réassort",+ "location": "Emplacement",+ "on_hand": "En stock"+ },+ "empty_no_locations": "Ajoutez un emplacement de stock dans les Paramètres pour commencer à suivre l'inventaire.",+ "empty_no_variants": "Les niveaux de stock sont gérés par emplacement de stock. Ajoutez une variante pour commencer à suivre l'inventaire.",+ "on_hand_aria": "En stock à {{location}}",+ "unknown_location": "Emplacement inconnu"+ },+ "media": {+ "add_from_library": "Ajouter depuis la médiathèque",+ "add_video": "Ajouter un lien vidéo",+ "add_video_submit": "Ajouter la vidéo",+ "add_video_title": "Ajouter un lien vidéo",+ "assigned_variants_help": "Sélectionnez les variantes que cette image représente. Laissez vide pour l'appliquer à toutes les variantes.",+ "assigned_variants_label": "Variantes associées",+ "delete_confirm": "Supprimer ce média ? Cette action est irréversible.",+ "drop_hint": "Glissez-déposez un média ici, ou cliquez pour parcourir",+ "edit_title": "Modifier le média",+ "file_types_hint": "Images (PNG, JPG, WebP) et vidéos (MP4, WebM, MOV)",+ "focal_point_help": "Cliquez sur l'image pour définir ce qui reste visible lors du recadrage.",+ "focal_point_reset": "Réinitialiser",+ "unsupported_file_one": "{{count}} fichier n'a pas été ajouté — seules les images et vidéos sont prises en charge.",+ "unsupported_file_other": "{{count}} fichiers n'ont pas été ajoutés — seules les images et vidéos sont prises en charge.",+ "upload_failed": "Échec du téléversement de {{name}} : {{message}}",+ "upload_status_failed": "Échec",+ "video_preview_title": "Aperçu de la vidéo",+ "video_url_invalid": "Saisissez un lien YouTube ou Vimeo."+ },+ "no_categories_found": "Aucune catégorie trouvée",+ "no_collections_found": "Aucune collection trouvée",+ "options": {+ "add_cta": "Ajouter un type d'option",+ "count_one": "{{count}} valeur",+ "count_other": "{{count}} valeurs",+ "create_description": "Définissez une option que les variantes peuvent utiliser (par ex. taille, couleur).",+ "create_label": "Créer un type d'option",+ "delete_confirm": {+ "message": "Cela supprimera également toutes ses valeurs. Les variantes utilisant ces valeurs les perdront.",+ "title": "Supprimer le type d'option ?"+ },+ "edit_description": "Modifiez le type d'option et ses valeurs.",+ "image_upload_failed": "Échec du téléversement de l'image",+ "kinds": {+ "buttons": "Boutons",+ "color_swatch": "Nuancier de couleurs",+ "dropdown": "Liste déroulante"+ },+ "value_label_placeholder": "par ex. Petit",+ "value_name_placeholder": "par ex. small",+ "values_help": "Faites glisser les valeurs pour les réorganiser. La première valeur est celle par défaut pour les nouvelles variantes."+ },+ "price_lists": {+ "errors": {+ "failed_to_activate": "Échec de l'activation de la liste de prix",+ "failed_to_deactivate": "Échec de la désactivation de la liste de prix"+ },+ "messages": {+ "activated": "Liste de prix activée",+ "created": "Liste de prix créée",+ "deactivated": "Liste de prix désactivée",+ "deleted": "Liste de prix supprimée",+ "updated": "Liste de prix mise à jour"+ },+ "validation": {+ "ends_after_starts": "Doit être postérieur à la date de début."+ }+ },+ "product_type_adds_options_one": "Ce type ajoute {{options}} aux nouveaux produits.",+ "product_type_adds_options_other": "Ce type ajoute {{options}} aux nouveaux produits.",+ "product_type_placeholder": "Aucun type de produit",+ "save_label": "Enregistrer le produit",+ "seo": {+ "meta_description_placeholder": "Description SEO",+ "meta_title_placeholder": "Titre SEO",+ "slug_placeholder": "url-du-produit"+ },+ "tax_category_placeholder": "Sélectionner une catégorie de taxe",+ "transfers": {+ "create_description": "Déplacer du stock entre les emplacements, ou recevoir du nouveau stock d’un fournisseur externe.",+ "delete_confirm": {+ "message": "Les mouvements de stock créés par ce transfert seront annulés.",+ "title": "Supprimer ce transfert ?"+ },+ "destination_placeholder": "Sélectionner l'emplacement de destination",+ "details_card": "Détails",+ "different_locations_error": "La source et la destination doivent être différentes.",+ "external_label": "Externe (réception fournisseur)",+ "fields": {+ "created": "Créé le",+ "external_receive": "Réception externe",+ "immutable_note": "Les transferts de stock sont immuables une fois créés.",+ "internal": "Interne",+ "reference": "Référence",+ "type": "Type"+ },+ "items_table": {+ "qty": "Qté",+ "sku": "SKU",+ "variant": "Variante"+ },+ "new_cta": "Nouveau transfert",+ "reference_label": "Référence",+ "reference_placeholder": "Numéro de commande, facture fournisseur, …",+ "review_description": "Vérifiez le transfert avant de le créer. Les articles ne pourront plus être modifiés ensuite.",+ "search_items_placeholder": "Rechercher par nom ou SKU (3 caractères ou plus)…"+ },+ "variants": {+ "add_option": "Ajouter une option",+ "bulk_edit": {+ "grid_aria": "Tableau d'édition groupée des variantes",+ "title": "Modifier les variantes en masse",+ "trigger": "Édition groupée",+ "unset": "Aucun"+ },+ "create_option_type": "Créer un nouveau type d'option",+ "create_option_type_title": "Nouveau type d'option",+ "create_value": "Nouvelle valeur",+ "create_value_title": "Nouvelle valeur d'option",+ "default_variant": "Variante par défaut",+ "edit_row_aria": "Modifier {{name}}",+ "edit_variant": "Modifier la variante — {{name}}",+ "errors": {+ "failed_to_create_option_type": "Impossible de créer le type d’option",+ "failed_to_create_value": "Impossible de créer la valeur"+ },+ "keep": "Tout conserver",+ "option_type_label": "Type d'option",+ "option_type_placeholder": "Choisissez un type d'option",+ "orphan_warning": "{{count}} variante(s) existante(s) seront supprimées à l'enregistrement :",+ "orphan_warning_one": "{{count}} variante existante ne correspond plus aux options sélectionnées et sera supprimée à l'enregistrement :",+ "orphan_warning_other": "{{count}} variantes existantes ne correspondent plus aux options sélectionnées et seront supprimées à l'enregistrement :",+ "remove_row_aria": "Retirer {{name}}",+ "sheet": {+ "availability": "Disponibilité",+ "customs": "Douane",+ "customs_help": "Utilisé sur les formulaires douaniers lorsque cet article franchit une frontière.",+ "identity": "Identité",+ "tax_category_placeholder": "Hériter du produit"+ },+ "title": "Variantes",+ "variant_label": "Variante"+ }+ },+ "product_types": {+ "add_cta": "Ajouter un type de produit",+ "add_sheet_title": "Nouveau type de produit",+ "affects_new_only": {+ "description": "Modifier les types d’option et les catégories affecte les produits créés à partir de maintenant. Les produits ayant déjà ce type conservent ce qu’ils ont. Les champs personnalisés ci-dessous apparaissent toujours sur tous les produits de ce type.",+ "title": "Les modifications s’appliquent aux nouveaux produits"+ },+ "apply_to_products": {+ "confirm_label": "Appliquer",+ "cta_one": "Appliquer à {{count}} produit existant",+ "cta_other": "Appliquer à {{count}} produits existants",+ "message_one": "Cela ajoute les types d’option et catégories manquants de ce type à {{count}} produit. Rien n’est supprimé.",+ "message_other": "Cela ajoute les types d’option et catégories manquants de ce type à {{count}} produits. Rien n’est supprimé.",+ "title": "Appliquer aux produits existants"+ },+ "create_description": "Regroupez les produits et définissez leurs modes de livraison.",+ "create_label": "Créer le type de produit",+ "custom_delivery_profile": "Personnalisé",+ "default_delivery_profile": "Profil par défaut de la boutique",+ "delete_confirm": {+ "message": "Voulez-vous vraiment supprimer « {{name}} » ? Les types encore utilisés par des produits ne peuvent pas être supprimés.",+ "title": "Supprimer le type de produit"+ },+ "edit_description": "Modifier le nom ou les modes de livraison des produits de ce type.",+ "edit_sheet_title": "Modifier le type de produit",+ "empty": "Aucun type de produit",+ "messages": {+ "applied_to_products": "Application aux produits existants",+ "created": "Type de produit créé",+ "deleted": "Type de produit supprimé",+ "updated": "Type de produit mis à jour"+ },+ "no_categories": "Aucune catégorie",+ "no_option_types": "Aucun type d’option",+ "option_type_search_placeholder": "Rechercher des types d’option",+ "search_placeholder": "Rechercher des types de produit"+ },+ "calculators": {+ "default_refund_amount": "Montant de remboursement par défaut",+ "default_tax": "Taxe par défaut",+ "digital_delivery": "Livraison numérique",+ "flat_percent_item_total": "Pourcentage fixe",+ "flat_rate": "Tarif forfaitaire",+ "flexi_rate": "Tarif flexible",+ "per_item": "Par article",+ "percent_on_line_item": "Pourcentage par ligne d’article",+ "price_sack": "Palier de prix",+ "tiered_flat_rate": "Tarif forfaitaire par paliers",+ "tiered_percent": "Pourcentage par paliers"+ },+ "stock_levels": {+ "messages": {+ "stock_level_deleted": "Niveau de stock supprimé",+ "stock_updated": "Stock mis à jour"+ }+ },+ "option_types": {+ "columns": {+ "values": "Valeurs"+ },+ "kinds": {+ "buttons": "Boutons",+ "color_swatch": "Nuancier de couleur",+ "dropdown": "Liste déroulante"+ },+ "messages": {+ "created": "Type d'option créé",+ "deleted": "Type d'option supprimé",+ "updated": "Type d'option mis à jour"+ },+ "table": {+ "empty": "Aucun type d'option pour le moment",+ "search_placeholder": "Rechercher par nom…"+ },+ "value_count_one": "{{count}} valeur",+ "value_count_other": "{{count}} valeurs"}}}diff --git a/packages/dashboard-core/src/locales/pl.json b/packages/dashboard-core/src/locales/pl.jsonindex e2763b97fe..6e9831f508 100644--- a/packages/dashboard-core/src/locales/pl.json+++ b/packages/dashboard-core/src/locales/pl.json@@ -583,6 +583,15 @@"alt": {"label": "Tekst alternatywny","placeholder": "Opisz obraz na potrzeby dostępności i SEO"+ },+ "external_video_url": {+ "help": "Wklej link do YouTube lub Vimeo.",+ "label": "Link do wideo",+ "placeholder": "https://www.youtube.com/watch?v=..."+ },+ "poster": {+ "help": "Nieruchomy obraz pokazywany przed odtworzeniem. Zostaw puste, aby użyć obrazu dostawcy, jeśli jest dostępny.",+ "label": "Miniatura wideo"}},"meta_description": {@@ -691,6 +700,101 @@},"zipcode": {"label": "Kod pocztowy"+ },+ "product": {+ "available_on": {+ "label": "Dostępny od"+ },+ "category_ids": {+ "label": "Kategorie"+ },+ "channels": {+ "label": "Kanały sprzedaży"+ },+ "collection_ids": {+ "help": "Tutaj można ustawić tylko kolekcje ręczne; automatyczne kierują się regułami.",+ "label": "Kolekcje"+ },+ "delivery_profile_id": {+ "help": "Decyduje, które strefy i metody dostawy obejmują ten produkt.",+ "label": "Profil wysyłki"+ },+ "description": {+ "label": "Opis",+ "placeholder": "Napisz opis produktu…"+ },+ "discontinue_on": {+ "label": "Wycofaj z dniem"+ },+ "make_active_at": {+ "label": "Aktywuj o"+ },+ "name": {+ "label": "Nazwa",+ "placeholder": "Nazwa produktu"+ },+ "product_type_id": {+ "help": "Określa, które opcje dostawy są oferowane przy zamówieniu.",+ "label": "Typ produktu"+ },+ "seller": {+ "label": "Sprzedawca"+ },+ "tags": {+ "label": "Tagi"+ }+ },+ "variant": {+ "backorder_limit": {+ "help": "Maksymalna liczba jednostek sprzedanych ponad dostępny stan — ogranicza zamówienia oczekujące i przedsprzedaż. Pozostaw puste dla braku limitu.",+ "label": "Limit zamówień oczekujących",+ "placeholder": "Bez limitu"+ },+ "barcode": {+ "label": "Kod kreskowy"+ },+ "country_of_origin": {+ "label": "Kraj pochodzenia"+ },+ "customs_description": {+ "label": "Opis celny",+ "placeholder": "Prosty opis towaru"+ },+ "depth": {+ "label": "Głębokość"+ },+ "dimensions_unit": {+ "label": "Jednostka"+ },+ "height": {+ "label": "Wysokość"+ },+ "hs_code": {+ "label": "Kod HS",+ "placeholder": "np. 640411"+ },+ "preorder_ships_at": {+ "help": "Kiedy planujesz wysłać zamówienia przedpremierowe. Pokazywane klientom jako obietnica dostawy; przedsprzedaż kończy się po upływie tej daty.",+ "label": "Wysyłka do",+ "placeholder": "Wybierz datę"+ },+ "preorderable": {+ "help": "Sprzedawaj ten wariant, zanim trafi do magazynu. Ogranicz liczbę limitem zamówień oczekujących, wpisz przychodzący stan jako ilość lub pozostaw puste dla nieograniczonej liczby.",+ "label": "Dostępne w przedsprzedaży"+ },+ "sku": {+ "label": "SKU",+ "placeholder": "PRODUKT-CZERWONY-S"+ },+ "weight": {+ "label": "Waga"+ },+ "weight_unit": {+ "label": "Jednostka"+ },+ "width": {+ "label": "Szerokość"+ }}},"image_upload": {@@ -752,6 +856,255 @@"edit_sheet_title": "Edytuj lokalizację magazynową","search_placeholder": "Szukaj lokalizacji magazynowych…"}+ },+ "products": {+ "add_cta": "Dodaj produkt",+ "bulk": {+ "add_categories_action": "Dodaj do kategorii…",+ "add_channels_action": "Dodaj do kanałów sprzedaży…",+ "add_collections_action": "Dodaj do kolekcji",+ "add_tags_action": "Dodaj tagi…",+ "categories_add_description": "Wybierz kategorie, do których chcesz dodać te produkty.",+ "categories_add_failed": "Nie udało się dodać produktów do kategorii",+ "categories_add_title": "Dodaj do kategorii",+ "categories_added": "Dodano {n} produktów do kategorii",+ "categories_remove_description": "Wybierz kategorie, z których chcesz usunąć te produkty.",+ "categories_remove_failed": "Nie udało się usunąć produktów z kategorii",+ "categories_remove_title": "Usuń z kategorii",+ "categories_removed": "Usunięto {n} produktów z kategorii",+ "channels_add_description": "Wybierz kanały sprzedaży, na których chcesz wystawić te produkty.",+ "channels_add_failed": "Nie udało się wystawić produktów na kanałach sprzedaży",+ "channels_add_title": "Dodaj do kanałów sprzedaży",+ "channels_added": "Wystawiono {n} produktów na kanałach sprzedaży",+ "channels_remove_description": "Wybierz kanały sprzedaży, z których chcesz wycofać te produkty.",+ "channels_remove_failed": "Nie udało się wycofać produktów z kanałów sprzedaży",+ "channels_remove_title": "Usuń z kanałów sprzedaży",+ "channels_removed": "Wycofano {n} produktów z kanałów sprzedaży",+ "collections_add_description": "Wybrane produkty zostaną dodane do każdej wskazanej kolekcji.",+ "collections_add_failed": "Nie udało się dodać produktów do kolekcji",+ "collections_add_title": "Dodaj do kolekcji",+ "collections_added": "Produkty dodane do kolekcji",+ "collections_remove_description": "Wybrane produkty zostaną usunięte z każdej wskazanej kolekcji.",+ "collections_remove_failed": "Nie udało się usunąć produktów z kolekcji",+ "collections_remove_title": "Usuń z kolekcji",+ "collections_removed": "Produkty usunięte z kolekcji",+ "delete_confirm": {+ "message": "Wybrane produkty zostaną usunięte. Tej operacji nie można cofnąć.",+ "title": "Usunąć {n} produktów?"+ },+ "delete_failed": "Nie udało się usunąć produktów",+ "deleted": "Usunięto {n} produktów",+ "remove_categories_action": "Usuń z kategorii…",+ "remove_channels_action": "Usuń z kanałów sprzedaży…",+ "remove_collections_action": "Usuń z kolekcji",+ "remove_tags_action": "Usuń tagi…",+ "set_status_action": "Ustaw status…",+ "status_sheet_description": "Wybierz status do zastosowania do wybranych produktów.",+ "status_sheet_title": "Ustaw status produktu",+ "status_update_failed": "Nie udało się zaktualizować statusu produktu",+ "status_updated": "Zaktualizowano status {n} produktów",+ "tags_add_description": "Wybierz lub utwórz tagi, które chcesz dodać do tych produktów.",+ "tags_add_failed": "Nie udało się dodać tagów",+ "tags_add_title": "Dodaj tagi",+ "tags_added": "Dodano tagi do {n} produktów",+ "tags_remove_description": "Wybierz tagi, które chcesz usunąć z tych produktów.",+ "tags_remove_failed": "Nie udało się usunąć tagów",+ "tags_remove_title": "Usuń tagi",+ "tags_removed": "Usunięto tagi z {n} produktów"+ },+ "clone_failed": "Nie udało się zduplikować produktu",+ "clone_succeeded": "Produkt zduplikowany",+ "delete_failed": "Nie udało się usunąć produktu",+ "delete_succeeded": "Produkt usunięty",+ "edit": {+ "bulk_prices": {+ "no_variants": "Dodaj co najmniej jeden wariant, aby rozpocząć edycję cen."+ }+ },+ "inventory": {+ "in_stock": "{{count}} w magazynie",+ "in_stock_short": "W magazynie",+ "on_backorder": "Na zamówienie",+ "out_of_stock": "Brak w magazynie"+ },+ "media_empty": "Brak multimediów.",+ "media_upload": "Prześlij multimedia",+ "new": {+ "create_failed": "Nie udało się utworzyć produktu",+ "create_succeeded": "Produkt utworzony",+ "description": "Skonfiguruj swój produkt — dodaj warianty, ceny, stan magazynowy, multimedia i pola niestandardowe",+ "preview_slug_placeholder": "twoj-slug-produktu",+ "save_label": "Utwórz produkt",+ "title": "Nowy produkt"+ },+ "options": {+ "add_value": "Dodaj wartość opcji",+ "sheet_title_create": "Utwórz typ opcji",+ "sheet_title_edit": "Edytuj typ opcji",+ "table": {+ "values": "Wartości"+ },+ "values_empty": "Brak wartości.",+ "values_section": "Wartości"+ },+ "price_lists": {+ "activate": "Aktywuj",+ "activate_confirm": {+ "message": "„{{name}}” zacznie obowiązywać kwalifikujących się klientów natychmiast i pozostanie aktywny do ręcznej dezaktywacji.",+ "message_with_end": "„{{name}}” zacznie obowiązywać kwalifikujących się klientów natychmiast i pozostanie aktywny do ręcznej dezaktywacji lub do swojej daty zakończenia ({{ends_at}}).",+ "title": "Aktywować cennik?"+ },+ "add_cta": "Nowy cennik",+ "add_products_cta": "Dodaj produkty",+ "add_rule": "Dodaj regułę",+ "add_rule_help": "Wybierz typ reguły do skonfigurowania.",+ "basics_section": "Podstawy",+ "deactivate": "Dezaktywuj",+ "deactivate_confirm": {+ "message": "„{{name}}” natychmiast przestanie obowiązywać klientów. Istniejące zamówienia pozostają bez zmian.",+ "title": "Dezaktywować cennik?"+ },+ "delete_confirm": {+ "message": "Usunięcie „{{name}}” spowoduje usunięcie jego cen. Tej operacji nie można cofnąć.",+ "title": "Usunąć cennik?"+ },+ "edit_prices": {+ "add_products_link": "Dodaj produkty",+ "columns": {+ "compare_at_price": "Cena porównawcza",+ "price": "Cena",+ "product": "Produkt",+ "sku": "SKU",+ "variant": "Wariant"+ },+ "compare_at_aria": "Cena porównawcza dla {{label}}",+ "count_summary_few": "{{count}} ceny w {{currency}}",+ "count_summary_many": "{{count}} cen w {{currency}}",+ "count_summary_one": "{{count}} cena w {{currency}}",+ "count_summary_other": "{{count}} cen w {{currency}}",+ "currency_label": "Waluta",+ "dirty_summary_few": "{{count}} niezapisane zmiany",+ "dirty_summary_many": "{{count}} niezapisanych zmian",+ "dirty_summary_one": "{{count}} niezapisana zmiana",+ "dirty_summary_other": "{{count}} niezapisanych zmian",+ "discard_confirm": {+ "message_close_few": "Masz {{count}} niezapisane ceny. Zamknięcie spowoduje ich odrzucenie.",+ "message_close_many": "Masz {{count}} niezapisanych cen. Zamknięcie spowoduje ich odrzucenie.",+ "message_close_one": "Masz {{count}} niezapisaną cenę. Zamknięcie spowoduje jej odrzucenie.",+ "message_close_other": "Masz {{count}} niezapisanych cen. Zamknięcie spowoduje ich odrzucenie.",+ "message_currency": "Zmiana waluty spowoduje odrzucenie niezapisanych cen.",+ "title": "Odrzucić niezapisane ceny?"+ },+ "empty": "Brak produktów na tym cenniku.",+ "empty_no_base_prices": "Brak cen podstawowych.",+ "empty_pick_products": "Wybierz produkty na cenniku, aby rozpocząć ustawianie cen.",+ "grid_aria": "Ceny wariantów",+ "no_matches_for_filters": "Brak cen pasujących do bieżących filtrów.",+ "no_matches_for_search": "Brak cen pasujących do „{{search}}”.",+ "price_aria": "Cena dla {{label}}",+ "save_cta": "Zapisz ceny",+ "save_failed": "Nie udało się zapisać cen",+ "save_success_few": "Zapisano {{count}} ceny",+ "save_success_many": "Zapisano {{count}} cen",+ "save_success_one": "Zapisano {{count}} cenę",+ "save_success_other": "Zapisano {{count}} cen",+ "search_placeholder": "Szukaj po produkcie, SKU lub opcji…",+ "title": "Edytuj ceny — {{name}}",+ "variant_default": "Domyślny"+ },+ "edit_prices_cta": "Edytuj ceny",+ "no_changes": "Brak zmian do zapisania.",+ "prices_help_few": "Skonfigurowano {{count}} ceny. Otwórz edytor zbiorczy, aby je zaktualizować.",+ "prices_help_many": "Skonfigurowano {{count}} cen. Otwórz edytor zbiorczy, aby je zaktualizować.",+ "prices_help_one": "Skonfigurowano {{count}} cenę. Otwórz edytor zbiorczy, aby ją zaktualizować.",+ "prices_help_other": "Skonfigurowano {{count}} cen. Otwórz edytor zbiorczy, aby je zaktualizować.",+ "prices_help_zero": "Wybierz produkty powyżej, aby utworzyć ceny zastępcze, a następnie otwórz edytor zbiorczy.",+ "products_empty": "Brak produktów — dodaj jeden, aby rozpocząć edycję cen.",+ "products_empty_search": "Brak pasujących produktów",+ "products_help": "Wybierz produkty, których dotyczy ten cennik. Ceny zastępcze zostaną utworzone podczas zapisywania — uzupełnij je poniżej.",+ "products_search_placeholder": "Szukaj produktów po nazwie…",+ "products_section": "Produkty",+ "products_selected_few": "Wybrano {{count}} produkty.",+ "products_selected_many": "Wybrano {{count}} produktów.",+ "products_selected_one": "Wybrano {{count}} produkt.",+ "products_selected_other": "Wybrano {{count}} produktów.",+ "remove_rule_confirm": {+ "message": "Reguła zostanie usunięta po zapisaniu cennika.",+ "title": "Usunąć regułę?"+ },+ "remove_selected": "Usuń zaznaczone",+ "rule_click_to_configure": "Kliknij, aby skonfigurować",+ "rule_default_description": "Dostosuj parametry reguły.",+ "rule_name_overflow": "{{names}} +{{count}} więcej",+ "rule_no_options": "Ta reguła nie ma konfigurowalnych opcji — jej obecność sama w sobie nakłada ograniczenie.",+ "rule_types_all_used": "Każdy dostępny typ reguły jest już na tym cenniku.",+ "rule_types_empty": "Brak zarejestrowanych typów reguł.",+ "rules_empty": "Brak reguł — ten cennik dotyczy każdego kupującego.",+ "rules_help": "Warunki decydujące o tym, kiedy ten cennik ma zastosowanie. Użyj „wszystkie”, aby wymagać każdej reguły, lub „dowolna”, aby zastosować pierwsze dopasowanie.",+ "rules_section": "Reguły",+ "schedule": "Zaplanuj",+ "schedule_confirm": {+ "message": "„{{name}}” zostanie uruchomiony {{starts_at}} i pozostanie aktywny do swojej daty zakończenia.",+ "title": "Zaplanować cennik?"+ },+ "schedule_section": "Harmonogram",+ "sheet_title_create": "Utwórz cennik",+ "sheet_title_edit": "Edytuj cennik",+ "subtitle": "Ceny ukierunkowane na grupy klientów, regiony lub progi ilościowe.",+ "title": "Cenniki",+ "unschedule": "Anuluj harmonogram",+ "unschedule_confirm": {+ "message": "„{{name}}” nie będzie już aktywowany w zaplanowanej dacie. Możesz go później ponownie zaplanować lub aktywować ręcznie.",+ "title": "Anulować harmonogram cennika?"+ }+ },+ "publishing": {+ "caption_hidden_after": "Zniknie {{date}}",+ "caption_live": "Widoczny dla klientów teraz",+ "caption_not_available": "Ukryty — produkt ma status {{product_status}}",+ "caption_scheduled": "Pojawi się {{date}}",+ "caption_unpublished": "Został ukryty {{date}}",+ "caption_window": "Aktywny {{start}} → {{end}}",+ "empty": "Jeszcze nie wystawiony w żadnym kanale sprzedaży.",+ "inactive_marker": "Nieaktywny",+ "manage_cta": "Zarządzaj",+ "manage_description": "Wybierz, na których kanałach sprzedaży ten produkt ma być wystawiony. Wyłącz kanał, aby wycofać go ze sprzedaży wszędzie.",+ "manage_title": "Zarządzaj kanałami sprzedaży",+ "no_channels": "Brak dostępnych kanałów sprzedaży. Utwórz jeden w Ustawienia → Kanały sprzedaży.",+ "status_hidden": "Ukryty",+ "status_live": "Aktywny",+ "status_not_available": "Niedostępny",+ "status_scheduled": "Zaplanowany",+ "title": "Publikacja"+ },+ "section_basics": "Podstawy",+ "section_categorization": "Kategoryzacja",+ "section_inventory": "Stan magazynowy",+ "section_media": "Multimedia",+ "section_organization": "Organizacja",+ "section_pricing": "Ceny",+ "section_seo": "SEO",+ "section_variants": "Warianty",+ "status_options": {+ "active": "Aktywne",+ "archived": "Zarchiwizowany",+ "draft": "Wersja robocza"+ },+ "transfers": {+ "description_external": "Przyjęcie zewnętrzne do <strong>{{destination}}</strong>.",+ "description_internal": "Stan magazynowy przeniesiony z <strong>{{source}}</strong> do <strong>{{destination}}</strong>.",+ "edit_sheet_title": "Transfer {{number}}",+ "items_empty": "Brak pozycji.",+ "section_from": "Z",+ "section_items": "Pozycje",+ "section_to": "Do",+ "sheet_title": "Nowy transfer magazynowy"+ },+ "variants_empty": "Brak wariantów.",+ "variants_few": "{{count}} warianty",+ "variants_many": "{{count}} wariantów",+ "variants_one": "{{count}} wariant",+ "variants_other": "{{count}} wariantów"}},"resource_picker": {@@ -851,6 +1204,256 @@"positive_number": "Pole {{field}} musi być większe niż 0","required": "Pole {{field}} jest wymagane","store_name_required": "Nazwa sklepu jest wymagana"+ },+ "products": {+ "autocomplete": {+ "empty": "Brak pasujących produktów",+ "placeholder": "Szukaj produktów po nazwie…"+ },+ "category_search_placeholder": "Szukaj kategorii…",+ "collection_search_placeholder": "Szukaj kolekcji…",+ "columns": {+ "in_stock": "Na stanie",+ "price": "Cena",+ "sku": "SKU"+ },+ "delete_confirm": "Czy na pewno chcesz usunąć ten produkt?",+ "delete_label": "Usuń produkt",+ "inventory": {+ "backorder_aria": "Zezwól na zamówienia oczekujące w lokalizacji {{location}}",+ "columns": {+ "backorder": "Zamówienie oczekujące",+ "location": "Lokalizacja",+ "on_hand": "Na stanie"+ },+ "empty_no_locations": "Dodaj lokalizację magazynową w Ustawieniach, aby rozpocząć śledzenie stanów magazynowych.",+ "empty_no_variants": "Stany magazynowe są zarządzane osobno dla każdej lokalizacji magazynowej. Dodaj wariant, aby rozpocząć śledzenie stanów magazynowych.",+ "on_hand_aria": "Na stanie w lokalizacji {{location}}",+ "unknown_location": "Nieznana lokalizacja"+ },+ "media": {+ "add_from_library": "Dodaj z biblioteki",+ "add_video": "Dodaj link do wideo",+ "add_video_submit": "Dodaj wideo",+ "add_video_title": "Dodaj link do wideo",+ "assigned_variants_help": "Wybierz warianty, które reprezentuje to zdjęcie. Pozostaw puste, aby zastosować do wszystkich wariantów.",+ "assigned_variants_label": "Przypisane warianty",+ "delete_confirm": "Usunąć ten plik multimedialny? Tej operacji nie można cofnąć.",+ "drop_hint": "Przeciągnij i upuść pliki tutaj lub kliknij, aby przeglądać",+ "edit_title": "Edytuj plik multimedialny",+ "file_types_hint": "Zdjęcia (PNG, JPG, WebP) i wideo (MP4, WebM, MOV)",+ "focal_point_help": "Kliknij zdjęcie, aby wskazać, co ma pozostać widoczne po przycięciu.",+ "focal_point_reset": "Przywróć",+ "unsupported_file_one": "Nie dodano {{count}} pliku — obsługiwane są tylko zdjęcia i wideo.",+ "unsupported_file_other": "Nie dodano {{count}} plików — obsługiwane są tylko zdjęcia i wideo.",+ "upload_failed": "Nie udało się przesłać {{name}}: {{message}}",+ "upload_status_failed": "Niepowodzenie",+ "video_preview_title": "Podgląd wideo",+ "video_url_invalid": "Podaj link do YouTube lub Vimeo."+ },+ "no_categories_found": "Nie znaleziono kategorii",+ "no_collections_found": "Nie znaleziono kolekcji",+ "options": {+ "add_cta": "Dodaj typ opcji",+ "count_few": "{{count}} wartości",+ "count_many": "{{count}} wartości",+ "count_one": "{{count}} wartość",+ "count_other": "{{count}} wartości",+ "create_description": "Zdefiniuj opcję, której mogą używać warianty (np. rozmiar, kolor).",+ "create_label": "Utwórz typ opcji",+ "delete_confirm": {+ "message": "Spowoduje to również usunięcie wszystkich jego wartości. Warianty korzystające z tych wartości je utracą.",+ "title": "Usunąć typ opcji?"+ },+ "edit_description": "Edytuj typ opcji i jego wartości.",+ "image_upload_failed": "Nie udało się przesłać obrazu",+ "kinds": {+ "buttons": "Przyciski",+ "color_swatch": "Próbka koloru",+ "dropdown": "Lista rozwijana"+ },+ "value_label_placeholder": "np. Małe",+ "value_name_placeholder": "np. small",+ "values_help": "Przeciągnij wartości, aby zmienić kolejność. Pierwsza wartość jest domyślna dla nowych wariantów."+ },+ "price_lists": {+ "errors": {+ "failed_to_activate": "Nie udało się aktywować cennika",+ "failed_to_deactivate": "Nie udało się dezaktywować cennika"+ },+ "messages": {+ "activated": "Aktywowano cennik",+ "created": "Utworzono cennik",+ "deactivated": "Dezaktywowano cennik",+ "deleted": "Usunięto cennik",+ "updated": "Zaktualizowano cennik"+ },+ "validation": {+ "ends_after_starts": "Musi być po dacie rozpoczęcia."+ }+ },+ "product_type_adds_options_few": "Ten typ dodaje {{options}} do nowych produktów.",+ "product_type_adds_options_many": "Ten typ dodaje {{options}} do nowych produktów.",+ "product_type_adds_options_one": "Ten typ dodaje {{options}} do nowych produktów.",+ "product_type_adds_options_other": "Ten typ dodaje {{options}} do nowych produktów.",+ "product_type_placeholder": "Brak typu produktu",+ "save_label": "Zapisz produkt",+ "seo": {+ "meta_description_placeholder": "Opis SEO",+ "meta_title_placeholder": "Tytuł SEO",+ "slug_placeholder": "adres-url-produktu"+ },+ "tax_category_placeholder": "Wybierz kategorię podatkową",+ "transfers": {+ "create_description": "Przenieś zapasy między lokalizacjami lub przyjmij nowy towar od zewnętrznego dostawcy.",+ "delete_confirm": {+ "message": "Ruchy magazynowe utworzone przez ten transfer zostaną cofnięte.",+ "title": "Usunąć ten transfer?"+ },+ "destination_placeholder": "Wybierz lokalizację docelową",+ "details_card": "Szczegóły",+ "different_locations_error": "Lokalizacja źródłowa i docelowa muszą się różnić.",+ "external_label": "Zewnętrzne (przyjęcie od dostawcy)",+ "fields": {+ "created": "Utworzono",+ "external_receive": "Przyjęcie zewnętrzne",+ "immutable_note": "Transfery magazynowe są niezmienne po utworzeniu.",+ "internal": "Wewnętrzny",+ "reference": "Numer referencyjny",+ "type": "Typ"+ },+ "items_table": {+ "qty": "Ilość",+ "sku": "SKU",+ "variant": "Wariant"+ },+ "new_cta": "Nowy transfer",+ "reference_label": "Numer referencyjny",+ "reference_placeholder": "Numer zamówienia, faktura dostawcy, …",+ "review_description": "Sprawdź transfer przed utworzeniem. Pozycji nie można później zmienić.",+ "search_items_placeholder": "Szukaj według nazwy lub SKU (min. 3 znaki)…"+ },+ "variants": {+ "add_option": "Dodaj opcję",+ "bulk_edit": {+ "grid_aria": "Arkusz zbiorczej edycji wariantów",+ "title": "Edytuj warianty zbiorczo",+ "trigger": "Edycja zbiorcza",+ "unset": "Brak"+ },+ "create_option_type": "Utwórz nowy typ opcji",+ "create_option_type_title": "Nowy typ opcji",+ "create_value": "Nowa wartość",+ "create_value_title": "Nowa wartość opcji",+ "default_variant": "Wariant domyślny",+ "edit_row_aria": "Edytuj {{name}}",+ "edit_variant": "Edytuj wariant — {{name}}",+ "errors": {+ "failed_to_create_option_type": "Nie udało się utworzyć typu opcji",+ "failed_to_create_value": "Nie udało się utworzyć wartości"+ },+ "keep": "Zachowaj wszystkie",+ "option_type_label": "Typ opcji",+ "option_type_placeholder": "Wybierz typ opcji",+ "orphan_warning": "{{count}} istniejący(ch) wariant(ów) zostanie usuniętych przy zapisie:",+ "orphan_warning_few": "{{count}} istniejące warianty nie pasują już do wybranych opcji i zostaną usunięte przy zapisie:",+ "orphan_warning_many": "{{count}} istniejących wariantów nie pasuje już do wybranych opcji i zostanie usuniętych przy zapisie:",+ "orphan_warning_one": "{{count}} istniejący wariant nie pasuje już do wybranych opcji i zostanie usunięty przy zapisie:",+ "orphan_warning_other": "{{count}} istniejących wariantów nie pasuje już do wybranych opcji i zostanie usuniętych przy zapisie:",+ "remove_row_aria": "Usuń {{name}}",+ "sheet": {+ "availability": "Dostępność",+ "customs": "Cło",+ "customs_help": "Używane na formularzach celnych, gdy ten produkt przekracza granicę.",+ "identity": "Tożsamość",+ "tax_category_placeholder": "Dziedzicz z produktu"+ },+ "title": "Warianty",+ "variant_label": "Wariant"+ }+ },+ "product_types": {+ "add_cta": "Dodaj typ produktu",+ "add_sheet_title": "Nowy typ produktu",+ "affects_new_only": {+ "description": "Edycja typów opcji i kategorii wpływa na produkty tworzone od teraz. Produkty, które już mają ten typ, zachowują to, co mają. Pola niestandardowe poniżej zawsze pojawiają się przy każdym produkcie tego typu.",+ "title": "Zmiany dotyczą nowych produktów"+ },+ "apply_to_products": {+ "confirm_label": "Zastosuj",+ "cta_few": "Zastosuj do {{count}} istniejących produktów",+ "cta_many": "Zastosuj do {{count}} istniejących produktów",+ "cta_one": "Zastosuj do 1 istniejącego produktu",+ "cta_other": "Zastosuj do {{count}} istniejącego produktu",+ "message_few": "To doda brakujące typy opcji i kategorie tego typu do {{count}} produktów. Nic nie zostanie usunięte.",+ "message_many": "To doda brakujące typy opcji i kategorie tego typu do {{count}} produktów. Nic nie zostanie usunięte.",+ "message_one": "To doda brakujące typy opcji i kategorie tego typu do 1 produktu. Nic nie zostanie usunięte.",+ "message_other": "To doda brakujące typy opcji i kategorie tego typu do {{count}} produktu. Nic nie zostanie usunięte.",+ "title": "Zastosuj do istniejących produktów"+ },+ "create_description": "Grupuj produkty i określ, jak mogą być dostarczane.",+ "create_label": "Utwórz typ produktu",+ "custom_delivery_profile": "Własny",+ "default_delivery_profile": "Domyślny profil sklepu",+ "delete_confirm": {+ "message": "Czy na pewno usunąć „{{name}}”? Typów używanych przez produkty nie można usunąć.",+ "title": "Usuń typ produktu"+ },+ "edit_description": "Zmień nazwę lub sposoby dostawy produktów tego typu.",+ "edit_sheet_title": "Edytuj typ produktu",+ "empty": "Brak typów produktów",+ "messages": {+ "applied_to_products": "Stosowanie do istniejących produktów",+ "created": "Utworzono typ produktu",+ "deleted": "Usunięto typ produktu",+ "updated": "Zaktualizowano typ produktu"+ },+ "no_categories": "Brak kategorii",+ "no_option_types": "Brak typów opcji",+ "option_type_search_placeholder": "Szukaj typów opcji",+ "search_placeholder": "Szukaj typów produktów"+ },+ "calculators": {+ "default_refund_amount": "Domyślna kwota zwrotu",+ "default_tax": "Domyślny podatek",+ "digital_delivery": "Dostawa cyfrowa",+ "flat_percent_item_total": "Stały procent",+ "flat_rate": "Stawka ryczałtowa",+ "flexi_rate": "Stawka elastyczna",+ "per_item": "Za sztukę",+ "percent_on_line_item": "Procent za pozycję",+ "price_sack": "Próg cenowy",+ "tiered_flat_rate": "Progowa stawka ryczałtowa",+ "tiered_percent": "Procent progowy"+ },+ "stock_levels": {+ "messages": {+ "stock_level_deleted": "Usunięto stan magazynowy",+ "stock_updated": "Zaktualizowano stan magazynowy"+ }+ },+ "option_types": {+ "columns": {+ "values": "Wartości"+ },+ "kinds": {+ "buttons": "Przyciski",+ "color_swatch": "Próbka koloru",+ "dropdown": "Lista rozwijana"+ },+ "messages": {+ "created": "Typ opcji utworzony",+ "deleted": "Typ opcji usunięty",+ "updated": "Typ opcji zaktualizowany"+ },+ "table": {+ "empty": "Brak typów opcji",+ "search_placeholder": "Szukaj według nazwy…"+ },+ "value_count_few": "{{count}} wartości",+ "value_count_many": "{{count}} wartości",+ "value_count_one": "{{count}} wartość",+ "value_count_other": "{{count}} wartości"}}}diff --git a/packages/dashboard-core/src/locales/zh-CN.json b/packages/dashboard-core/src/locales/zh-CN.jsonindex 6ed53fdc85..3cc2a61a7c 100644--- a/packages/dashboard-core/src/locales/zh-CN.json+++ b/packages/dashboard-core/src/locales/zh-CN.json@@ -583,6 +583,15 @@"alt": {"label": "替代文本","placeholder": "为无障碍访问和 SEO 描述该图片"+ },+ "external_video_url": {+ "help": "粘贴 YouTube 或 Vimeo 链接。",+ "label": "视频链接",+ "placeholder": "https://www.youtube.com/watch?v=..."+ },+ "poster": {+ "help": "播放前显示的静态图片。留空则使用视频平台自带的封面(如果有)。",+ "label": "视频封面"}},"meta_description": {@@ -691,6 +700,101 @@},"zipcode": {"label": "邮政编码"+ },+ "product": {+ "available_on": {+ "label": "上架日期"+ },+ "category_ids": {+ "label": "分类"+ },+ "channels": {+ "label": "销售渠道"+ },+ "collection_ids": {+ "help": "此处仅可设置手动系列;自动系列由其规则决定。",+ "label": "系列"+ },+ "delivery_profile_id": {+ "help": "决定哪些区域和配送方式适用于该商品。",+ "label": "配送配置方案"+ },+ "description": {+ "label": "描述",+ "placeholder": "撰写产品描述…"+ },+ "discontinue_on": {+ "label": "下架日期"+ },+ "make_active_at": {+ "label": "激活日期"+ },+ "name": {+ "label": "名称",+ "placeholder": "产品名称"+ },+ "product_type_id": {+ "help": "决定结账时提供哪些配送选项。",+ "label": "商品类型"+ },+ "seller": {+ "label": "卖家"+ },+ "tags": {+ "label": "标签"+ }+ },+ "variant": {+ "backorder_limit": {+ "help": "超出可用库存销售的最大数量——用于限制缺货下单和预购。留空表示无限量。",+ "label": "缺货下单上限",+ "placeholder": "无限量"+ },+ "barcode": {+ "label": "条形码"+ },+ "country_of_origin": {+ "label": "原产国"+ },+ "customs_description": {+ "label": "海关申报描述",+ "placeholder": "货物的简明描述"+ },+ "depth": {+ "label": "深度"+ },+ "dimensions_unit": {+ "label": "单位"+ },+ "height": {+ "label": "高度"+ },+ "hs_code": {+ "label": "HS 编码",+ "placeholder": "例如 640411"+ },+ "preorder_ships_at": {+ "help": "你预计发出预购订单的时间。作为交付承诺向顾客展示;该日期过后预购结束。",+ "label": "发货时间",+ "placeholder": "选择日期"+ },+ "preorderable": {+ "help": "在有货之前销售此变体。用缺货下单上限来限制数量,将到货数量填入库存,或留空表示无限量。",+ "label": "可预购"+ },+ "sku": {+ "label": "SKU",+ "placeholder": "PRODUCT-RED-S"+ },+ "weight": {+ "label": "重量"+ },+ "weight_unit": {+ "label": "单位"+ },+ "width": {+ "label": "宽度"+ }}},"image_upload": {@@ -752,6 +856,241 @@"edit_sheet_title": "编辑库存位置","search_placeholder": "搜索库存位置…"}+ },+ "products": {+ "add_cta": "添加商品",+ "bulk": {+ "add_categories_action": "添加到分类…",+ "add_channels_action": "添加到销售渠道…",+ "add_collections_action": "添加到系列",+ "add_tags_action": "添加标签…",+ "categories_add_description": "选择要将这些商品添加到的分类。",+ "categories_add_failed": "将商品添加到分类失败",+ "categories_add_title": "添加到分类",+ "categories_added": "已将 {n} 个商品添加到分类",+ "categories_remove_description": "选择要将这些商品从中移除的分类。",+ "categories_remove_failed": "将商品从分类中移除失败",+ "categories_remove_title": "从分类中移除",+ "categories_removed": "已将 {n} 个商品从分类中移除",+ "channels_add_description": "选择要上架这些商品的销售渠道。",+ "channels_add_failed": "在销售渠道上架商品失败",+ "channels_add_title": "添加到销售渠道",+ "channels_added": "已在销售渠道上架 {n} 个商品",+ "channels_remove_description": "选择要将这些商品下架的销售渠道。",+ "channels_remove_failed": "将商品从销售渠道下架失败",+ "channels_remove_title": "从销售渠道中移除",+ "channels_removed": "已将 {n} 个商品从销售渠道下架",+ "collections_add_description": "所选商品将被添加到您选择的每个系列。",+ "collections_add_failed": "无法将商品添加到系列",+ "collections_add_title": "添加到系列",+ "collections_added": "商品已添加到系列",+ "collections_remove_description": "所选商品将从您选择的每个系列中移除。",+ "collections_remove_failed": "无法从系列中移除商品",+ "collections_remove_title": "从系列中移除",+ "collections_removed": "商品已从系列中移除",+ "delete_confirm": {+ "message": "所选商品将被移除。此操作无法撤销。",+ "title": "删除 {n} 个商品?"+ },+ "delete_failed": "删除商品失败",+ "deleted": "已删除 {n} 个商品",+ "remove_categories_action": "从分类中移除…",+ "remove_channels_action": "从销售渠道中移除…",+ "remove_collections_action": "从系列中移除",+ "remove_tags_action": "移除标签…",+ "set_status_action": "设置状态…",+ "status_sheet_description": "选择要应用到所选商品的状态。",+ "status_sheet_title": "设置商品状态",+ "status_update_failed": "更新商品状态失败",+ "status_updated": "已更新 {n} 个商品的状态",+ "tags_add_description": "选择或创建要添加到这些商品的标签。",+ "tags_add_failed": "添加标签失败",+ "tags_add_title": "添加标签",+ "tags_added": "已为 {n} 个商品添加标签",+ "tags_remove_description": "选择要从这些商品移除的标签。",+ "tags_remove_failed": "移除标签失败",+ "tags_remove_title": "移除标签",+ "tags_removed": "已从 {n} 个商品移除标签"+ },+ "clone_failed": "复制商品失败",+ "clone_succeeded": "商品已复制",+ "delete_failed": "删除商品失败",+ "delete_succeeded": "商品已删除",+ "edit": {+ "bulk_prices": {+ "no_variants": "至少添加一个变体以开始编辑价格。"+ }+ },+ "inventory": {+ "in_stock": "库存 {{count}} 件",+ "in_stock_short": "有库存",+ "on_backorder": "可延期交货",+ "out_of_stock": "缺货"+ },+ "media_empty": "暂无媒体。",+ "media_upload": "上传媒体",+ "new": {+ "create_failed": "创建商品失败",+ "create_succeeded": "商品已创建",+ "description": "设置您的商品 — 添加变体、价格、库存、媒体和自定义字段",+ "preview_slug_placeholder": "your-product-slug",+ "save_label": "创建商品",+ "title": "新建商品"+ },+ "options": {+ "add_value": "添加选项值",+ "sheet_title_create": "创建选项类型",+ "sheet_title_edit": "编辑选项类型",+ "table": {+ "values": "值"+ },+ "values_empty": "暂无值。",+ "values_section": "值"+ },+ "price_lists": {+ "activate": "启用",+ "activate_confirm": {+ "message": "“{{name}}”将立即应用于符合条件的客户,并保持有效,直至手动停用。",+ "message_with_end": "“{{name}}”将立即应用于符合条件的客户,并保持有效,直至手动停用或到达结束日期({{ends_at}})。",+ "title": "激活价格列表?"+ },+ "add_cta": "新建价格表",+ "add_products_cta": "添加商品",+ "add_rule": "添加规则",+ "add_rule_help": "选择要配置的规则类型。",+ "basics_section": "基本信息",+ "deactivate": "停用",+ "deactivate_confirm": {+ "message": "\"{{name}}\" 将立即对客户停止生效。已有订单不受影响。",+ "title": "停用价格表?"+ },+ "delete_confirm": {+ "message": "移除\"{{name}}\"将删除其价格。此操作无法撤销。",+ "title": "删除价目表?"+ },+ "edit_prices": {+ "add_products_link": "添加商品",+ "columns": {+ "compare_at_price": "对比价",+ "price": "价格",+ "product": "商品",+ "sku": "SKU",+ "variant": "变体"+ },+ "compare_at_aria": "{{label}} 的对比价",+ "count_summary_one": "{{count}} 个 {{currency}} 价格",+ "count_summary_other": "{{count}} 个 {{currency}} 价格",+ "currency_label": "货币",+ "dirty_summary_one": "{{count}} 项未保存的更改",+ "dirty_summary_other": "{{count}} 项未保存的更改",+ "discard_confirm": {+ "message_close_one": "您有 {{count}} 个未保存的价格。关闭将放弃它。",+ "message_close_other": "您有 {{count}} 个未保存的价格。关闭将放弃它们。",+ "message_currency": "切换货币将放弃您未保存的价格。",+ "title": "放弃未保存的价格?"+ },+ "empty": "此列表中暂无商品。",+ "empty_no_base_prices": "暂无基础价格。",+ "empty_pick_products": "在价目表中选择商品以开始设置价格。",+ "grid_aria": "变体价格",+ "no_matches_for_filters": "没有价格符合当前筛选条件。",+ "no_matches_for_search": "没有价格匹配 \"{{search}}\"。",+ "price_aria": "{{label}} 的价格",+ "save_cta": "保存价格",+ "save_failed": "保存价格失败",+ "save_success_one": "已保存 {{count}} 个价格",+ "save_success_other": "已保存 {{count}} 个价格",+ "search_placeholder": "按商品、SKU 或选项搜索…",+ "title": "编辑价格 — {{name}}",+ "variant_default": "默认"+ },+ "edit_prices_cta": "编辑价格",+ "no_changes": "没有需要保存的更改。",+ "prices_help_one": "已配置 {{count}} 个价格。打开批量编辑器进行更新。",+ "prices_help_other": "已配置 {{count}} 个价格。打开批量编辑器进行更新。",+ "prices_help_zero": "在上方选择商品以生成占位价格,然后打开批量编辑器。",+ "products_empty": "暂无商品——添加一个以开始编辑价格。",+ "products_empty_search": "没有匹配的商品",+ "products_help": "选择此价格表适用的商品。保存时会创建占位价格——请在下方填写。",+ "products_search_placeholder": "按名称搜索商品…",+ "products_section": "商品",+ "products_selected_one": "已选择 {{count}} 个商品。",+ "products_selected_other": "已选择 {{count}} 个商品。",+ "remove_rule_confirm": {+ "message": "保存价格列表时将移除该规则。",+ "title": "移除规则?"+ },+ "remove_selected": "移除所选",+ "rule_click_to_configure": "点击进行配置",+ "rule_default_description": "调整该规则的参数。",+ "rule_name_overflow": "{{names}} 等 {{count}} 项",+ "rule_no_options": "此规则没有可配置选项——只要存在即应用该约束。",+ "rule_types_all_used": "所有可用的规则类型均已添加到此价格表。",+ "rule_types_empty": "未注册任何规则类型。",+ "rules_empty": "暂无规则——此价格表适用于所有购物者。",+ "rules_help": "决定此价格表何时生效的条件。使用“全部”要求满足每条规则,使用“任意”取第一个匹配项。",+ "rules_section": "规则",+ "schedule": "安排",+ "schedule_confirm": {+ "message": "\"{{name}}\" 将于 {{starts_at}} 上线,并持续生效至其结束日期。",+ "title": "排定价目表上线时间?"+ },+ "schedule_section": "安排",+ "sheet_title_create": "创建价格表",+ "sheet_title_edit": "编辑价格表",+ "subtitle": "针对客户群体、地区或批量层级的定向定价。",+ "title": "价格表",+ "unschedule": "取消安排",+ "unschedule_confirm": {+ "message": "\"{{name}}\" 将不再在其排定的日期激活。您可以稍后重新排期或手动激活它。",+ "title": "取消价格表的排期?"+ }+ },+ "publishing": {+ "caption_hidden_after": "将于 {{date}} 下架",+ "caption_live": "现在对客户可见",+ "caption_not_available": "已隐藏 — 产品状态为 {{product_status}}",+ "caption_scheduled": "将于 {{date}} 上线",+ "caption_unpublished": "已于 {{date}} 隐藏",+ "caption_window": "上线时间 {{start}} → {{end}}",+ "empty": "尚未在任何销售渠道上展示。",+ "inactive_marker": "未启用",+ "manage_cta": "管理",+ "manage_description": "选择哪些销售渠道展示此产品。关闭某个渠道即可在所有位置下架。",+ "manage_title": "管理销售渠道",+ "no_channels": "暂无可用的销售渠道。请在 设置 → 销售渠道 中创建。",+ "status_hidden": "已隐藏",+ "status_live": "已上线",+ "status_not_available": "不可用",+ "status_scheduled": "已排期",+ "title": "发布"+ },+ "section_basics": "基本信息",+ "section_categorization": "分类",+ "section_inventory": "库存",+ "section_media": "媒体",+ "section_organization": "组织",+ "section_pricing": "价格",+ "section_seo": "SEO",+ "section_variants": "变体",+ "status_options": {+ "active": "启用",+ "archived": "已归档",+ "draft": "草稿"+ },+ "transfers": {+ "description_external": "外部收货至 <strong>{{destination}}</strong>。",+ "description_internal": "库存从 <strong>{{source}}</strong> 调拨至 <strong>{{destination}}</strong>。",+ "edit_sheet_title": "调拨 {{number}}",+ "items_empty": "暂无商品。",+ "section_from": "从",+ "section_items": "商品",+ "section_to": "至",+ "sheet_title": "新建库存调拨"+ },+ "variants_empty": "暂无变体。",+ "variants_one": "{{count}} 个变体",+ "variants_other": "{{count}} 个变体"}},"resource_picker": {@@ -851,6 +1190,243 @@"positive_number": "{{field}} 必须大于 0","required": "{{field}} 为必填项","store_name_required": "商店名称为必填项"+ },+ "products": {+ "autocomplete": {+ "empty": "没有匹配的商品",+ "placeholder": "按名称搜索商品…"+ },+ "category_search_placeholder": "搜索分类…",+ "collection_search_placeholder": "搜索系列…",+ "columns": {+ "in_stock": "库存",+ "price": "价格",+ "sku": "SKU"+ },+ "delete_confirm": "确定要删除此产品吗?",+ "delete_label": "删除产品",+ "inventory": {+ "backorder_aria": "允许在 {{location}} 延期交货",+ "columns": {+ "backorder": "延期交货",+ "location": "库存地点",+ "on_hand": "现有库存"+ },+ "empty_no_locations": "在「设置」中添加库存地点以开始跟踪库存。",+ "empty_no_variants": "库存水平按库存地点管理。添加一个变体以开始跟踪库存。",+ "on_hand_aria": "{{location}} 的现有库存",+ "unknown_location": "未知位置"+ },+ "media": {+ "add_from_library": "从媒体库添加",+ "add_video": "添加视频链接",+ "add_video_submit": "添加视频",+ "add_video_title": "添加视频链接",+ "assigned_variants_help": "选择此图片所代表的变体。留空则应用于所有变体。",+ "assigned_variants_label": "关联的变体",+ "delete_confirm": "删除此媒体?此操作无法撤销。",+ "drop_hint": "将媒体拖放到此处,或点击浏览",+ "edit_title": "编辑媒体",+ "file_types_hint": "图片(PNG、JPG、WebP)和视频(MP4、WebM、MOV)",+ "focal_point_help": "点击图片,设置裁剪时需要保留的画面位置。",+ "focal_point_reset": "重置",+ "unsupported_file": "有 {{count}} 个文件未添加 — 仅支持图片和视频。",+ "upload_failed": "上传 {{name}} 失败:{{message}}",+ "upload_status_failed": "失败",+ "video_preview_title": "视频预览",+ "video_url_invalid": "请输入 YouTube 或 Vimeo 链接。"+ },+ "no_categories_found": "未找到分类",+ "no_collections_found": "未找到系列",+ "options": {+ "add_cta": "添加选项类型",+ "count_one": "{{count}} 个值",+ "count_other": "{{count}} 个值",+ "create_description": "定义变体可使用的选项(例如尺寸、颜色)。",+ "create_label": "创建选项类型",+ "delete_confirm": {+ "message": "此操作还将删除其所有值。使用这些值的变体将失去这些值。",+ "title": "删除选项类型?"+ },+ "edit_description": "编辑选项类型及其值。",+ "image_upload_failed": "图片上传失败",+ "kinds": {+ "buttons": "按钮",+ "color_swatch": "颜色色板",+ "dropdown": "下拉菜单"+ },+ "value_label_placeholder": "例如 Small",+ "value_name_placeholder": "例如 small",+ "values_help": "拖动值以重新排序。第一个值是新变体的默认值。"+ },+ "price_lists": {+ "errors": {+ "failed_to_activate": "启用价目表失败",+ "failed_to_deactivate": "停用价目表失败"+ },+ "messages": {+ "activated": "价目表已启用",+ "created": "价目表已创建",+ "deactivated": "价目表已停用",+ "deleted": "价目表已删除",+ "updated": "价目表已更新"+ },+ "validation": {+ "ends_after_starts": "必须晚于开始日期。"+ }+ },+ "product_type_adds_options_one": "此类型会为新商品添加{{options}}。",+ "product_type_adds_options_other": "此类型会为新商品添加{{options}}。",+ "product_type_placeholder": "无商品类型",+ "save_label": "保存产品",+ "seo": {+ "meta_description_placeholder": "SEO 描述",+ "meta_title_placeholder": "SEO 标题",+ "slug_placeholder": "product-url-handle"+ },+ "tax_category_placeholder": "选择税务类别",+ "transfers": {+ "create_description": "在库存地点之间调拨库存,或从外部供应商收货。",+ "delete_confirm": {+ "message": "此调拨创建的库存变动将被撤销。",+ "title": "删除此调拨?"+ },+ "destination_placeholder": "选择目标地点",+ "details_card": "详情",+ "different_locations_error": "来源地点和目标地点必须不同。",+ "external_label": "外部(供应商收货)",+ "fields": {+ "created": "创建时间",+ "external_receive": "外部接收",+ "immutable_note": "库存调拨一经创建即不可更改。",+ "internal": "内部",+ "reference": "参考编号",+ "type": "类型"+ },+ "items_table": {+ "qty": "数量",+ "sku": "SKU",+ "variant": "变体"+ },+ "new_cta": "新建调拨",+ "reference_label": "参考编号",+ "reference_placeholder": "采购单号、供应商发票……",+ "review_description": "创建前请检查此调拨。创建后将无法更改商品项。",+ "search_items_placeholder": "按名称或 SKU 搜索(3 个以上字符)…"+ },+ "variants": {+ "add_option": "添加选项",+ "bulk_edit": {+ "grid_aria": "变体批量编辑表格",+ "title": "批量编辑变体",+ "trigger": "批量编辑",+ "unset": "无"+ },+ "create_option_type": "新建选项类型",+ "create_option_type_title": "新选项类型",+ "create_value": "新值",+ "create_value_title": "新选项值",+ "default_variant": "默认变体",+ "edit_row_aria": "编辑 {{name}}",+ "edit_variant": "编辑变体 — {{name}}",+ "errors": {+ "failed_to_create_option_type": "创建选项类型失败",+ "failed_to_create_value": "创建值失败"+ },+ "keep": "全部保留",+ "option_type_label": "选项类型",+ "option_type_placeholder": "请选择选项类型",+ "orphan_warning": "有 {{count}} 个现有变体将在保存时被移除:",+ "orphan_warning_one": "有 {{count}} 个现有变体不再与所选选项匹配,将在保存时被移除:",+ "orphan_warning_other": "有 {{count}} 个现有变体不再与所选选项匹配,将在保存时被移除:",+ "remove_row_aria": "移除 {{name}}",+ "sheet": {+ "availability": "可用性",+ "customs": "海关",+ "customs_help": "当该商品跨境运输时用于海关申报单。",+ "identity": "标识",+ "tax_category_placeholder": "继承自商品"+ },+ "title": "变体",+ "variant_label": "变体"+ }+ },+ "product_types": {+ "add_cta": "添加商品类型",+ "add_sheet_title": "新建商品类型",+ "affects_new_only": {+ "description": "编辑选项类型和分类只影响今后创建的商品。已使用此类型的商品保持不变。下方的自定义字段始终显示在此类型的每个商品上。",+ "title": "更改仅影响新商品"+ },+ "apply_to_products": {+ "confirm_label": "应用",+ "cta_one": "应用到 {{count}} 个现有商品",+ "cta_other": "应用到 {{count}} 个现有商品",+ "message_one": "这将为 {{count}} 个商品添加此类型缺失的选项类型和分类。不会删除任何内容。",+ "message_other": "这将为 {{count}} 个商品添加此类型缺失的选项类型和分类。不会删除任何内容。",+ "title": "应用到现有商品"+ },+ "create_description": "将商品分组并定义其交付方式。",+ "create_label": "创建商品类型",+ "custom_delivery_profile": "自定义",+ "default_delivery_profile": "店铺默认配置方案",+ "delete_confirm": {+ "message": "确定要删除“{{name}}”吗?仍被商品使用的类型无法删除。",+ "title": "删除商品类型"+ },+ "edit_description": "修改名称或此类型商品的交付方式。",+ "edit_sheet_title": "编辑商品类型",+ "empty": "暂无商品类型",+ "messages": {+ "applied_to_products": "正在应用到现有商品",+ "created": "商品类型已创建",+ "deleted": "商品类型已删除",+ "updated": "商品类型已更新"+ },+ "no_categories": "暂无分类",+ "no_option_types": "暂无选项类型",+ "option_type_search_placeholder": "搜索选项类型",+ "search_placeholder": "搜索商品类型"+ },+ "calculators": {+ "default_refund_amount": "默认退款金额",+ "default_tax": "默认税费",+ "digital_delivery": "数字交付",+ "flat_percent_item_total": "固定百分比",+ "flat_rate": "固定费率",+ "flexi_rate": "弹性费率",+ "per_item": "按件计费",+ "percent_on_line_item": "按订单项百分比",+ "price_sack": "价格袋",+ "tiered_flat_rate": "阶梯固定费率",+ "tiered_percent": "阶梯百分比"+ },+ "stock_levels": {+ "messages": {+ "stock_level_deleted": "库存水平已删除",+ "stock_updated": "库存已更新"+ }+ },+ "option_types": {+ "columns": {+ "values": "值"+ },+ "kinds": {+ "buttons": "按钮",+ "color_swatch": "颜色样本",+ "dropdown": "下拉菜单"+ },+ "messages": {+ "created": "选项类型已创建",+ "deleted": "选项类型已删除",+ "updated": "选项类型已更新"+ },+ "table": {+ "empty": "暂无选项类型",+ "search_placeholder": "按名称搜索…"+ },+ "value_count_one": "{{count}} 个值",+ "value_count_other": "{{count}} 个值"}}}diff --git a/packages/dashboard/src/components/spree/products/add-video-dialog.tsx b/packages/dashboard-core/src/products/add-video-dialog.tsxsimilarity index 97%rename from packages/dashboard/src/components/spree/products/add-video-dialog.tsxrename to packages/dashboard-core/src/products/add-video-dialog.tsxindex 9cfe503826..fc6ef5963e 100644--- a/packages/dashboard/src/components/spree/products/add-video-dialog.tsx+++ b/packages/dashboard-core/src/products/add-video-dialog.tsx@@ -1,3 +1,4 @@+import { isSupportedVideoUrl } from '@spree/dashboard-core'import {Button,Dialog,@@ -14,7 +15,6 @@ import {} from '@spree/dashboard-ui'import { type FormEvent, useState } from 'react'import { useTranslation } from 'react-i18next'-import { isSupportedVideoUrl } from '../../../lib/video-url'interface Props {open: booleandiff --git a/packages/dashboard/src/components/spree/products/bulk-variants-dialog.tsx b/packages/dashboard-core/src/products/bulk-variants-dialog.tsxsimilarity index 97%rename from packages/dashboard/src/components/spree/products/bulk-variants-dialog.tsxrename to packages/dashboard-core/src/products/bulk-variants-dialog.tsxindex f702f81588..6f8a96123e 100644--- a/packages/dashboard/src/components/spree/products/bulk-variants-dialog.tsx+++ b/packages/dashboard-core/src/products/bulk-variants-dialog.tsx@@ -1,3 +1,4 @@+import type { ProductFormValues, VariantFormValues } from '@spree/dashboard-core'import { useCountries, useCountryDisplayName } from '@spree/dashboard-core'import {type BulkVariantsChange,@@ -13,10 +14,11 @@ import {import { useCallback, useEffect, useMemo, useRef } from 'react'import { type UseFormReturn, useWatch } from 'react-hook-form'import { useTranslation } from 'react-i18next'-import { useOptionTypes } from '../../../hooks/use-option-types'-import { useTaxCategories } from '../../../hooks/use-tax-categories'-import type { ProductFormValues, VariantFormValues } from '../../../schemas/product'import { normalizeCustomsDescription, normalizeHsCode } from './normalize-customs'+import {+ useFormOptionTypes as useOptionTypes,+ useFormTaxCategories as useTaxCategories,+} from './use-product-form-data'import { composeOptionsText } from './variants-matrix'const WEIGHT_UNITS = ['g', 'kg', 'lb', 'oz'] as const@@ -44,7 +46,7 @@ interface Props {export function BulkVariantsDialog({ form, open, onOpenChange }: Props) {const { t } = useTranslation()const variants = useWatch({ control: form.control, name: 'variants' }) ?? []- const { data: optionTypesData } = useOptionTypes({ limit: 100 })+ const { data: optionTypesData } = useOptionTypes()const optionTypes = useMemo(() => optionTypesData?.data ?? [], [optionTypesData])const { data: taxCategoriesResponse } = useTaxCategories()const taxCategories = taxCategoriesResponse?.data ?? []diff --git a/packages/dashboard/src/components/spree/bulk-price-editor/currency-parts.ts b/packages/dashboard-core/src/products/currency-parts.tssimilarity index 100%rename from packages/dashboard/src/components/spree/bulk-price-editor/currency-parts.tsrename to packages/dashboard-core/src/products/currency-parts.tsdiff --git a/packages/dashboard/src/components/spree/products/inventory-section.tsx b/packages/dashboard-core/src/products/inventory-section.tsxsimilarity index 91%rename from packages/dashboard/src/components/spree/products/inventory-section.tsxrename to packages/dashboard-core/src/products/inventory-section.tsxindex 5e87c6aa75..af7a6facc5 100644--- a/packages/dashboard/src/components/spree/products/inventory-section.tsx+++ b/packages/dashboard-core/src/products/inventory-section.tsx@@ -1,3 +1,4 @@+import type { ProductFormValues, StockLevelFormValues } from '@spree/dashboard-core'import { useStockLocations } from '@spree/dashboard-core'import {DataGrid,@@ -6,14 +7,12 @@ import {ReadOnlyCell,SwitchCell,} from '@spree/dashboard-ui'-import { Link } from '@tanstack/react-router'import type { ColumnDef } from '@tanstack/react-table'import { ExternalLinkIcon } from 'lucide-react'import { useCallback, useMemo } from 'react'import { type UseFormReturn, useWatch } from 'react-hook-form'import { useTranslation } from 'react-i18next'-import { useOptionTypes } from '../../../hooks/use-option-types'-import type { ProductFormValues, StockLevelFormValues } from '../../../schemas/product'+import { useFormOptionTypes as useOptionTypes } from './use-product-form-data'import { composeOptionsText } from './variants-matrix'interface InventoryRow {@@ -39,10 +38,16 @@ const LOW_STOCK_THRESHOLD = 5interface InventorySectionProps {// eslint-disable-next-line @typescript-eslint/no-explicit-anyform: UseFormReturn<ProductFormValues, any, any>- storeId: string+ /**+ * Where a stock location is managed, if this panel has such a page. Built+ * by the caller because each panel's router owns its own paths and the+ * shared component cannot name a route that may not exist. Without one the+ * location renders as plain text.+ */+ stockLocationHref?: (stockLocationId: string) => string}-export function InventorySection({ form, storeId }: InventorySectionProps) {+export function InventorySection({ form, stockLocationHref }: InventorySectionProps) {const { t } = useTranslation()// Subscribe to the array so the rows recompute when the user adds/removes// a variant or edits a stock item. Cell edits route through findOrCreate@@ -50,7 +55,7 @@ export function InventorySection({ form, storeId }: InventorySectionProps) {const variants = useWatch({ control: form.control, name: 'variants' }) ?? []const { data: stockLocationsData, isLoading: stockLocationsLoading } = useStockLocations()const stockLocations = stockLocationsData?.data ?? []- const { data: optionTypesData } = useOptionTypes({ limit: 100 })+ const { data: optionTypesData } = useOptionTypes()const optionTypes = useMemo(() => optionTypesData?.data ?? [], [optionTypesData])// Derive "this product has real variants" from live form state, not the@@ -140,16 +145,14 @@ export function InventorySection({ form, storeId }: InventorySectionProps) {if (r.kind !== 'item') return nullreturn (<ReadOnlyCell>- {r.stockLocationId ? (- <Link- to="/$storeId/settings/stock-locations"- params={{ storeId }}- search={{ edit: r.stockLocationId }}+ {r.stockLocationId && stockLocationHref ? (+ <a+ href={stockLocationHref(r.stockLocationId)}className="inline-flex items-center gap-1 hover:underline">{r.stockLocationName}<ExternalLinkIcon className="size-3 text-muted-foreground" />- </Link>+ </a>) : (<span>{r.stockLocationName}</span>)}@@ -217,7 +220,7 @@ export function InventorySection({ form, storeId }: InventorySectionProps) {},},],- [patchStockLevel, storeId, t],+ [patchStockLevel, stockLocationHref, t],)if (rows.length === 0) {diff --git a/packages/dashboard/src/components/spree/products/media-edit-sheet.tsx b/packages/dashboard-core/src/products/media-edit-sheet.tsxsimilarity index 98%rename from packages/dashboard/src/components/spree/products/media-edit-sheet.tsxrename to packages/dashboard-core/src/products/media-edit-sheet.tsxindex 3d6b0a72a0..14cd047ca1 100644--- a/packages/dashboard/src/components/spree/products/media-edit-sheet.tsx+++ b/packages/dashboard-core/src/products/media-edit-sheet.tsx@@ -1,5 +1,5 @@-import type { Variant } from '@spree/admin-sdk'-import { ImageUploadField, useTranslation } from '@spree/dashboard-core'+import type { ProductFormValues } from '@spree/dashboard-core'+import { ImageUploadField, parseVideoUrl, useTranslation } from '@spree/dashboard-core'import {Button,Field,@@ -17,8 +17,7 @@ import i18n from 'i18next'import { CheckIcon } from 'lucide-react'import { useCallback, useEffect, useRef } from 'react'import type { UseFormReturn } from 'react-hook-form'-import { parseVideoUrl } from '../../../lib/video-url'-import type { ProductFormValues } from '../../../schemas/product'+import type { PanelVariant as Variant } from './product-types'// The fields this sheet edits. Snapshot, cancel-restore and the type all derive// from this one list, so a new editable field can't reach the form and then bediff --git a/packages/dashboard/src/components/spree/products/normalize-customs.test.ts b/packages/dashboard-core/src/products/normalize-customs.test.tssimilarity index 100%rename from packages/dashboard/src/components/spree/products/normalize-customs.test.tsrename to packages/dashboard-core/src/products/normalize-customs.test.tsdiff --git a/packages/dashboard/src/components/spree/products/normalize-customs.ts b/packages/dashboard-core/src/products/normalize-customs.tssimilarity index 100%rename from packages/dashboard/src/components/spree/products/normalize-customs.tsrename to packages/dashboard-core/src/products/normalize-customs.tsdiff --git a/packages/dashboard/src/components/spree/bulk-price-editor/normalize-money.test.ts b/packages/dashboard-core/src/products/normalize-money.test.tssimilarity index 100%rename from packages/dashboard/src/components/spree/bulk-price-editor/normalize-money.test.tsrename to packages/dashboard-core/src/products/normalize-money.test.tsdiff --git a/packages/dashboard/src/components/spree/bulk-price-editor/normalize-money.ts b/packages/dashboard-core/src/products/normalize-money.tssimilarity index 100%rename from packages/dashboard/src/components/spree/bulk-price-editor/normalize-money.tsrename to packages/dashboard-core/src/products/normalize-money.tsdiff --git a/packages/dashboard/src/components/spree/bulk-price-editor/product-bulk-price-editor.tsx b/packages/dashboard-core/src/products/product-bulk-price-editor.tsxsimilarity index 94%rename from packages/dashboard/src/components/spree/bulk-price-editor/product-bulk-price-editor.tsxrename to packages/dashboard-core/src/products/product-bulk-price-editor.tsxindex 5de787f04b..9fe4447cfd 100644--- a/packages/dashboard/src/components/spree/bulk-price-editor/product-bulk-price-editor.tsx+++ b/packages/dashboard-core/src/products/product-bulk-price-editor.tsx@@ -1,13 +1,12 @@+import type { ProductFormValues, VariantPriceFormValues } from '@spree/dashboard-core'import { type BulkPriceRow, BulkPriceTable } from '@spree/dashboard-ui'import { useCallback, useMemo } from 'react'import { type UseFormReturn, useWatch } from 'react-hook-form'import { useTranslation } from 'react-i18next'-import { useCurrencyLocale } from '../../../hooks/use-currency-locale'-import { useOptionTypes } from '../../../hooks/use-option-types'-import type { ProductFormValues, VariantPriceFormValues } from '../../../schemas/product'import { composeOptionsText } from '../products/variants-matrix'import { currencyParts } from './currency-parts'import { normalizeMoneyInput } from './normalize-money'+import { useFormOptionTypes as useOptionTypes } from './use-product-form-data'interface Props {// eslint-disable-next-line @typescript-eslint/no-explicit-any@@ -35,9 +34,12 @@ interface Props {export function ProductBulkPriceEditor({ form, currency, productName }: Props) {const { t } = useTranslation()const variants = useWatch({ control: form.control, name: 'variants' }) ?? []- const { data: optionTypesData } = useOptionTypes({ limit: 100 })+ const { data: optionTypesData } = useOptionTypes()const optionTypes = useMemo(() => optionTypesData?.data ?? [], [optionTypesData])- const localeForCurrency = useCurrencyLocale()+ // Formatting locale is the operator dashboard's market lookup; without it+ // Intl falls back to the browser's, which is the right answer for a panel+ // that has no markets to consult.+ const localeForCurrency = (_currency?: string): string | undefined => undefined// Format the grid in the currency's market locale (e.g. EUR → `de`, comma// decimal). The same locale normalizes the merchant's input back to canonicaldiff --git a/packages/dashboard/src/components/spree/products/product-form-cards.tsx b/packages/dashboard-core/src/products/product-form-cards.tsxsimilarity index 87%rename from packages/dashboard/src/components/spree/products/product-form-cards.tsxrename to packages/dashboard-core/src/products/product-form-cards.tsxindex c41d3d9a34..44bc806dbb 100644--- a/packages/dashboard/src/components/spree/products/product-form-cards.tsx+++ b/packages/dashboard-core/src/products/product-form-cards.tsx@@ -13,14 +13,15 @@ import {useSortable,} from '@dnd-kit/sortable'import { CSS } from '@dnd-kit/utilities'-import type { Media, Product, Variant } from '@spree/admin-sdk'+import type { MediaType, ProductFormValues } from '@spree/dashboard-core'import {- adminClient,+ getApiClient,MediaPickerSheet,+ parseVideoUrl,ResourceMultiAutocomplete,TagCombobox,useDirectUpload,- useStore,+ useOptionalStore,} from '@spree/dashboard-core'import {Button,@@ -38,6 +39,7 @@ import {FieldError,FieldLabel,Input,+ RichTextEditor,Select,SelectContent,SelectItem,@@ -61,20 +63,27 @@ import {import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { type Control, Controller, type UseFormReturn, useWatch } from 'react-hook-form'import { useTranslation } from 'react-i18next'-import { categoryAutocompleteProps, useCategories } from '../../../hooks/use-categories'-import { collectionAutocompleteProps, useCollections } from '../../../hooks/use-collections'-import { useDeliveryProfiles } from '../../../hooks/use-delivery-profiles'-import { useOptionTypesByIds } from '../../../hooks/use-option-types'-import { useDeleteProductMedia } from '../../../hooks/use-product-media'-import { useProductType, useProductTypes } from '../../../hooks/use-product-types'-import { useTaxCategories } from '../../../hooks/use-tax-categories'-import { parseVideoUrl } from '../../../lib/video-url'-import type { MediaType, ProductFormValues } from '../../../schemas/product'-import { ProductBulkPriceEditor } from '../bulk-price-editor/product-bulk-price-editor'-import { MediaRichTextEditor } from '../media-rich-text-editor'import { AddVideoDialog } from './add-video-dialog'import { InventorySection } from './inventory-section'import { MediaEditSheet } from './media-edit-sheet'+import { ProductBulkPriceEditor } from './product-bulk-price-editor'+import type {+ PanelMedia as Media,+ PanelProduct as Product,+ PanelVariant as Variant,+} from './product-types'+import {+ categoryAutocompleteProps,+ collectionAutocompleteProps,+ useFormCategories as useCategories,+ useFormCollections as useCollections,+ useFormDeleteProductMedia as useDeleteProductMedia,+ useFormDeliveryProfiles as useDeliveryProfiles,+ useFormOptionTypesByIds as useOptionTypesByIds,+ useFormProductType as useProductType,+ useFormProductTypes as useProductTypes,+ useFormTaxCategories as useTaxCategories,+} from './use-product-form-data'import { VariantsSection } from './variants-section'// eslint-disable-next-line @typescript-eslint/no-explicit-any@@ -84,7 +93,26 @@ type FormCardProps = { form: UseFormReturn<ProductFormValues, any, any> }// General// ----------------------------------------------------------------------------export function GeneralCard({ form }: FormCardProps) {+/**+ * The description editor a panel supplies.+ *+ * The operator's dashboard passes its media-aware editor, so a merchant can+ * embed a file from the library. A seller has no library to embed from, so+ * they get the plain editor — which is the default, keeping the card usable+ * without the injection.+ */+export type RichTextEditorComponent = React.ComponentType<{+ id?: string+ ariaLabel?: string+ value?: string+ onChange: (value: string) => void+ placeholder?: string+}>++export function GeneralCard({+ form,+ descriptionEditor: DescriptionEditor = RichTextEditor,+}: FormCardProps & { descriptionEditor?: RichTextEditorComponent }) {const { t } = useTranslation()const { errors } = form.formStatereturn (@@ -111,7 +139,7 @@ export function GeneralCard({ form }: FormCardProps) {name="description"control={form.control}render={({ field }) => (- <MediaRichTextEditor+ <DescriptionEditorid="product-description"ariaLabel={t('admin.fields.description.label')}value={field.value}@@ -142,10 +170,30 @@ export function VariantsCard({ form, seedFromType }: FormCardProps & { seedFromT// already holds every currency's prices for every variant.// ----------------------------------------------------------------------------export function PricesCard({ form, productName }: FormCardProps & { productName: string }) {+export function PricesCard({+ form,+ productName,+ currencies: currenciesProp,+ defaultCurrency: defaultCurrencyProp,+}: FormCardProps & {+ productName: string+ /**+ * A panel with no store context supplies these itself. The operator's has a+ * StoreProvider; a seller's tenant is a seller and the store is derived+ * server-side, so it passes the currencies its profile reports.+ */+ currencies?: string[]+ defaultCurrency?: string+}) {const { t } = useTranslation()- const { currencies, defaultCurrency } = useStore()- const [currency, setCurrency] = useState(defaultCurrency)+ const store = useOptionalStore()+ const currencies = currenciesProp ?? store?.currencies ?? []+ const defaultCurrency = defaultCurrencyProp ?? store?.defaultCurrency ?? 'USD'+ // Not `useState(defaultCurrency)` alone: the store (or the seller's profile)+ // arrives after the first render, so a state seeded from the fallback would+ // stick and price everything in the wrong currency.+ const [selectedCurrency, setCurrency] = useState<string | null>(null)+ const currency = selectedCurrency ?? defaultCurrencyreturn (<Card>@@ -225,6 +273,7 @@ export function MediaCard({const [editingIndex, setEditingIndex] = useState<number | null>(null)const [addingVideo, setAddingVideo] = useState(false)const [pickingFromLibrary, setPickingFromLibrary] = useState(false)+ const mediaLibrary = getApiClient().mediaLibraryconst fileInputRef = useRef<HTMLInputElement>(null)const items = useWatch({ control: form.control, name: 'media' }) ?? []@@ -522,10 +571,13 @@ export function MediaCard({/><div className="flex flex-wrap gap-2 self-start">- <Button type="button" variant="outline" onClick={() => setPickingFromLibrary(true)}>- <LibraryIcon />- {t('admin.products.media.add_from_library')}- </Button>+ {/* Only a panel with a library to browse offers this. */}+ {mediaLibrary && (+ <Button type="button" variant="outline" onClick={() => setPickingFromLibrary(true)}>+ <LibraryIcon />+ {t('admin.products.media.add_from_library')}+ </Button>+ )}<Button type="button" variant="outline" onClick={() => setAddingVideo(true)}><FilmIcon />@@ -535,18 +587,22 @@ export function MediaCard({</CardContent></Card><AddVideoDialog open={addingVideo} onOpenChange={setAddingVideo} onAdd={handleAddVideo} />- <MediaPickerSheet<Media>- open={pickingFromLibrary}- onOpenChange={setPickingFromLibrary}- queryKey="product-media-library"- search={(query) =>- adminClient.media.list({- limit: 48,- ...(query ? { filename_cont: query } : {}),- })- }- onConfirm={handleAddFromLibrary}- />+ {/* Not merely closed — the sheet reads the store context on mount, and+ a panel without one has no library to pick from anyway. */}+ {mediaLibrary && (+ <MediaPickerSheet<Media>+ open={pickingFromLibrary}+ onOpenChange={setPickingFromLibrary}+ queryKey="product-media-library"+ search={async (query) =>+ (await mediaLibrary?.list({+ limit: 48,+ ...(query ? { filename_cont: query } : {}),+ })) ?? { data: [] }+ }+ onConfirm={handleAddFromLibrary}+ />+ )}{editingEntry && editingIndex !== null && (<MediaEditSheetform={form}@@ -693,7 +749,10 @@ function SortableMediaThumbnail({// Inventory// ----------------------------------------------------------------------------export function InventoryCard({ form, storeId }: FormCardProps & { storeId: string }) {+export function InventoryCard({+ form,+ stockLocationHref,+}: FormCardProps & { stockLocationHref?: (id: string) => string }) {const { t } = useTranslation()return (<Card>@@ -701,7 +760,7 @@ export function InventoryCard({ form, storeId }: FormCardProps & { storeId: stri<CardTitle>{t('admin.pages.products.section_inventory')}</CardTitle></CardHeader><CardContent>- <InventorySection form={form} storeId={storeId} />+ <InventorySection form={form} stockLocationHref={stockLocationHref} /></CardContent></Card>)@@ -901,35 +960,40 @@ export function CategorizationCard({ form }: FormCardProps) {)}</Field>- <Field>- <FieldLabel>{t('admin.fields.product.delivery_profile_id.label')}</FieldLabel>- <Controller- name="delivery_profile_id"- control={form.control}- render={({ field }) => (- <Select- value={field.value ?? defaultDeliveryProfileId ?? ''}- onValueChange={(v) => field.onChange(v || null)}- >- <SelectTrigger className="w-full">- <SelectValue>- {(v) => deliveryProfiles.find((profile) => profile.id === v)?.name ?? ''}- </SelectValue>- </SelectTrigger>- <SelectContent>- {deliveryProfiles.map((profile) => (- <SelectItem key={profile.id} value={profile.id}>- {profile.name}- </SelectItem>- ))}- </SelectContent>- </Select>- )}- />- <span className="text-muted-foreground text-xs">- {t('admin.fields.product.delivery_profile_id.help')}- </span>- </Field>+ {/* Marketplace configuration: a panel whose client registers no+ delivery profiles cannot write one, so it does not offer the+ field rather than showing an edit that goes nowhere. */}+ {deliveryProfiles.length > 0 && (+ <Field>+ <FieldLabel>{t('admin.fields.product.delivery_profile_id.label')}</FieldLabel>+ <Controller+ name="delivery_profile_id"+ control={form.control}+ render={({ field }) => (+ <Select+ value={field.value ?? defaultDeliveryProfileId ?? ''}+ onValueChange={(v) => field.onChange(v || null)}+ >+ <SelectTrigger className="w-full">+ <SelectValue>+ {(v) => deliveryProfiles.find((profile) => profile.id === v)?.name ?? ''}+ </SelectValue>+ </SelectTrigger>+ <SelectContent>+ {deliveryProfiles.map((profile) => (+ <SelectItem key={profile.id} value={profile.id}>+ {profile.name}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ )}+ />+ <span className="text-muted-foreground text-xs">+ {t('admin.fields.product.delivery_profile_id.help')}+ </span>+ </Field>+ )}<Field><FieldLabel>{t('admin.fields.product.category_ids.label')}</FieldLabel>diff --git a/packages/dashboard-core/src/products/product-form-mapping.ts b/packages/dashboard-core/src/products/product-form-mapping.tsnew file mode 100644index 0000000000..6cc83f0313--- /dev/null+++ b/packages/dashboard-core/src/products/product-form-mapping.ts@@ -0,0 +1,197 @@+import { i18n } from '../lib/i18n'+import type { MediaType, ProductFormValues, VariantFormValues } from './product-schema'+import type { PanelMedia, PanelProduct, PanelVariant } from './product-types'++/**+ * Between the API's shape and the form's.+ *+ * Shared by both panels for the same reason the cards are: the form is one+ * form, so what fills it and what it sends have to agree, and two copies of+ * this mapping would be two ways to disagree.+ */++export function variantToFormValues(variant: PanelVariant, position: number): VariantFormValues {+ return {+ id: variant.id,+ sku: variant.sku ?? null,+ barcode: variant.barcode ?? null,+ position,+ // Derive {name, value} pairs from option_values. The serializer carries+ // option_type_name on each OptionValue, so no extra expand is needed.+ options: (variant.option_values ?? []).map((ov) => ({+ name: ov.option_type_name,+ value: ov.name,+ })),+ weight: variant.weight ?? null,+ height: variant.height ?? null,+ width: variant.width ?? null,+ depth: variant.depth ?? null,+ weight_unit: variant.weight_unit ?? null,+ dimensions_unit: variant.dimensions_unit ?? null,+ hs_code: variant.hs_code ?? null,+ country_of_origin: variant.country_of_origin ?? null,+ customs_description: variant.customs_description ?? null,+ track_inventory: variant.track_inventory,+ preorderable: variant.preorderable ?? false,+ preorder_ships_at: variant.preorder_ships_at ?? null,+ backorder_limit: variant.backorder_limit ?? null,+ tax_category_id: variant.tax_category_id ?? null,+ prices: (variant.prices ?? [])+ .filter((p) => p.currency != null)+ .map((p) => ({+ currency: p.currency as string,+ // Keep amounts as the canonical decimal strings the API returns.+ // The bulk price editor displays them with the locale's decimal+ // separator and ships the raw user input unchanged on submit;+ // `Spree::LocalizedNumber.parse` handles locale-aware parsing.+ amount: p.amount != null ? String(p.amount) : '',+ compare_at_amount: p.compare_at_amount != null ? String(p.compare_at_amount) : null,+ })),+ stock_levels: (variant.stock_levels ?? []).map((si) => ({+ id: si.id,+ stock_location_id: si.stock_location_id ?? si.stock_location?.id ?? '',+ stock_location_name:+ si.stock_location?.name ?? i18n.t('admin.products.inventory.unknown_location'),+ count_on_hand: si.count_on_hand,+ backorderable: si.backorderable,+ })),+ }+}++// One mapping for both hydration paths (the form reset and the media-only+// late paint) so a new media field can't reach one and miss the other.+// Takes the generated SDK type rather than a hand-listed shape, so a field+// added to the serializer can't quietly go missing here.+export function mediaToFormValues(media: PanelMedia, index: number) {+ return {+ id: media.id,+ alt: media.alt ?? null,+ position: media.position ?? index + 1,+ variant_ids: media.variant_ids ?? [],+ media_type: (media.media_type ?? 'image') as MediaType,+ external_video_url: media.external_video_url ?? null,+ focal_point_x: media.focal_point_x ?? null,+ focal_point_y: media.focal_point_y ?? null,+ // Video rows have no image of their own, so the poster is the preview.+ previewUrl:+ media.small_url ?? media.mini_url ?? media.poster_url ?? media.original_url ?? undefined,+ // Only the square renditions: the focal point is picked against the+ // rendered box, and original_url is uncropped, so mixing them in would+ // move the point the merchant set.+ fullPreviewUrl: media.large_url ?? media.xlarge_url ?? media.poster_url ?? null,+ posterUrl: media.poster_url,+ // The file itself, so an uploaded video can actually play. Every sized URL+ // on a video row resolves to its poster, so none of them work here.+ videoUrl: media.video_url,+ downloadUrl: media.download_url,+ }+}++export function productToFormValues(+ product: PanelProduct,+ // Optional media list — passed in from useProductMedia (which is a separate+ // query). When provided we hydrate form.media here so the form.reset cycle+ // captures it atomically instead of via a follow-up setValue that races+ // with the merchant's unsaved edits.+ media?: PanelMedia[],+): ProductFormValues {+ const hasVariants = (product.variant_count ?? 0) > 0+ const variantSource = hasVariants+ ? (product.variants ?? [])+ : product.default_variant+ ? [product.default_variant]+ : []++ return {+ name: product.name,+ // Hydrate the Tiptap editor from the HTML field, not `description` — the+ // serializer squishes that one to tag-stripped plain text, which would+ // collapse paragraphs/line breaks on every reload. Writes send the editor's+ // HTML back under the plain `description` param.+ description: product.description_html ?? '',+ status: (product.status as ProductFormValues['status']) ?? 'draft',+ category_ids: product.categories?.map((category) => category.id) ?? product.category_ids ?? [],+ // Manual membership only — this field is what the picker edits, and the+ // API preserves automatic membership regardless of what it sends. Hydrating+ // automatic collections here would render chips a merchant can remove to+ // no effect.+ collection_ids:+ product.collections?.filter((collection) => !collection.automatic).map((c) => c.id) ??+ product.collection_ids ??+ [],+ tags: product.tags ?? [],+ tax_category_id: product.tax_category_id ?? null,+ product_type_id: product.product_type_id ?? null,+ delivery_profile_id: product.delivery_profile_id ?? null,+ meta_title: product.meta_title ?? '',+ meta_description: product.meta_description ?? '',+ slug: product.slug ?? '',+ variants: variantSource.map((v, i) => variantToFormValues(v, i)),+ custom_fields:+ product.custom_fields?.map((cf) => ({+ id: cf.id,+ custom_field_definition_id: cf.custom_field_definition_id,+ value: cf.value,+ })) ?? [],+ media: media?.map(mediaToFormValues) ?? [],+ product_publications: (product.product_publications ?? []).map((l) => ({+ id: l.id,+ channel_id: l.channel_id,+ published_at: l.published_at ?? null,+ unpublished_at: l.unpublished_at ?? null,+ })),+ }+}++// Strip UI-only fields (stock_location_name) and undefined entries so the+// PATCH body matches the Admin API VariantUpdateParams shape exactly. The+// Spree::Product#variants= setter reconciles by id, creates new entries,+// and removes any persisted variant not present in the array — see+// docs/plans/6.0-remove-master-variant.md.+//+// `index` is the variant's array position; we ship `index + 1` so+// `acts_as_list` persists the 1-indexed order. Form state stays 0-indexed+// (matches the React array), the API quirk lives only at this boundary.+export function variantToWirePayload(v: VariantFormValues, index: number) {+ // DB columns `sku` and `weight` are NOT NULL with defaults ("", 0.0).+ // The other scalar fields (barcode, dimensions, weight_unit,+ // dimensions_unit, tax_category_id) ARE nullable — those we always send+ // even when null so the merchant can clear them. NOT-NULL fields fall+ // back to their schema defaults when blank.+ const payload: Record<string, unknown> = {+ position: index + 1,+ options: v.options,+ sku: v.sku ?? '',+ weight: v.weight ?? 0,+ barcode: v.barcode ?? null,+ height: v.height ?? null,+ width: v.width ?? null,+ depth: v.depth ?? null,+ weight_unit: v.weight_unit ?? null,+ dimensions_unit: v.dimensions_unit ?? null,+ tax_category_id: v.tax_category_id ?? null,+ hs_code: v.hs_code ?? null,+ country_of_origin: v.country_of_origin ?? null,+ customs_description: v.customs_description ?? null,+ }+ if (v.id) payload.id = v.id+ if (v.track_inventory != null) payload.track_inventory = v.track_inventory+ if (v.preorderable != null) payload.preorderable = v.preorderable+ if (v.preorder_ships_at !== undefined) payload.preorder_ships_at = v.preorder_ships_at+ if (v.backorder_limit !== undefined) payload.backorder_limit = v.backorder_limit+ // Always send `prices` when the form tracks it — including `[]`. The+ // backend's `Spree::Variant#prices=` treats an empty array as "clear all+ // base prices"; omitting it would otherwise leave the old amounts in+ // place when the merchant clears the last currency from the matrix.+ //+ // Amounts in form state are already canonical `"1234.56"` — the price editor+ // normalizes the merchant's localized input on commit (see+ // `ProductBulkPriceEditor#handleChange`), and untouched values hydrate from+ // the canonical API. So no normalization here — re-normalizing a canonical+ // value under a comma-decimal locale would mangle it (`34.56` → `3456`).+ if (v.prices != null) payload.prices = v.prices+ if (v.stock_levels?.length) {+ payload.stock_levels = v.stock_levels.map(({ stock_location_name, ...rest }) => rest)+ }+ return payload+}diff --git a/packages/dashboard/src/schemas/product.ts b/packages/dashboard-core/src/products/product-schema.tssimilarity index 95%rename from packages/dashboard/src/schemas/product.tsrename to packages/dashboard-core/src/products/product-schema.tsindex b07c16c11a..73659398b9 100644--- a/packages/dashboard/src/schemas/product.ts+++ b/packages/dashboard-core/src/products/product-schema.ts@@ -1,6 +1,6 @@import { requiredMessage } from '@spree/dashboard-ui'import { z } from 'zod/v4'-import { isSupportedVideoUrl } from '../lib/video-url'+import { isSupportedVideoUrl } from './video-url'export const stockLevelFormSchema = z.object({id: z.string().optional(),@@ -135,7 +135,11 @@ export const productFormSchema = z.object({description: z.string().optional(),// Status- status: z.enum(['draft', 'active', 'archived']).optional(),+ // Every status the API may answer, not just the ones a form sets. A+ // marketplace product also comes back `proposed` or `rejected`, and a schema+ // that rejects those makes the whole form unsavable rather than flagging a+ // field (docs/plans/6.0-seller-product-submission.md).+ status: z.enum(['draft', 'active', 'archived', 'proposed', 'rejected']).optional(),// Categorizationcategory_ids: z.array(z.string()).optional(),diff --git a/packages/dashboard-core/src/products/product-types.ts b/packages/dashboard-core/src/products/product-types.tsnew file mode 100644index 0000000000..8098d01a4c--- /dev/null+++ b/packages/dashboard-core/src/products/product-types.ts@@ -0,0 +1,122 @@+/**+ * What the shared product form reads off a product, its variants and its+ * media.+ *+ * Structural rather than either SDK's generated type, for the same reason+ * `PanelStockLocation` is: the operator's Admin API and a seller's Seller API+ * serialize the same records, and the cards only ever touch the fields both+ * carry. Typing these against `@spree/admin-sdk` would make the form+ * unusable in a panel that holds no admin credential.+ *+ * Everything a panel may omit is optional, so a card can hide what it was not+ * given rather than render a blank.+ */++export interface PanelMedia {+ id: string+ media_type?: string+ alt?: string | null+ position?: number+ variant_ids?: string[]+ focal_point_x?: number | null+ focal_point_y?: number | null+ external_video_url?: string | null+ video_url?: string | null+ video_embed_url?: string | null+ poster_url?: string | null+ original_url?: string | null+ mini_url?: string | null+ small_url?: string | null+ medium_url?: string | null+ large_url?: string | null+ xlarge_url?: string | null+ download_url?: string | null+}++export interface PanelVariant {+ id: string+ sku?: string | null+ barcode?: string | null+ options_text?: string+ position?: number+ price?: { amount?: string | null; currency?: string | null } | null+ prices?: Array<{+ amount?: string | null+ currency?: string | null+ compare_at_amount?: string | null+ }>+ cost_price?: string | null+ cost_currency?: string | null+ weight?: number | null+ height?: number | null+ width?: number | null+ depth?: number | null+ weight_unit?: string | null+ dimensions_unit?: string | null+ hs_code?: string | null+ country_of_origin?: string | null+ customs_description?: string | null+ track_inventory?: boolean+ preorderable?: boolean+ preorder_ships_at?: string | null+ backorder_limit?: number | null+ total_on_hand?: number | null+ available_stock?: number | null+ option_values?: Array<{ id: string; name: string; option_type_name: string }>+ stock_levels?: PanelStockLevel[]+ /** Marketplace configuration; a seller's serializer leaves these out. */+ tax_category_id?: string | null+ delivery_profile_id?: string | null+}++export interface PanelProduct {+ id: string+ name: string+ slug?: string+ status?: string+ description?: string | null+ description_html?: string | null+ meta_title?: string | null+ meta_description?: string | null+ meta_keywords?: string | null+ product_type_id?: string | null+ variant_count?: number+ /**+ * Either shape: the operator's serializer expands the records, a seller's+ * answers plain ids. The mapper reads whichever it was given.+ */+ category_ids?: string[]+ collection_ids?: string[]+ categories?: Array<{ id: string; name?: string }>+ collections?: Array<{ id: string; name?: string; automatic?: boolean }>+ tags?: string[]+ metadata?: Record<string, unknown> | null+ default_variant_id?: string+ price?: { amount?: string | null; currency?: string | null } | null+ variants?: PanelVariant[]+ default_variant?: PanelVariant+ media?: PanelMedia[]+ custom_fields?: Array<{ id?: string; custom_field_definition_id: string; value?: unknown }>+ /** Operator-only surfaces; absent on a seller's serializer. */+ product_publications?: Array<{+ id?: string+ channel_id: string+ published_at?: string | null+ unpublished_at?: string | null+ }>+ tax_category_id?: string | null+ delivery_profile_id?: string | null+}++/**+ * One shelf's worth of a variant — the count and where it sits, which is all+ * the form reads.+ */+export interface PanelStockLevel {+ id?: string+ stock_location_id: string | null+ stock_location_name?: string | null+ stock_location?: { id?: string; name?: string | null } | null+ count_on_hand: number+ backorderable: boolean+}diff --git a/packages/dashboard-core/src/products/use-product-form-data.ts b/packages/dashboard-core/src/products/use-product-form-data.tsnew file mode 100644index 0000000000..c224ca0cfb--- /dev/null+++ b/packages/dashboard-core/src/products/use-product-form-data.ts@@ -0,0 +1,198 @@+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'+import type {+ PanelCollection,+ PanelDeliveryProfile,+ PanelNamedRecord,+ PanelOptionType,+ PanelProductType,+} from '../api-client'+import { getApiClient } from '../api-client'++/**+ * The reference data the product form's pickers read.+ *+ * Deliberately separate from the operator dashboard's own `useOptionTypes`+ * and friends, which back its management pages and carry the full CRUD each+ * resource needs. These read through the registered panel client, so the same+ * cards work in a seller's panel against the Seller API — and answer empty+ * when a panel registers no such resource, which is how a card knows to hide.+ */++const FIVE_MINUTES = 1000 * 60 * 5++export function useFormOptionTypes(enabled = true) {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'option-types'],+ queryFn: async (): Promise<{ data: PanelOptionType[] }> =>+ (await client.optionTypes?.list({ limit: 100 })) ?? { data: [] },+ enabled: enabled && Boolean(client.optionTypes),+ staleTime: FIVE_MINUTES,+ })+}++export function useFormCategories(enabled = true) {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'categories'],+ queryFn: async (): Promise<{ data: PanelNamedRecord[] }> =>+ (await client.categories?.list({ limit: 100 })) ?? { data: [] },+ enabled: enabled && Boolean(client.categories),+ staleTime: FIVE_MINUTES,+ })+}++export function useFormCollections(enabled = true) {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'collections'],+ queryFn: async (): Promise<{ data: PanelCollection[] }> =>+ (await client.collections?.list({ limit: 100 })) ?? { data: [] },+ enabled: enabled && Boolean(client.collections),+ staleTime: FIVE_MINUTES,+ })+}++export function useFormProductTypes(enabled = true) {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'product-types'],+ queryFn: async (): Promise<{ data: PanelProductType[] }> =>+ (await client.productTypes?.list({ limit: 100 })) ?? { data: [] },+ enabled: enabled && Boolean(client.productTypes),+ staleTime: FIVE_MINUTES,+ })+}++/** One product type, for the option types and custom fields it seeds. */+export function useFormProductType(id?: string) {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'product-type', id],+ queryFn: () => client.productTypes?.get(id as string) as Promise<PanelProductType>,+ enabled: Boolean(id) && Boolean(client.productTypes),+ staleTime: FIVE_MINUTES,+ })+}++/**+ * Option types named by a product type, resolved from the full list rather+ * than fetched by id — the list is already cached and small enough that a+ * second round trip buys nothing.+ */+export function useFormOptionTypesByIds(ids?: string[]) {+ const { data, ...rest } = useFormOptionTypes(Boolean(ids?.length))+ const wanted = new Set(ids ?? [])++ return {+ ...rest,+ data: ids?.length+ ? { data: (data?.data ?? []).filter((type) => wanted.has(type.id)) }+ : undefined,+ }+}++export function useFormTaxCategories() {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'tax-categories'],+ queryFn: async (): Promise<{ data: PanelNamedRecord[] }> =>+ (await client.taxCategories?.list({ limit: 100 })) ?? { data: [] },+ enabled: Boolean(client.taxCategories),+ staleTime: FIVE_MINUTES,+ })+}++export function useFormDeliveryProfiles() {+ const client = getApiClient()++ return useQuery({+ queryKey: ['panel', 'form', 'delivery-profiles'],+ queryFn: async (): Promise<{ data: PanelDeliveryProfile[] }> =>+ (await client.deliveryProfiles?.list({ limit: 100 })) ?? { data: [] },+ enabled: Boolean(client.deliveryProfiles),+ staleTime: FIVE_MINUTES,+ })+}++/**+ * Removing a file already on the product. A panel whose client registers no+ * deletion answers a no-op mutation, so the gallery still drops the row from+ * the form and the save reconciles it.+ */+export function useFormDeleteProductMedia(productId: string) {+ const client = getApiClient()+ const queryClient = useQueryClient()++ return useMutation({+ mutationFn: async (mediaId: string) => {+ await client.deleteProductMedia?.(productId, mediaId)+ },+ onSuccess: () => {+ void queryClient.invalidateQueries({ queryKey: ['panel', 'form', 'media', productId] })+ },+ })+}++export function useCreateOptionType() {+ const client = getApiClient()+ const queryClient = useQueryClient()++ return useMutation({+ mutationFn: (params: Record<string, unknown>) =>+ client.optionTypes?.create?.(params) as Promise<PanelOptionType>,+ onSuccess: () => {+ void queryClient.invalidateQueries({ queryKey: ['panel', 'form', 'option-types'] })+ },+ })+}++export function useUpdateOptionType(id: string) {+ const client = getApiClient()+ const queryClient = useQueryClient()++ return useMutation({+ mutationFn: (params: Record<string, unknown>) =>+ client.optionTypes?.update?.(id, params) as Promise<PanelOptionType>,+ onSuccess: () => {+ void queryClient.invalidateQueries({ queryKey: ['panel', 'form', 'option-types'] })+ },+ })+}++/**+ * Props for the shared multi-select pickers, reading through the registered+ * client so the same card works in either panel.+ */+export function categoryAutocompleteProps(queryKey: string) {+ const client = getApiClient()++ return {+ queryKey,+ search: async (query: string) =>+ (await client.categories?.list({ name_cont: query, limit: 20 })) ?? { data: [] },+ hydrate: async (ids: string[]) =>+ (await client.categories?.list({ id_in: ids, limit: ids.length })) ?? { data: [] },+ getOptionLabel: (category: PanelNamedRecord & { pretty_name?: string }) =>+ category.pretty_name ?? category.name ?? category.id,+ }+}++export function collectionAutocompleteProps(queryKey: string) {+ const client = getApiClient()++ return {+ queryKey,+ search: async (query: string) =>+ (await client.collections?.list({ name_cont: query, limit: 20 })) ?? { data: [] },+ hydrate: async (ids: string[]) =>+ (await client.collections?.list({ id_in: ids, limit: ids.length })) ?? { data: [] },+ getOptionLabel: (collection: PanelCollection) => collection.name ?? collection.id,+ }+}diff --git a/packages/dashboard/src/components/spree/products/variant-edit-sheet.tsx b/packages/dashboard-core/src/products/variant-edit-sheet.tsxsimilarity index 98%rename from packages/dashboard/src/components/spree/products/variant-edit-sheet.tsxrename to packages/dashboard-core/src/products/variant-edit-sheet.tsxindex 2d21c9c5a0..fd4046ae84 100644--- a/packages/dashboard/src/components/spree/products/variant-edit-sheet.tsx+++ b/packages/dashboard-core/src/products/variant-edit-sheet.tsx@@ -1,3 +1,4 @@+import type { ProductFormValues, VariantFormValues } from '@spree/dashboard-core'import { CountryCombobox, StoreDatePicker } from '@spree/dashboard-core'import {Button,@@ -20,10 +21,11 @@ import {import { useEffect, useRef } from 'react'import { Controller, type UseFormReturn } from 'react-hook-form'import { useTranslation } from 'react-i18next'-import { useOptionTypes } from '../../../hooks/use-option-types'-import { useTaxCategories } from '../../../hooks/use-tax-categories'-import type { ProductFormValues, VariantFormValues } from '../../../schemas/product'import { normalizeCustomsDescription, normalizeHsCode } from './normalize-customs'+import {+ useFormOptionTypes as useOptionTypes,+ useFormTaxCategories as useTaxCategories,+} from './use-product-form-data'import { variantDisplayLabel } from './variants-matrix'const WEIGHT_UNITS = ['g', 'kg', 'lb', 'oz'] as const@@ -46,7 +48,7 @@ export function VariantEditSheet({ form, variantIndex, open, onOpenChange }: Proconst { data: taxCategoriesResponse } = useTaxCategories()const taxCategories = taxCategoriesResponse?.data ?? []const hasTaxCategories = taxCategories.length > 0- const { data: optionTypesData } = useOptionTypes({ limit: 100 })+ const { data: optionTypesData } = useOptionTypes()const optionTypes = optionTypesData?.data ?? []// Snapshot the variant when the sheet opens so Cancel can restore it.diff --git a/packages/dashboard/src/components/spree/products/variants-matrix.test.ts b/packages/dashboard-core/src/products/variants-matrix.test.tssimilarity index 100%rename from packages/dashboard/src/components/spree/products/variants-matrix.test.tsrename to packages/dashboard-core/src/products/variants-matrix.test.tsdiff --git a/packages/dashboard/src/components/spree/products/variants-matrix.ts b/packages/dashboard-core/src/products/variants-matrix.tssimilarity index 98%rename from packages/dashboard/src/components/spree/products/variants-matrix.tsrename to packages/dashboard-core/src/products/variants-matrix.tsindex e31fb46842..0a97e2c19d 100644--- a/packages/dashboard/src/components/spree/products/variants-matrix.ts+++ b/packages/dashboard-core/src/products/variants-matrix.ts@@ -4,8 +4,8 @@// resulting cartesian product as RHF form state. These helpers stay pure// (no React) so they can evolve independently of the UI shell.-import type { OptionType } from '@spree/admin-sdk'-import type { VariantFormValues } from '../../../schemas/product'+import type { VariantFormValues } from '@spree/dashboard-core'+import type { PanelOptionType as OptionType } from '../api-client'export interface SelectedOptionValue {name: stringdiff --git a/packages/dashboard/src/components/spree/products/variants-options-builder.tsx b/packages/dashboard-core/src/products/variants-options-builder.tsxsimilarity index 98%rename from packages/dashboard/src/components/spree/products/variants-options-builder.tsxrename to packages/dashboard-core/src/products/variants-options-builder.tsxindex b9562df7d5..25dacac313 100644--- a/packages/dashboard/src/components/spree/products/variants-options-builder.tsx+++ b/packages/dashboard-core/src/products/variants-options-builder.tsx@@ -1,4 +1,3 @@-import type { OptionType } from '@spree/admin-sdk'import {Badge,Button,@@ -15,11 +14,12 @@ import {import { CheckIcon, PencilIcon, PlusIcon, XIcon } from 'lucide-react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'+import type { PanelOptionType as OptionType } from '../api-client'import {useCreateOptionType,- useOptionTypes,+ useFormOptionTypes as useOptionTypes,useUpdateOptionType,-} from '../../../hooks/use-option-types'+} from './use-product-form-data'import { autoExpandIndex, type SelectedOptionType } from './variants-matrix'interface Props {@@ -39,7 +39,7 @@ interface Props {// reconcile step that turns this state into RHF variant rows.export function VariantsOptionsBuilder({ selected, onChange, extraOptionTypes }: Props) {const { t } = useTranslation()- const { data: optionTypesData } = useOptionTypes({ limit: 100 })+ const { data: optionTypesData } = useOptionTypes()const allOptionTypes = useMemo(() => {const paged = optionTypesData?.data ?? []if (!extraOptionTypes?.length) return pageddiff --git a/packages/dashboard/src/components/spree/products/variants-section.tsx b/packages/dashboard-core/src/products/variants-section.tsxsimilarity index 98%rename from packages/dashboard/src/components/spree/products/variants-section.tsxrename to packages/dashboard-core/src/products/variants-section.tsxindex f71188d2e4..bb4200da3c 100644--- a/packages/dashboard/src/components/spree/products/variants-section.tsx+++ b/packages/dashboard-core/src/products/variants-section.tsx@@ -14,7 +14,7 @@ import {verticalListSortingStrategy,} from '@dnd-kit/sortable'import { CSS } from '@dnd-kit/utilities'-import type { OptionType } from '@spree/admin-sdk'+import type { ProductFormValues, VariantFormValues } from '@spree/dashboard-core'import {Button,Card,@@ -35,10 +35,13 @@ import { PencilIcon, XIcon } from 'lucide-react'import { type CSSProperties, useEffect, useMemo, useState } from 'react'import { type UseFormReturn, useFieldArray, useWatch } from 'react-hook-form'import { useTranslation } from 'react-i18next'-import { useOptionTypes, useOptionTypesByIds } from '../../../hooks/use-option-types'-import { useProductType } from '../../../hooks/use-product-types'-import type { ProductFormValues, VariantFormValues } from '../../../schemas/product'+import type { PanelOptionType as OptionType } from '../api-client'import { BulkVariantsDialog } from './bulk-variants-dialog'+import {+ useFormOptionTypes as useOptionTypes,+ useFormOptionTypesByIds as useOptionTypesByIds,+ useFormProductType as useProductType,+} from './use-product-form-data'import { VariantEditSheet } from './variant-edit-sheet'import {generateVariantCombinations,@@ -121,7 +124,7 @@ function seedFromProductType(export function VariantsSection({ form, seedFromType = false }: Props) {const { t } = useTranslation()- const { data: optionTypesData } = useOptionTypes({ limit: 100 })+ const { data: optionTypesData } = useOptionTypes()const allOptionTypes = useMemo(() => optionTypesData?.data ?? [], [optionTypesData])const productTypeId = form.watch('product_type_id') as string | null | undefinedconst { data: productType } = useProductType(productTypeId ?? undefined)diff --git a/packages/dashboard/src/lib/video-url.test.ts b/packages/dashboard-core/src/products/video-url.test.tssimilarity index 100%rename from packages/dashboard/src/lib/video-url.test.tsrename to packages/dashboard-core/src/products/video-url.test.tsdiff --git a/packages/dashboard/src/lib/video-url.ts b/packages/dashboard-core/src/products/video-url.tssimilarity index 100%rename from packages/dashboard/src/lib/video-url.tsrename to packages/dashboard-core/src/products/video-url.tsdiff --git a/packages/dashboard/src/api-client-setup.ts b/packages/dashboard/src/api-client-setup.tsindex 311443a85c..6cca25fbbf 100644--- a/packages/dashboard/src/api-client-setup.ts+++ b/packages/dashboard/src/api-client-setup.ts@@ -28,4 +28,18 @@ setApiClient({update: (id, params) => adminClient.stockLocations.update(id, params),delete: (id) => adminClient.stockLocations.delete(id),},+ // Reference data for the shared product form.+ optionTypes: {+ list: (params) => adminClient.optionTypes.list({ ...params, expand: ['option_values'] }),+ },+ categories: { list: (params) => adminClient.categories.list(params) },+ collections: { list: (params) => adminClient.collections.list(params) },+ productTypes: {+ list: (params) => adminClient.productTypes.list(params),+ get: (id) => adminClient.productTypes.get(id),+ },+ taxCategories: { list: (params) => adminClient.taxCategories.list(params) },+ deliveryProfiles: { list: (params) => adminClient.deliveryProfiles.list(params) },+ deleteProductMedia: (productId, mediaId) => adminClient.products.media.delete(productId, mediaId),+ mediaLibrary: { list: (params) => adminClient.media.list(params) },})diff --git a/packages/dashboard/src/components/spree/bulk-price-editor/bulk-price-editor.tsx b/packages/dashboard/src/components/spree/bulk-price-editor/bulk-price-editor.tsxindex 631b9fc839..bbbffae8e1 100644--- a/packages/dashboard/src/components/spree/bulk-price-editor/bulk-price-editor.tsx+++ b/packages/dashboard/src/components/spree/bulk-price-editor/bulk-price-editor.tsx@@ -1,13 +1,16 @@import type { PriceBulkUpsertRow } from '@spree/admin-sdk'-import { adminClient, useResourceKey } from '@spree/dashboard-core'+import {+ adminClient,+ currencyParts,+ normalizeMoneyInput,+ useResourceKey,+} from '@spree/dashboard-core'import { type BulkPriceRow, BulkPriceTable, toastManager } from '@spree/dashboard-ui'import { useQuery } from '@tanstack/react-query'import { useCallback, useDeferredValue, useEffect, useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import { useCurrencyLocale } from '../../../hooks/use-currency-locale'import { useBulkUpsertPrices } from '../../../hooks/use-prices'-import { currencyParts } from './currency-parts'-import { normalizeMoneyInput } from './normalize-money'const PAGE_SIZE = 50diff --git a/packages/dashboard/src/components/spree/custom-fields/custom-fields-inline.tsx b/packages/dashboard/src/components/spree/custom-fields/custom-fields-inline.tsxindex 0a07eab792..3c54ddf7f3 100644--- a/packages/dashboard/src/components/spree/custom-fields/custom-fields-inline.tsx+++ b/packages/dashboard/src/components/spree/custom-fields/custom-fields-inline.tsx@@ -23,6 +23,7 @@import { zodResolver } from '@hookform/resolvers/zod'import type { CustomField, CustomFieldDefinition, CustomFieldOwnerType } from '@spree/admin-sdk'+import type { CustomFieldFormValues } from '@spree/dashboard-core'import {customFieldComponents,mapSpreeErrorsToForm,@@ -70,7 +71,6 @@ import {customFieldDefinitionSchema,customFieldDefinitionValuesToCreateParams,} from '../../../schemas/custom-field-definition'-import type { CustomFieldFormValues } from '../../../schemas/product'import { DefinitionFormFields } from './definition-form'// ---------------------------------------------------------------------------diff --git a/packages/dashboard/src/components/spree/customers/customer-store-credits-card.tsx b/packages/dashboard/src/components/spree/customers/customer-store-credits-card.tsxindex d2a81481a5..127e3aa6e9 100644--- a/packages/dashboard/src/components/spree/customers/customer-store-credits-card.tsx+++ b/packages/dashboard/src/components/spree/customers/customer-store-credits-card.tsx@@ -1,6 +1,12 @@import { zodResolver } from '@hookform/resolvers/zod'import type { Customer, StoreCredit } from '@spree/admin-sdk'-import { CurrencySelect, mapSpreeErrorsToForm, useStore } from '@spree/dashboard-core'+import {+ CurrencySelect,+ currencyParts,+ mapSpreeErrorsToForm,+ normalizeMoneyInput,+ useStore,+} from '@spree/dashboard-core'import {Badge,Button,@@ -51,8 +57,6 @@ import {type IssueStoreCreditFormValues,issueStoreCreditFormSchema,} from '../../../schemas/store-credit'-import { currencyParts } from '../bulk-price-editor/currency-parts'-import { normalizeMoneyInput } from '../bulk-price-editor/normalize-money'export function CustomerStoreCreditsCard({ customer }: { customer: Customer }) {const { t } = useTranslation()diff --git a/packages/dashboard/src/components/spree/products/publishing-card.tsx b/packages/dashboard/src/components/spree/products/publishing-card.tsxindex 75ca8fb6cb..3bf39723a0 100644--- a/packages/dashboard/src/components/spree/products/publishing-card.tsx+++ b/packages/dashboard/src/components/spree/products/publishing-card.tsx@@ -1,4 +1,5 @@import type { Channel } from '@spree/admin-sdk'+import type { ProductFormValues } from '@spree/dashboard-core'import { formatStoreDateTime, StoreDatePicker, useStore } from '@spree/dashboard-core'import {Button,@@ -23,7 +24,6 @@ import { useEffect, useMemo, useRef, useState } from 'react'import { Controller, type UseFormReturn, useFieldArray } from 'react-hook-form'import { useTranslation } from 'react-i18next'import { useChannels } from '../../../hooks/use-channels'-import type { ProductFormValues } from '../../../schemas/product'type ProductForm = UseFormReturn<ProductFormValues>diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/$productId.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/products/$productId.tsxindex 0a8be799a4..853848994c 100644--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/$productId.tsx+++ b/packages/dashboard/src/routes/_authenticated/$storeId/products/$productId.tsx@@ -1,12 +1,26 @@import { zodResolver } from '@hookform/resolvers/zod'-import { type Media, type Product, SpreeError, type Variant } from '@spree/admin-sdk'+import { type Product, SpreeError } from '@spree/admin-sdk'import {adminClient,+ CategorizationCard,extensionFormValues,extensionSubmitValues,+ GeneralCard,+ InventoryCard,+ MediaCard,mapSpreeErrorsToForm,+ mediaToFormValues,PageHeader,+ PricesCard,+ type ProductFormValues,+ productFormSchema,+ productToFormValues,+ SEOCard,Slot,+ StatusCard,+ TaxCard,+ VariantsCard,+ variantToWirePayload,} from '@spree/dashboard-core'import {ErrorState,@@ -20,34 +34,16 @@ import {useFormSubmitShortcut,} from '@spree/dashboard-ui'import { createFileRoute, useRouter } from '@tanstack/react-router'-import i18n from 'i18next'import { useEffect } from 'react'import { FormProvider, useForm, useWatch } from 'react-hook-form'import { useTranslation } from 'react-i18next'import { CustomFieldsInlineCard } from '../../../../components/spree/custom-fields/custom-fields-inline'import { ProductCustomFieldsProvider } from '../../../../components/spree/products/product-custom-fields-provider'-import {- CategorizationCard,- GeneralCard,- InventoryCard,- MediaCard,- PricesCard,- SEOCard,- StatusCard,- TaxCard,- VariantsCard,-} from '../../../../components/spree/products/product-form-cards'import { PublishingCard } from '../../../../components/spree/products/publishing-card'import { ResourceTranslationsCard } from '../../../../components/spree/translations/resource-translations-card'import { useDeleteProduct, useProduct, useUpdateProduct } from '../../../../hooks/use-product'import { useProductMedia } from '../../../../hooks/use-product-media'import { spreeJsonLinkResolver } from '../../../../lib/json-link-resolver'-import {- type MediaType,- type ProductFormValues,- productFormSchema,- type VariantFormValues,-} from '../../../../schemas/product'// Purchasable attributes (sku, barcode, prices, weight, dimensions, stock,// track_inventory) live on variants in API v3. The product form no longer@@ -61,195 +57,6 @@ export const Route = createFileRoute('/_authenticated/$storeId/products/$product// Helpers// ----------------------------------------------------------------------------function variantToFormValues(variant: Variant, position: number): VariantFormValues {- return {- id: variant.id,- sku: variant.sku ?? null,- barcode: variant.barcode ?? null,- position,- // Derive {name, value} pairs from option_values. The serializer carries- // option_type_name on each OptionValue, so no extra expand is needed.- options: (variant.option_values ?? []).map((ov) => ({- name: ov.option_type_name,- value: ov.name,- })),- weight: variant.weight ?? null,- height: variant.height ?? null,- width: variant.width ?? null,- depth: variant.depth ?? null,- weight_unit: variant.weight_unit ?? null,- dimensions_unit: variant.dimensions_unit ?? null,- hs_code: variant.hs_code ?? null,- country_of_origin: variant.country_of_origin ?? null,- customs_description: variant.customs_description ?? null,- track_inventory: variant.track_inventory,- preorderable: variant.preorderable ?? false,- preorder_ships_at: variant.preorder_ships_at ?? null,- backorder_limit: variant.backorder_limit ?? null,- tax_category_id: variant.tax_category_id ?? null,- prices: (variant.prices ?? [])- .filter((p) => p.currency != null)- .map((p) => ({- currency: p.currency as string,- // Keep amounts as the canonical decimal strings the API returns.- // The bulk price editor displays them with the locale's decimal- // separator and ships the raw user input unchanged on submit;- // `Spree::LocalizedNumber.parse` handles locale-aware parsing.- amount: p.amount != null ? String(p.amount) : '',- compare_at_amount: p.compare_at_amount != null ? String(p.compare_at_amount) : null,- })),- stock_levels: (variant.stock_levels ?? []).map((si) => ({- id: si.id,- stock_location_id: si.stock_location_id ?? si.stock_location?.id ?? '',- stock_location_name:- si.stock_location?.name ?? i18n.t('admin.products.inventory.unknown_location'),- count_on_hand: si.count_on_hand,- backorderable: si.backorderable,- })),- }-}--// One mapping for both hydration paths (the form reset and the media-only-// late paint) so a new media field can't reach one and miss the other.-// Takes the generated SDK type rather than a hand-listed shape, so a field-// added to the serializer can't quietly go missing here.-function mediaToFormValues(media: Media, index: number) {- return {- id: media.id,- alt: media.alt ?? null,- position: media.position ?? index + 1,- variant_ids: media.variant_ids ?? [],- media_type: (media.media_type ?? 'image') as MediaType,- external_video_url: media.external_video_url ?? null,- focal_point_x: media.focal_point_x ?? null,- focal_point_y: media.focal_point_y ?? null,- // Video rows have no image of their own, so the poster is the preview.- previewUrl:- media.small_url ?? media.mini_url ?? media.poster_url ?? media.original_url ?? undefined,- // Only the square renditions: the focal point is picked against the- // rendered box, and original_url is uncropped, so mixing them in would- // move the point the merchant set.- fullPreviewUrl: media.large_url ?? media.xlarge_url ?? media.poster_url ?? null,- posterUrl: media.poster_url,- // The file itself, so an uploaded video can actually play. Every sized URL- // on a video row resolves to its poster, so none of them work here.- videoUrl: media.video_url,- downloadUrl: media.download_url,- }-}--function productToFormValues(- product: Product,- // Optional media list — passed in from useProductMedia (which is a separate- // query). When provided we hydrate form.media here so the form.reset cycle- // captures it atomically instead of via a follow-up setValue that races- // with the merchant's unsaved edits.- media?: Media[],-): ProductFormValues {- const hasVariants = (product.variant_count ?? 0) > 0- const variantSource = hasVariants- ? (product.variants ?? [])- : product.default_variant- ? [product.default_variant]- : []-- return {- name: product.name,- // Hydrate the Tiptap editor from the HTML field, not `description` — the- // serializer squishes that one to tag-stripped plain text, which would- // collapse paragraphs/line breaks on every reload. Writes send the editor's- // HTML back under the plain `description` param.- description: product.description_html ?? '',- status: (product.status as ProductFormValues['status']) ?? 'draft',- category_ids: product.categories?.map((t) => t.id) ?? [],- // Manual membership only — this field is what the picker edits, and the- // API preserves automatic membership regardless of what it sends. Hydrating- // automatic collections here would render chips a merchant can remove to- // no effect.- collection_ids: product.collections?.filter((c) => !c.automatic).map((c) => c.id) ?? [],- tags: product.tags ?? [],- tax_category_id: product.tax_category_id ?? null,- product_type_id: product.product_type_id ?? null,- delivery_profile_id: product.delivery_profile_id ?? null,- meta_title: product.meta_title ?? '',- meta_description: product.meta_description ?? '',- slug: product.slug ?? '',- variants: variantSource.map((v, i) => variantToFormValues(v, i)),- custom_fields:- product.custom_fields?.map((cf) => ({- id: cf.id,- custom_field_definition_id: cf.custom_field_definition_id,- value: cf.value,- })) ?? [],- media: media?.map(mediaToFormValues) ?? [],- product_publications: (product.product_publications ?? []).map((l) => ({- id: l.id,- channel_id: l.channel_id,- published_at: l.published_at ?? null,- unpublished_at: l.unpublished_at ?? null,- })),- }-}--// Strip UI-only fields (stock_location_name) and undefined entries so the-// PATCH body matches the Admin API VariantUpdateParams shape exactly. The-// Spree::Product#variants= setter reconciles by id, creates new entries,-// and removes any persisted variant not present in the array — see-// docs/plans/6.0-remove-master-variant.md.-//-// `index` is the variant's array position; we ship `index + 1` so-// `acts_as_list` persists the 1-indexed order. Form state stays 0-indexed-// (matches the React array), the API quirk lives only at this boundary.-export function variantToWirePayload(v: VariantFormValues, index: number) {- // DB columns `sku` and `weight` are NOT NULL with defaults ("", 0.0).- // The other scalar fields (barcode, dimensions, weight_unit,- // dimensions_unit, tax_category_id) ARE nullable — those we always send- // even when null so the merchant can clear them. NOT-NULL fields fall- // back to their schema defaults when blank.- const payload: Record<string, unknown> = {- position: index + 1,- options: v.options,- sku: v.sku ?? '',- weight: v.weight ?? 0,- barcode: v.barcode ?? null,- height: v.height ?? null,- width: v.width ?? null,- depth: v.depth ?? null,- weight_unit: v.weight_unit ?? null,- dimensions_unit: v.dimensions_unit ?? null,- tax_category_id: v.tax_category_id ?? null,- hs_code: v.hs_code ?? null,- country_of_origin: v.country_of_origin ?? null,- customs_description: v.customs_description ?? null,- }- if (v.id) payload.id = v.id- if (v.track_inventory != null) payload.track_inventory = v.track_inventory- if (v.preorderable != null) payload.preorderable = v.preorderable- if (v.preorder_ships_at !== undefined) payload.preorder_ships_at = v.preorder_ships_at- if (v.backorder_limit !== undefined) payload.backorder_limit = v.backorder_limit- // Always send `prices` when the form tracks it — including `[]`. The- // backend's `Spree::Variant#prices=` treats an empty array as "clear all- // base prices"; omitting it would otherwise leave the old amounts in- // place when the merchant clears the last currency from the matrix.- //- // Amounts in form state are already canonical `"1234.56"` — the price editor- // normalizes the merchant's localized input on commit (see- // `ProductBulkPriceEditor#handleChange`), and untouched values hydrate from- // the canonical API. So no normalization here — re-normalizing a canonical- // value under a comma-decimal locale would mangle it (`34.56` → `3456`).- if (v.prices != null) payload.prices = v.prices- if (v.stock_levels?.length) {- payload.stock_levels = v.stock_levels.map(({ stock_location_name, ...rest }) => rest)- }- return payload-}--export { productToFormValues }--// ----------------------------------------------------------------------------// Page-// ----------------------------------------------------------------------------function ProductDetailPage() {const { t } = useTranslation()const { productId } = Route.useParams()@@ -472,7 +279,12 @@ function ProductForm({ product }: { product: Product }) {<VariantsCard form={form} /><MediaCard productId={productId} variants={assignableVariants} form={form} /><PricesCard form={form} productName={product.name} />- <InventoryCard form={form} storeId={storeId} />+ <InventoryCard+ form={form}+ stockLocationHref={(id) =>+ `/${storeId}/settings/stock-locations?edit=${encodeURIComponent(id)}`+ }+ /><ProductCustomFieldsProvider form={form} productTypeId={selectedProductTypeId}><CustomFieldsInlineCard /></ProductCustomFieldsProvider>diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/new.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/products/new.tsxindex d81ba15aa0..788feec07c 100644--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/new.tsx+++ b/packages/dashboard/src/routes/_authenticated/$storeId/products/new.tsx@@ -1,10 +1,24 @@import { zodResolver } from '@hookform/resolvers/zod'import { type ProductCreateParams, SpreeError } from '@spree/admin-sdk'import {+ CategorizationCard,extensionFormValues,extensionSubmitValues,+ GeneralCard,+ InventoryCard,+ isPlaceholderDefaultVariant,+ MediaCard,mapSpreeErrorsToForm,+ newProductFormDefaults,PageHeader,+ PricesCard,+ type ProductFormValues,+ productFormSchema,+ SEOCard,+ StatusCard,+ TaxCard,+ VariantsCard,+ variantToWirePayload,} from '@spree/dashboard-core'import {FormActions,@@ -17,26 +31,8 @@ import { FormProvider, useForm } from 'react-hook-form'import { useTranslation } from 'react-i18next'import { CustomFieldsInlineCard } from '../../../../components/spree/custom-fields/custom-fields-inline'import { ProductCustomFieldsProvider } from '../../../../components/spree/products/product-custom-fields-provider'-import {- CategorizationCard,- GeneralCard,- InventoryCard,- MediaCard,- PricesCard,- SEOCard,- StatusCard,- TaxCard,- VariantsCard,-} from '../../../../components/spree/products/product-form-cards'import { PublishingCard } from '../../../../components/spree/products/publishing-card'import { useCreateProduct } from '../../../../hooks/use-product'-import {- isPlaceholderDefaultVariant,- newProductFormDefaults,- type ProductFormValues,- productFormSchema,-} from '../../../../schemas/product'-import { variantToWirePayload } from './$productId'export const Route = createFileRoute('/_authenticated/$storeId/products/new')({component: NewProductPage,@@ -190,7 +186,7 @@ function NewProductPage() {form={form}productName={form.watch('name') || t('admin.pages.products.new.title')}/>- <InventoryCard form={form} storeId={storeId} />+ <InventoryCard form={form} /><ProductCustomFieldsProviderform={form}productTypeId={form.watch('product_type_id')}diff --git a/packages/dashboard/src/schemas/category.ts b/packages/dashboard/src/schemas/category.tsindex cab70f25c8..c7305f20e5 100644--- a/packages/dashboard/src/schemas/category.ts+++ b/packages/dashboard/src/schemas/category.ts@@ -1,7 +1,7 @@import type { Category } from '@spree/admin-sdk'+import { customFieldFormSchema } from '@spree/dashboard-core'import { requiredMessage } from '@spree/dashboard-ui'import { z } from 'zod/v4'-import { customFieldFormSchema } from './product'// Each image field is a small state machine: untouched (omit on save),// uploaded (send signed_id), or cleared (send null to purge). `*_signed_id`diff --git a/packages/dashboard/src/schemas/collection.ts b/packages/dashboard/src/schemas/collection.tsindex 55e4e38c83..20bd247bf8 100644--- a/packages/dashboard/src/schemas/collection.ts+++ b/packages/dashboard/src/schemas/collection.ts@@ -1,7 +1,7 @@import type { Collection, CollectionRuleParam, CollectionSortOrder } from '@spree/admin-sdk'+import { customFieldFormSchema } from '@spree/dashboard-core'import { requiredMessage } from '@spree/dashboard-ui'import { z } from 'zod/v4'-import { customFieldFormSchema } from './product'/*** Canonical values only — labels are resolved at render time viadiff --git a/packages/seller-dashboard/package.json b/packages/seller-dashboard/package.jsonindex 9ef3f679cb..333cce2d7b 100644--- a/packages/seller-dashboard/package.json+++ b/packages/seller-dashboard/package.json@@ -28,6 +28,10 @@"generate:routes": "node scripts/generate-routes.mjs"},"dependencies": {+ "@hookform/resolvers": "^5.2.2",+ "@dnd-kit/core": "^6.3.1",+ "@dnd-kit/sortable": "^10.0.0",+ "@dnd-kit/utilities": "^3.2.2","@spree/dashboard-core": "workspace:*","@spree/dashboard-ui": "workspace:*","@spree/seller-sdk": "workspace:*",diff --git a/packages/seller-dashboard/src/api-client.ts b/packages/seller-dashboard/src/api-client.tsindex 7bfbb5d2da..e01157576d 100644--- a/packages/seller-dashboard/src/api-client.ts+++ b/packages/seller-dashboard/src/api-client.ts@@ -65,6 +65,15 @@ export function createSellerApiClient({create: (params) => sellerClient().stockLocations.create(params),update: (id, params) => sellerClient().stockLocations.update(id, params),},+ // Reference data for the shared product form. No `optionTypes`: the+ // Seller API has no such endpoint, and a seller names their own options+ // on the variant rather than picking from the marketplace's list.+ categories: { list: (params) => sellerClient().categories.list(params) },+ collections: { list: (params) => sellerClient().collections.list(params) },+ productTypes: {+ list: (params) => sellerClient().productTypes.list(params),+ get: (id) => sellerClient().productTypes.get(id),+ },})return clientdiff --git a/packages/seller-dashboard/src/components/product-custom-fields.tsx b/packages/seller-dashboard/src/components/product-custom-fields.tsxdeleted file mode 100644index 3d154c2315..0000000000--- a/packages/seller-dashboard/src/components/product-custom-fields.tsx+++ /dev/null@@ -1,80 +0,0 @@-import {- Card,- CardContent,- CardHeader,- CardTitle,- Field,- FieldGroup,- FieldLabel,- Input,- Switch,- Textarea,-} from '@spree/dashboard-ui'-import type { ProductTypeCustomFieldDefinition } from '@spree/seller-sdk'-import type { Control, FieldValues, Path, UseFormRegister } from 'react-hook-form'-import { Controller } from 'react-hook-form'-import { useTranslation } from 'react-i18next'--/**- * The fields a product type asks a seller to fill in.- *- * Values only. Which fields exist is the operator's to define, so there is no- * affordance here to add one — a seller answers the questions rather than- * setting them.- */-export function ProductCustomFields<TFieldValues extends FieldValues>({- definitions,- register,- control,-}: {- definitions: ProductTypeCustomFieldDefinition[]- // Generic over the caller's form rather than `any`: react-hook-form's- // Control is invariant, so a loose type here does not accept a precise one.- register: UseFormRegister<TFieldValues>- control: Control<TFieldValues>-}) {- const { t } = useTranslation()-- if (definitions.length === 0) return null-- const sorted = [...definitions].sort((a, b) => a.sort_order - b.sort_order)-- return (- <Card>- <CardHeader>- <CardTitle>{t('products.custom_fields')}</CardTitle>- </CardHeader>- <CardContent>- <FieldGroup>- {sorted.map((definition) => {- const name = `custom_fields.${definition.key}` as Path<TFieldValues>-- return (- <Field key={definition.id}>- <FieldLabel htmlFor={name}>{definition.label}</FieldLabel>-- {definition.field_type === 'long_text' || definition.field_type === 'rich_text' ? (- <Textarea id={name} rows={4} {...register(name)} />- ) : definition.field_type === 'boolean' ? (- <Controller- name={name}- control={control}- render={({ field }) => (- <Switch id={name} checked={!!field.value} onCheckedChange={field.onChange} />- )}- />- ) : (- <Input- id={name}- inputMode={definition.field_type === 'number' ? 'decimal' : undefined}- {...register(name)}- />- )}- </Field>- )- })}- </FieldGroup>- </CardContent>- </Card>- )-}diff --git a/packages/seller-dashboard/src/locales/en.json b/packages/seller-dashboard/src/locales/en.jsonindex 6550150b62..6a69dc64d9 100644--- a/packages/seller-dashboard/src/locales/en.json+++ b/packages/seller-dashboard/src/locales/en.json@@ -19,6 +19,7 @@"cancel": "Cancel","error": "Something went wrong.","loading": "Loading…",+ "remove": "Remove","retry": "Try again","save": "Save","saving": "Saving…"@@ -117,6 +118,8 @@},"products": {"add": "Add product",+ "add_images": "Add images",+ "add_variant": "Add variant","archive": "Archive","archive_confirm_description": "It comes off sale and out of your active listings.","archive_confirm_title": "Archive this product?",@@ -139,8 +142,27 @@"meta_description": "Meta description","meta_keywords": "Meta keywords","product_type": "Product type",- "product_type_placeholder": "Choose a type"+ "product_type_placeholder": "Choose a type",+ "alt": "Alt text",+ "sku": "SKU",+ "stock": "Stock",+ "option": "Option",+ "option_name": "Option",+ "option_value": "Value",+ "price_in": "Price ({{currency}})",+ "weight": "Weight",+ "hs_code": "HS code",+ "hs_code_placeholder": "e.g. 9405.20",+ "country_of_origin": "Country of origin",+ "country_of_origin_placeholder": "e.g. PL",+ "categories": "Categories",+ "categories_placeholder": "Search categories…",+ "collections": "Collections",+ "collections_placeholder": "Search collections…"},+ "media": "Media",+ "media_remove_confirm_description": "It comes off the product when you save.",+ "media_remove_confirm_title": "Remove this image?","new_title": "New product","not_found": "That product could not be found.","organization": "Organisation",@@ -148,6 +170,7 @@"saved": "Product saved","search_placeholder": "Search by name…","seo": "Search engine listing",+ "shipping": "Shipping and customs","status_help": {"draft": "Only you can see this. Submit it when you are ready for the marketplace to review it.","proposed": "Waiting for the marketplace to review it. You can still make changes.",@@ -167,7 +190,13 @@"take_down": "Take down","take_down_confirm_description": "Shoppers will no longer see it. You can submit it again later.","take_down_confirm_title": "Take this listing down?",- "title": "Products"+ "title": "Products",+ "uploading": "Uploading {{count}} file…",+ "uploading_plural": "Uploading {{count}} files…",+ "variant_remove_confirm_description": "It comes off the product when you save.",+ "variant_remove_confirm_title": "Remove this variant?",+ "variants": "Variants",+ "variants_empty": "This product is sold as one item, at the price above. Add a variant to sell it in options such as size or colour."},"profile": {"about": "About",diff --git a/packages/seller-dashboard/src/pages/product.tsx b/packages/seller-dashboard/src/pages/product.tsxindex 92ea07e78c..0772b55bf5 100644--- a/packages/seller-dashboard/src/pages/product.tsx+++ b/packages/seller-dashboard/src/pages/product.tsx@@ -1,69 +1,42 @@-import { mapSpreeErrorsToForm } from '@spree/dashboard-core'+import { zodResolver } from '@hookform/resolvers/zod'import {- Button,- Card,- CardContent,- CardHeader,- CardTitle,- Field,- FieldError,- FieldGroup,- FieldLabel,- Input,- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,- StatusBadge,- Textarea,- toastManager,-} from '@spree/dashboard-ui'+ CategorizationCard,+ GeneralCard,+ InventoryCard,+ MediaCard,+ mapSpreeErrorsToForm,+ PageHeader,+ type PanelProduct,+ PricesCard,+ type ProductFormValues,+ productFormSchema,+ productToFormValues,+ VariantsCard,+ variantToWirePayload,+} from '@spree/dashboard-core'+import { FormActions, ResourceLayout, StatusBadge, toastManager } from '@spree/dashboard-ui'import type { ProductParams } from '@spree/seller-sdk'import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'import { useNavigate, useParams } from '@tanstack/react-router'import { useEffect } from 'react'-import { useForm } from 'react-hook-form'+import { FormProvider, useForm } from 'react-hook-form'import { useTranslation } from 'react-i18next'import { sellerClient } from '../api-client'import { CenteredMessage } from '../components/centered-message'-import { ProductCustomFields } from '../components/product-custom-fields'import { ProductStatusCard } from '../components/product-status-card'import { RetryableError } from '../components/retryable-error'-interface ProductFormValues {- name: string- description: string- amount: string- slug: string- meta_title: string- meta_description: string- meta_keywords: string- product_type_id: string- custom_fields: Record<string, string>-}--const EMPTY_VALUES: ProductFormValues = {- name: '',- description: '',- amount: '',- slug: '',- meta_title: '',- meta_description: '',- meta_keywords: '',- product_type_id: '',- custom_fields: {},-}+/** Everything the form edits, in one request. */+const PRODUCT_EXPAND = 'variants,media,default_variant,custom_fields'/*** One product, created or edited.*- * The same form either way: a seller filling in a new listing and a seller- * correcting an old one are doing the same thing, and two screens would drift.- *- * Status is deliberately absent from the form. A seller does not choose- * whether their product is on sale — they submit it and the marketplace- * decides, which is what the status card does instead+ * The same cards the operator's dashboard renders, in the same order, from+ * `@spree/dashboard-core` — the two forms are one form, and the differences+ * are only what a seller may not do. Publishing to channels and tax category+ * are absent because they are marketplace configuration, and status is not a+ * field here at all: a seller submits for review and the marketplace decides* (docs/plans/6.0-seller-product-submission.md).*/export function ProductPage({ mode }: { mode: 'new' | 'edit' }) {@@ -82,60 +55,59 @@ export function ProductPage({ mode }: { mode: 'new' | 'edit' }) {refetch,} = useQuery({queryKey: productKey,- queryFn: () => sellerClient().products.get(productId as string),+ queryFn: () => sellerClient().products.get(productId as string, PRODUCT_EXPAND),enabled: !!productId,})- // The types a seller may list against, with the custom fields each asks for.- const { data: productTypes } = useQuery({- queryKey: ['seller', sellerId, 'product-types'],- queryFn: () => sellerClient().productTypes.list({ per_page: 100 }),+ // The seller panel has no StoreProvider — its tenant is a seller and the+ // store is derived server-side — so the currencies the price cards need+ // come from the profile, which reports the store's.+ const { data: profile } = useQuery({+ queryKey: ['seller', sellerId, 'profile'],+ queryFn: () => sellerClient().profile.get(),})- const form = useForm<ProductFormValues>({ defaultValues: EMPTY_VALUES })+ const form = useForm<ProductFormValues>({+ // Cast for the same reason the operator's form does: `z.coerce.number()`+ // infers `unknown` input, which the resolver's generic will not accept.+ resolver: zodResolver(productFormSchema) as any,+ defaultValues: productToFormValues({ id: '', name: '' }),+ })// Reset once the record arrives, so the inputs show what was last saved// rather than the blank defaults the form mounted with.useEffect(() => {if (!product) return- form.reset({- ...EMPTY_VALUES,- name: product.name ?? '',- description: product.description ?? '',- amount: product.price?.amount ?? '',- slug: product.slug ?? '',- meta_title: product.meta_title ?? '',- meta_description: product.meta_description ?? '',- meta_keywords: product.meta_keywords ?? '',- product_type_id: product.product_type_id ?? '',- custom_fields: (product.metadata ?? {}) as Record<string, string>,- })+ form.reset(productToFormValues(product as PanelProduct, product.media))}, [product, form])- const selectedTypeId = form.watch('product_type_id')- const selectedType = productTypes?.data.find((type) => type.id === selectedTypeId)-const save = useMutation({mutationFn: (values: ProductFormValues) => {const payload: ProductParams = {name: values.name,description: values.description,slug: values.slug || undefined,- meta_title: values.meta_title,- meta_description: values.meta_description,- meta_keywords: values.meta_keywords,- product_type_id: values.product_type_id || undefined,- metadata: values.custom_fields,- }- // Only sent when the seller typed one: an empty box means "leave the- // price alone", not "price this at nothing".- if (values.amount.trim()) {- // No currency on a new listing: the server prices it in the store's,- // which is the only place that knows it. Guessing here can persist a- // price in the wrong currency and drop the right one.- const currency = product?.price?.currency- payload.prices = [{ amount: values.amount.trim(), ...(currency ? { currency } : {}) }]+ meta_title: values.meta_title ?? undefined,+ meta_description: values.meta_description ?? undefined,+ product_type_id: values.product_type_id ?? undefined,+ category_ids: values.category_ids,+ collection_ids: values.collection_ids,+ tags: values.tags,+ custom_fields: values.custom_fields,+ // Both lists are the whole intent: anything the seller removed is+ // absent here, which is what tells the API to drop it.+ media: (values.media ?? []).map((item) => ({+ id: item.id,+ signed_id: item.signed_id ?? undefined,+ alt: item.alt ?? undefined,+ position: item.position,+ media_type: item.media_type,+ variant_ids: item.variant_ids,+ })),+ variants: (values.variants ?? []).map((variant, index) =>+ variantToWirePayload(variant, index),+ ) as ProductParams['variants'],}return productId@@ -173,158 +145,70 @@ export function ProductPage({ mode }: { mode: 'new' | 'edit' }) {if (mode === 'edit' && !product)return <CenteredMessage>{t('products.not_found')}</CenteredMessage>- const { errors, isSubmitting } = form.formState-return (- <form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col gap-4">- <div className="flex items-center justify-between gap-4">- <div className="flex items-center gap-3">- <h1 className="font-medium text-2xl">- {productId ? product?.name : t('products.new_title')}- </h1>- {product?.status && (- <StatusBadge status={product.status} label={t(`products.statuses.${product.status}`)} />- )}- </div>- <Button type="submit" disabled={isSubmitting}>- {isSubmitting ? t('common.saving') : t('common.save')}- </Button>- </div>-- {errors.root?.message && (- <p className="text-destructive text-sm" role="alert">- {errors.root.message}- </p>- )}-- <div className="grid gap-4 lg:grid-cols-3">- <div className="flex flex-col gap-4 lg:col-span-2">- <Card>- <CardHeader>- <CardTitle>{t('products.details')}</CardTitle>- </CardHeader>- <CardContent>- <FieldGroup>- <Field>- <FieldLabel htmlFor="name">{t('products.fields.name')}</FieldLabel>- <Input- id="name"- aria-invalid={!!errors.name || undefined}- {...form.register('name', { required: true })}+ <FormProvider {...form}>+ <form+ onSubmit={form.handleSubmit(onSubmit, (errors) => {+ // A schema rejection otherwise does nothing visible: the fields at+ // fault may be in a card the seller cannot see.+ toastManager.add({+ type: 'error',+ title: t('common.error'),+ description: Object.keys(errors).join(', '),+ })+ })}+ >+ {form.formState.errors.root?.message && (+ <p className="text-destructive text-sm" role="alert">+ {form.formState.errors.root.message}+ </p>+ )}+ <ResourceLayout+ header={+ <PageHeader+ title={product?.name ?? t('products.new_title')}+ backTo="products"+ badges={+ product?.status ? (+ <StatusBadge+ status={product.status}+ label={t(`products.statuses.${product.status}`)}/>- <FieldError errors={[errors.name]} />- </Field>-- <Field>- <FieldLabel htmlFor="description">{t('products.fields.description')}</FieldLabel>- <Textarea id="description" rows={6} {...form.register('description')} />- <FieldError errors={[errors.description]} />- </Field>-- <Field>- <FieldLabel htmlFor="amount">{t('products.fields.price')}</FieldLabel>- <Input- id="amount"- inputMode="decimal"- placeholder={t('products.fields.price_placeholder')}- {...form.register('amount')}- />- <FieldError errors={[errors.amount]} />- </Field>- </FieldGroup>- </CardContent>- </Card>-- {selectedType && (- <ProductCustomFields- definitions={selectedType.custom_field_definitions ?? []}- register={form.register}- control={form.control}- />- )}-- <Card>- <CardHeader>- <CardTitle>{t('products.seo')}</CardTitle>- </CardHeader>- <CardContent>- <FieldGroup>- <Field>- <FieldLabel htmlFor="slug">{t('products.fields.slug')}</FieldLabel>- <Input id="slug" {...form.register('slug')} />- <FieldError errors={[errors.slug]} />- </Field>-- <Field>- <FieldLabel htmlFor="meta_title">{t('products.fields.meta_title')}</FieldLabel>- <Input id="meta_title" {...form.register('meta_title')} />- </Field>-- <Field>- <FieldLabel htmlFor="meta_description">- {t('products.fields.meta_description')}- </FieldLabel>- <Textarea id="meta_description" rows={3} {...form.register('meta_description')} />- </Field>-- <Field>- <FieldLabel htmlFor="meta_keywords">- {t('products.fields.meta_keywords')}- </FieldLabel>- <Input id="meta_keywords" {...form.register('meta_keywords')} />- </Field>- </FieldGroup>- </CardContent>- </Card>- </div>-- <div className="flex flex-col gap-4">- {productId && product && (- <ProductStatusCard- product={product}- onDone={() => {- void queryClient.invalidateQueries({ queryKey: productKey })- void queryClient.invalidateQueries({ queryKey: ['seller-products'] })- }}+ ) : undefined+ }+ actions={<FormActions form={form} saveLabel={t('common.save')} />}/>- )}-- <Card>- <CardHeader>- <CardTitle>{t('products.organization')}</CardTitle>- </CardHeader>- <CardContent>- <Field>- <FieldLabel htmlFor="product_type_id">- {t('products.fields.product_type')}- </FieldLabel>- <Select- value={selectedTypeId}- onValueChange={(value) =>- form.setValue('product_type_id', value, { shouldDirty: true })- }- >- <SelectTrigger id="product_type_id">- <SelectValue placeholder={t('products.fields.product_type_placeholder')}>- {(value) =>- productTypes?.data.find((type) => type.id === value)?.name ??- t('products.fields.product_type_placeholder')- }- </SelectValue>- </SelectTrigger>- <SelectContent>- {productTypes?.data.map((type) => (- <SelectItem key={type.id} value={type.id}>- {type.name}- </SelectItem>- ))}- </SelectContent>- </Select>- </Field>- </CardContent>- </Card>- </div>- </div>- </form>+ }+ main={+ <>+ <GeneralCard form={form} />+ <VariantsCard form={form} />+ <MediaCard productId={productId} variants={product?.variants ?? []} form={form} />+ <PricesCard+ form={form}+ productName={product?.name ?? ''}+ currencies={profile?.supported_currencies}+ defaultCurrency={profile?.default_currency}+ />+ <InventoryCard form={form} />+ </>+ }+ sidebar={+ <>+ {productId && product && (+ <ProductStatusCard+ product={product}+ onDone={() => {+ void queryClient.invalidateQueries({ queryKey: productKey })+ void queryClient.invalidateQueries({ queryKey: ['seller-products'] })+ }}+ />+ )}+ <CategorizationCard form={form} />+ </>+ }+ />+ </form>+ </FormProvider>)}diff --git a/packages/seller-sdk/src/seller-client.ts b/packages/seller-sdk/src/seller-client.tsindex 4321ca6a0e..1dd98b19c0 100644--- a/packages/seller-sdk/src/seller-client.ts+++ b/packages/seller-sdk/src/seller-client.ts@@ -211,8 +211,15 @@ export class SellerClient {params: params ? transformListParams(params) : undefined,}),- get: (id: string, options?: RequestOptions): Promise<Product> =>- this.request<Product>('GET', `/products/${id}`, options),+ /**+ * @param expand associations to include — the product form asks for+ * `variants,media,default_variant`, which is everything it edits.+ */+ get: (id: string, expand?: string, options?: RequestOptions): Promise<Product> =>+ this.request<Product>('GET', `/products/${id}`, {+ ...options,+ params: expand ? { expand } : undefined,+ }),create: (params: ProductParams, options?: RequestOptions): Promise<Product> =>this.request<Product>('POST', '/products', { ...options, body: params }),diff --git a/packages/seller-sdk/src/types/generated/Profile.ts b/packages/seller-sdk/src/types/generated/Profile.tsindex 3a7691ac64..f161d2944b 100644--- a/packages/seller-sdk/src/types/generated/Profile.ts+++ b/packages/seller-sdk/src/types/generated/Profile.ts@@ -1,4 +1,4 @@-// Typelizer digest b4c08dcba24c392295bc53ff5e5aa51d+// Typelizer digest db4a355bf0e278cb0b543339787da5b5//// DO NOT MODIFY: This file was automatically generated by Typelizer.import type {TaxIdentifier, Address} from '@/types'@@ -25,6 +25,8 @@ type Profile = {minimum_payout_amount: string | null;on_holiday: boolean;sellable: boolean;+ default_currency: string;+ supported_currencies: Array<string>;products_count: number;tax_identifiers: Array<TaxIdentifier>;billing_address?: Address;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4b9bfa21d9..b8592d4fb1 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -340,6 +340,9 @@ importers:'@tanstack/react-router':specifier: ^1.169.2+ '@tanstack/react-table':+ specifier: ^8.21.3date-fns:specifier: ^4.1.0version: 4.1.0@@ -656,6 +659,18 @@ importers:packages/seller-dashboard:dependencies:+ '@dnd-kit/core':+ specifier: ^6.3.1+ '@dnd-kit/sortable':+ specifier: ^10.0.0+ version: 10.0.0(@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@dnd-kit/utilities':+ specifier: ^3.2.2+ version: 3.2.2([email protected])+ '@hookform/resolvers':+ specifier: ^5.2.2+ version: 5.2.2([email protected]([email protected]))'@spree/dashboard-core':specifier: workspace:*version: link:../dashboard-corediff --git a/spree/api/app/serializers/spree/api/v3/seller/profile_serializer.rb b/spree/api/app/serializers/spree/api/v3/seller/profile_serializer.rbindex 17cb466a2e..07d788b616 100644--- a/spree/api/app/serializers/spree/api/v3/seller/profile_serializer.rb+++ b/spree/api/app/serializers/spree/api/v3/seller/profile_serializer.rb@@ -14,7 +14,9 @@ module Spreeholiday_mode_until: [:string, nullable: true],terms_accepted_at: [:string, nullable: true],on_holiday: :boolean, sellable: :boolean,- products_count: :number+ products_count: :number,+ default_currency: :string,+ supported_currencies: [:string, multi: true]attributes :status, :legal_name, :registration_number,:contact_email, :billing_email,@@ -35,6 +37,17 @@ module Spreeseller.sellable?end+ # What this seller prices in. Theirs by way of the marketplace: a+ # seller has no currency of their own, so the store's is the answer+ # to "what does this amount mean".+ attribute :default_currency do |seller|+ seller.store&.default_currency+ end++ attribute :supported_currencies do |seller|+ seller.store&.supported_currencies_list&.map(&:iso_code) || []+ end+attribute :products_count do |seller|seller.products.countend