@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 1.12 kB
JavaScript
import e from"zod";const t=e.object({code:e.string().meta({description:`The locale code`,example:`en`}),name:e.string().meta({description:`The locale's name`,example:`English`}),direction:e.enum([`ltr`,`rtl`]).meta({description:`The text direction for content written in this locale`,example:`ltr`}),isDefault:e.boolean().meta({description:`Whether this locale is the default for all content in the CMS`,example:!0}),createdAt:e.string().nullable().meta({description:`Timestamp when the locale was added`,example:`2024-04-25T14:30:00.000Z`}),updatedAt:e.string().nullable().meta({description:`Timestamp when the locale was last modified`,example:`2024-04-25T14:30:00.000Z`})}),n={getSingle:{query:{string:void 0,formatted:void 0},params:e.object({code:e.string().trim().min(2).meta({description:`The locales code`,example:`en`})}),body:void 0,response:t},getAll:{query:{string:void 0,formatted:void 0},params:void 0,body:void 0,response:e.array(t)},client:{getAll:{query:{string:void 0,formatted:void 0},params:void 0,body:void 0,response:e.array(t)}}};export{n as controllerSchemas};
//# sourceMappingURL=locales.mjs.map