Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

360 B
Raw Blame
import type { TFunction } from "i18next";
import { z } from "zod";

export function createWorkspaceFormSchema(t: TFunction) {
  return z.object({
    name: z
      .string()
      .min(1, t("settings:workspaceGeneral.validation.nameRequired"))
      .min(2, t("settings:workspaceGeneral.validation.nameShort")),
    description: z.string().optional(),
  });
}