2025-11-04 09:17:18 +01:00
|
|
|
import { defineCollection, defineContentConfig } from '@nuxt/content';
|
|
|
|
|
import { z } from 'zod';
|
|
|
|
|
|
2025-11-11 19:12:21 +01:00
|
|
|
const commonSchema = z.object({
|
|
|
|
|
title: z.string(),
|
|
|
|
|
description: z.string()
|
|
|
|
|
});
|
2025-11-04 09:17:18 +01:00
|
|
|
|
|
|
|
|
export default defineContentConfig({
|
|
|
|
|
collections: {
|
|
|
|
|
content_en: defineCollection({
|
|
|
|
|
type: 'page',
|
|
|
|
|
source: {
|
2025-11-11 19:12:21 +01:00
|
|
|
include: 'en/**/*.md',
|
2025-11-04 09:17:18 +01:00
|
|
|
prefix: '',
|
|
|
|
|
},
|
|
|
|
|
schema: commonSchema,
|
|
|
|
|
}),
|
|
|
|
|
content_fr: defineCollection({
|
|
|
|
|
type: 'page',
|
|
|
|
|
source: {
|
2025-11-11 19:12:21 +01:00
|
|
|
include: 'fr/**/*.md',
|
2025-11-04 09:17:18 +01:00
|
|
|
prefix: '',
|
|
|
|
|
},
|
|
|
|
|
schema: commonSchema,
|
|
|
|
|
}),
|
2025-11-11 19:12:21 +01:00
|
|
|
content_data_en: defineCollection({
|
|
|
|
|
type: 'data',
|
2025-11-04 09:17:18 +01:00
|
|
|
source: {
|
2025-11-11 19:12:21 +01:00
|
|
|
include: 'en/**/*.json',
|
|
|
|
|
prefix: ''
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
content_data_fr: defineCollection({
|
|
|
|
|
type: 'data',
|
|
|
|
|
source: {
|
|
|
|
|
include: 'fr/**/*.json',
|
|
|
|
|
prefix: ''
|
2025-11-04 09:17:18 +01:00
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
});
|