import { type IntlayerConfig, Locales } from 'intlayer';
import { z } from 'zod';
const config: IntlayerConfig = {
internationalization: {
locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
defaultLocale: Locales.ENGLISH,
},
editor: {
enabled: true,
applicationURL: 'http://localhost:5173',
// cmsURL: 'http://localhost:3000',
// editorURL: 'http://localhost:8000',
// backendURL: 'http://localhost:3100',
clientId: process.env.INTLAYER_CLIENT_ID,
clientSecret: process.env.INTLAYER_CLIENT_SECRET,
},
ai: {
provider: 'ollama',
model: 'mistral-nemo',
apiKey: process.env.OPENAI_API_KEY,
applicationContext: 'This is a test application',
},
content: {
contentDir: ['./src', './compiler'],
},
log: {
mode: 'verbose',
},
dictionary: {
location: 'local&remote',
fill: './{{fileName}}.{{locale}}.content.json',
},
compiler: {
enabled: true,
transformPattern: ['**/*.{ts,tsx}'],
outputDir: './compiler',
},
routing: {
storage: ['cookie', 'localStorage', 'header'],
},
schemas: {
user: z.object({
name: z.string(),
age: z.number(),
}),
},
};
export default config;