TorbatYar/frontend/modules/experience/features/localizations.tsx
Mortezakoohjani 0d424c500a feat(platform): complete commercial runtime consolidation
Unify commercial runtime ownership across backend and frontend so platform, experience, and hospitality modules use the shared commercial source of truth.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-29 11:11:53 +03:30

31 lines
1.2 KiB
TypeScript

"use client";
import { createExperienceListPage } from "@/modules/experience/components/ExperienceListCrudPage";
import { experienceApi } from "@/modules/experience/services/experience-api";
export const LocalizationsPage = createExperienceListPage({
title: "بومی‌سازی",
breadcrumb: "بومی‌سازی",
resourceKey: "localizations",
permission: "experience.localization.view",
api: experienceApi.localizations,
columns: [
{ key: "code", header: "کد" },
{ key: "name", header: "نام" },
{ key: "status", header: "وضعیت", type: "status" },
{ key: "created_at", header: "ایجاد", type: "datetime" },
],
createFields: [
{ name: "workspace_id", label: "فضای کاری", type: "workspace", required: true, createOnly: true },
{ name: "code", label: "کد یکتا", required: true, placeholder: "main", hint: "لاتین/عدد/_/- حداقل ۲ کاراکتر. فارسی و فاصله مجاز نیست." },
{ name: "name", label: "نام", required: true },
{ name: "status", label: "وضعیت", type: "select", options: [
{ value: "draft", label: "پیش‌نویس" },
{ value: "active", label: "فعال" },
]},
],
});
export default LocalizationsPage;