Add multilanguage catalog translations UI for products and categories.

Include AI translate-all with locale picker, count badges, MultiLanguage Data module gating, and shared modal action layout polish.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-04 09:51:11 +03:30
co-authored by Cursor
parent 8c187b18be
commit 2a32c46b2e
43 changed files with 1624 additions and 78 deletions
@@ -13,6 +13,7 @@ interface CategoryTreeProps {
onVariations: (id: string) => void
onTechnicalForm: (id: string) => void
onEdit: (id: string) => void
onTranslate: (id: string) => void
onRemove: (id: string) => void
parentId?: string | null
depth?: number
@@ -28,6 +29,7 @@ export function CategoryTree({
onVariations,
onTechnicalForm,
onEdit,
onTranslate,
onRemove,
parentId = null,
depth = 0,
@@ -54,6 +56,7 @@ export function CategoryTree({
onVariations={onVariations}
onTechnicalForm={onTechnicalForm}
onEdit={onEdit}
onTranslate={onTranslate}
onRemove={onRemove}
/>
{childCount && (
@@ -69,6 +72,7 @@ export function CategoryTree({
onVariations={onVariations}
onTechnicalForm={onTechnicalForm}
onEdit={onEdit}
onTranslate={onTranslate}
onRemove={onRemove}
parentId={category.id}
depth={depth + 1}