feat(projects): add translations

This commit is contained in:
2026-02-27 00:54:22 +01:00
parent 712cb087d2
commit 54958437c4
11 changed files with 163 additions and 77 deletions

View File

@@ -1,6 +1,12 @@
import { defineContentConfig, defineCollection } from "@nuxt/content";
import { z } from "zod";
const localeSchema = z.object({
description: z.string(),
summary: z.string(),
tasks: z.array(z.string()),
});
export default defineContentConfig({
collections: {
projects: defineCollection({
@@ -11,10 +17,9 @@ export default defineContentConfig({
scope: z.enum(["hobby", "work"]),
title: z.string(),
link: z.url(),
description: z.string(),
summary: z.string(),
technologies: z.array(z.string()),
tasks: z.array(z.string()),
en: localeSchema,
fr: localeSchema,
}),
}),
},